\(\renewcommand\AA{\unicode{x212B}}\)

LoadILLSANS v1

Summary

Loads ILL nexus files for SANS instruments D11, D16, D22, D33.

See Also

LoadNexus

Properties

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.

SensitivityMap

Input

string

Name of the file containing sensitivity map. Allowed extensions: [‘.nxs’]

Description

This loads the nexus files produced by the SANS instruments D11, D22, D33 and D16 at the ILL.

This loader reads the detector positions from the nexus file and places the detectors accordingly.

For D33, it supports both monochromatic and TOF modes.

For D11 and D22 it supports the nominal and low resolution modes (pixel splitting).

For D16, it supports both monochromatic and scan mode. The Wavelength parameter is intended for old D16 files that may lack the wavelength value.

It also supports the newer version for these instruments.

The output is a histogram workspace with unit of wavelength (Angstrom), or in the case of D16 scans, a point data workspace using the parameter being scanned as X axis.

It has a single bin for monochromatic, many bins (ragged) for TOF mode for D33, and as many points as there are scan steps for D16.

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

Source

C++ header: LoadILLSANS.h

C++ source: LoadILLSANS.cpp