spec

Software for Diffraction

1.4.2. - Scans.4



The C-PLOT user function scans.4 reads in files of ASCII data according to a modest set of conventions. In particular, scans.4 manipulates the X-ray scattering data from the spec data files, doing scan averaging, background subtraction, data normalization and error bar calculation. The C-language source code to scans.4 is always available on your system, is liberally commented and should always be consulted if there is any question as to what operations are being done on your raw data points.

The scans.4 user function can be invoked from C-PLOT either as,
PLOT-> fn  scans.4
or
PLOT-> fn  scans.4 options scan-numbers
Use the second form when running from command files. The possible options are:
 .   Use same options as last time. 
 -i   Initialize, used to start up function and return. 
 -f filename   Select scan file name. 
 -p   Print scan file contents. 
 +e or -e   Calculate (or don't) error bars from statistics. 
 +s or -s   Sort and merge (or don't) data by x values. 
 +d or -d   Collect (or don't) 3 columns of data. 
 +r or -r   Rerange (or don't) plot axis for each new data set. 
 +S or -S   Retrieve scans by scan (or file) number. 
 +v or -v   Print (or don't) each line of scan file (verbose). 
 +n or -n   Normalize (or don't) data points. 
 -m   Turn on +n flag and normalize to monitor counts. 
 -t   Turn on +n flag and normalize to time. 
 x=#   Set column for x values. 
 y=#   Set column for y values. 
 z=#   Set column for z values and turn on +d flag. 

The default options are:
-f data  +esSn  -rvd  -m  x=1  y=-1