Last change
on this file since 3028 was
3028,
checked in by odonnell, 6 years ago
|
example scripts
|
-
Property svn:executable set to
*
|
File size:
902 bytes
|
Line | |
---|
1 | #!/usr/bin/env bash |
---|
2 | |
---|
3 | G2() { |
---|
4 | python $GSASII_DIR/GSASIIscriptable.py "$@" |
---|
5 | } |
---|
6 | |
---|
7 | homedir=`pwd` |
---|
8 | proj_file=${1:-test_cli_create.gpx} |
---|
9 | data_file=${2:-aMnO2-air_T_6x10-01004.chi} |
---|
10 | refinements_file=${3:-$homedir/9016667.cif} |
---|
11 | |
---|
12 | echo Creating file $proj_file with histogram $data_file |
---|
13 | |
---|
14 | # Create the project file test_cli_create.gpx |
---|
15 | # -i = instrument parameters, -d = data file, |
---|
16 | # -p = phase, automatically associated with all histograms |
---|
17 | G2 create $proj_file \ |
---|
18 | -i $homedir/brians_refined_profile.instprm \ |
---|
19 | -d $data_file \ |
---|
20 | -p $homedir/9016667-with-oxygen.cif |
---|
21 | |
---|
22 | # Check it worked - list phases (-p) and histograms (-g) |
---|
23 | echo Listing phases and histograms... |
---|
24 | G2 dump -p -d $proj_file |
---|
25 | |
---|
26 | echo Conducting refinements... |
---|
27 | G2 refine $proj_file $homedir/alpha-mno2-new.json |
---|
28 | echo Done refining |
---|
29 | |
---|
30 | # Export the resulting structure - 0 is for phase #0 |
---|
31 | # echo Exporting structure |
---|
32 | # $G2 export $proj_file 0 test_output.cif |
---|
Note: See
TracBrowser
for help on using the repository browser.