MSEL, NIST Center for Neutron Research Materials Science and Engineering Laboratory NIST Center for Neutron Research National Institute of Standards and Technology
Home Instruments Science Experiments SiteMap

GSAS Nickel example using EXPGUI:
Notes

Running RAWPLOT

Below is an example of how to plot diffraction data in RAWPLOT. RAWPLOT is a good program for checking that data are appropriately formatted for GSAS. The screen input and output are shown in the box below. Computer output is formatted like this while user input is shown in bold. The generated plots are shown below the screen output.

                   |-----------------------------------------|
                   |      Program RAWPLOT Version Linux6     |
                   |     Powder pattern plotting program     |
                   | Distributed on Sat Mar 25 18:15:44 2000 |
                   |-----------------------------------------|

        |---------------------------------------------------------------|
        |            Allen C. Larson and Robert B. Von Dreele           |
        |      Manuel Lujan, Jr. Neutron Scattering Center, MS-H805     |
        |      Los Alamos National Laboratory, Los Alamos, NM  87545    |
        |                                                               |
        | Copyright, 2000, The Regents of the University of California. |
        |---------------------------------------------------------------|

 Enter graphic screen option (<?>,A,B,C) >B
 Do you want to save graphics output (Y,<N>)? >N
 Enter raw histogram input file name (<?>,$,QUIT)
   >nickel.raw
 Header on file:
   NICKEL POWDER STANDARD, ROOM TEMP      22:32:50  9/ 8/1984
 Is this the correct file (<Y>/N/Q)? >y
 Enter POWDER instrument parameter file name (<?>,$,QUIT)
   >inst_tof.prm
 The raw data file is : nickel.raw
 Enter bank number desired (<0 for list) >2
 Reading histogram - please wait
 Bank  2 DIFC =    4368.97 2-theta =     88.050
 Enter rawplot command (<?>,B,C,F,I,K,L,O,P,R,S,T,X) >
 RAWPLOT Commands:
  <?> - Type this help listing
  B   - Read new bank of data
  C   - Toggle cursor control
  F   - Read new raw data set
  I   - I/Io or I on Y-axis toggle
  K c - Enter compression ratio "c"
  L   - List plot options
  O   - Output text file of raw data
  P   - Plot histogram
  R   - Refine peak profiles
  S   - Set initial plot ranges toggle
  T   - D-spacing or TOF/2-theta/keV on X-axis toggle
  X   - Exit from RAWPLOT
 Enter rawplot command (<?>,B,C,F,I,K,L,O,P,R,S,T,X) >t p
 Plot will use TOF in msec
 Data compressed to  5119 channels by grouping  1 together
 Give X-min and X-max for next plot
  (default plot="0 0" & <CR> for no plot) >.5 2 a
 Give X-min and X-max for next plot
  (default plot="0 0" & <CR> for no plot) >
 Enter rawplot command (<?>,B,C,F,I,K,L,O,P,R,S,T,X) >x
STOP RAWPLOT terminated successfully statement executed
Press Enter to continue

After the "t" and "p" commands are typed (t for time-of-flight/two-theta and p to plot), the entire range of data are plotted.
Entering a range of TOF values, in this case 0.5 to 2.0 with automatic y-axis scaling (.5 2 a) displays this plot.

On-the-fly reformatting

Older versions of GSAS had fairly strict formatting requirements. While this is no longer the case, EXPGUI attempts to fix files that do not have the right line-lengths of line termination characters. When incorrectly formatted experiment (.EXP) files are read, no warning message is given, but the file is flagged on the title bar as "modified" immediately after the file is read. When a file is saved, it is rewritten in the correct format.


When histograms and instrument parameter files are read, their line-length & termination format is also inspected. If an error is found, an error message is displayed, as shown to the left. If OK is pressed, the original file is renamed and a properly formatted file is created. In this example file test.raw is renamed to test.raw.original and a properly formatted version of test.raw file is created.


Comments, corrections or questions: crystal@NIST.gov
Last modified 18-July-2003
$Revision: 1.3 $ $Date: 2002/04/12 21:21:18 $