Before running gudrun_dcs you must have already run purge_det .
The directory should already contain these two files: spectrum000.dat and sears91_gudrun.dat
Detector calibration files for running gudrun on GEM data are available here.
gudrun input files are normally named like this: sample_dcs.dat
A gudrun input file must be prepared before running gudrun. This should be done by copying and modifying a pre-existing file. This will have comments which will help to identify the parameters. For a typical run the essential parameters to change are as follows:
| Block |
|
| INSTRUMENT |
|
| BEAM |
|
| VANADIUM |
|
| SAMPLE BACKGROUND |
|
| SAMPLE |
|
| CONTAINER |
|
Here is an example gudrun input file: example
gudrun creates many files, but the most important one is named like GEM12345.DCS01 - this contains the corrected differential cross-section for each detector group. This file may be read into OpenGenie (on a PC or on VMS) by a command like data=readfile(file="GEM12345.DCS01") if the GEMSQRAW software has been installed.
It is recommended to run gudrun from a command prompt window, not by double-clicking on the program's icon. This has the advantage that if the program encounters an error then the error messages are retained.
At the end of running gudrun you should note the message about the scattering level. In most cases the scattering level should be within a few percent of the expected value. If it is outside this range then it is probable that there is a problem with the input parameters in the sample_dcs.dat file.
A version of gudrun which uses logarithmic binning is available here: gudrun_dcs_log. If you use this version of gudrun it behaves exactly the same as the normal version, except that it is possible to give a negative value for the spacing delta-Q (qstep), in which case the data are binned with delta-Q/Q=-qstep.
Last updated on 22 Feb 2007 by Alex Hannon (a.c.hannon@rl.ac.uk)