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 |
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). 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 MantidPlot 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++ source: LoadILLSANS.cpp (last modified: 2019-07-17)
C++ header: LoadILLSANS.h (last modified: 2018-11-14)