\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | Name of the nexus file to load. Allowed extensions: [‘.nxs’] |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | The name to use for the output workspace |
Wavelength | Input | number | 0 | The wavelength of the experiment, in angstroms. Used only for D16. Will override the nexus’ value if there is one. |
This loads the nexus files produced by the SANS instruments D11, D22, D33 at the ILL. For D33, it supports both monochromatic and TOF modes. This loader reads the detector positions from the nexus file and places the detectors accordingly. For D11 and D22 it supports the nominal and low resolution modes (pixel splitting). It also supports the newer version for these instruments. The output is a histogram workspace with unit of wavelength (Angstrom). It has a single bin for monochromatic, and many bins (ragged) for TOF mode for D33.
Note
To run these usage examples please first download the usage data, and add these to your path. In Mantid this is done using Manage User Directories.
Example - Loads a D33 TOF file.
ws = LoadILLSANS("ILL/D33/042610.nxs")
numHistograms = ws.getNumberHistograms()
numTOF = ws.blocksize()
print('This workspace has {0} spectra and {1} TOF channels.'.format(numHistograms, numTOF))
Output:
This workspace has 65538 spectra and 200 TOF channels.
Categories: AlgorithmIndex | DataHandling\Nexus | ILL\SANS
C++ header: LoadILLSANS.h (last modified: 2021-08-03)
C++ source: LoadILLSANS.cpp (last modified: 2021-08-03)