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 diffractometers at ILL. Currently it supports the instruments D20 and D1B. It is able to treat the data files for arbitrary types of scans. Output is a point-data workspace with each spectrum corresponding to each of the detector pixel. X-axis is the scanned variable axis, if there is a scan, otherwise it is empty (only one bin).
Example - LoadILLDiffraction (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 (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
Categories: Algorithms | DataHandling\Nexus | ILL\Diffraction