Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | File path of the data file to load. Allowed extensions: [‘.nxs’] |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | The output workspace. |
This is the loader for the raw .nxs files produced by the powder diffractometers at ILL. Currently it supports the instruments D20 and D2B.
For D20 1-dimensional detector, it supports 3 resolution modes:
Note, that all the IDFs contain only active pixels, and do not count the first and last banks which are inactive. These are the first and last 32 pixels in low resolution mode. The 2theta value of the first pixel is read from the file, and the whole detector is rotated correspondingly.
The loader is able to load the following scan configurations:
Note
To run these usage examples please first download the usage data, and add these to your path. In MantidPlot this is done using Manage User Directories.
Example - LoadILLDiffraction - D20 no scan
ws = LoadILLDiffraction(Filename='ILL/D20/967100.nxs')
print('The output has {0} bins (no scan) and {1} spectra'.format(ws.blocksize(), ws.getNumberHistograms()))
Output:
The output has 1 bins (no scan) and 3073 spectra
Example - LoadILLDiffraction - D20 omega scan
ws = LoadILLDiffraction(Filename='ILL/D20/000017.nxs')
print('The output has {0} bins (scan) and {1} spectra'.format(ws.blocksize(), ws.getNumberHistograms()))
Output:
The output has 21 bins (scan) and 3073 spectra
Example - LoadILLDiffraction - D2B detector scan
ws = LoadILLDiffraction(Filename='ILL/D2B/508093.nxs')
print('The output has {0} bins (detector scan) and {1} spectra'.format(ws.blocksize(), ws.getNumberHistograms()))
Output:
The output has 1 bins (detector scan) and 409625 spectra
Categories: Algorithms | DataHandling\Nexus | ILL\Diffraction