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

LoadILLIndirect v2

Summary

Loads a ILL/IN16B nexus file.

See Also

LoadNexus

Properties

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 name to use for the output workspace

LoadDetectors

Input

string

Spectrometer

Select the type of data to load from IN16B. Allowed values: [‘Spectrometer’, ‘Diffractometer’]

Description

This algorithm loads a .nxs file produced by IN16B back-scattering spectrometer at ILL. It supports both QENS and FWS types of data, both with or without mirror sense. The number of active single detectors, and their actual positions are read from the .nxs file overriding the ones in the instrument definition. The output workspace will be dimensionless containing the number of counts per energy channel for each detector pixel. It will have empty x-axis unit. The LoadDetectors allows to choose which data to load for IN16B: those acquired by the spectrometer, or those from the diffractometer. Usage —–

Example - Load ILL IN16B NeXus file:

# Load ILL IN16B data file into a workspace 2D.
ws = LoadILLIndirect('ILL/IN16B/136555.nxs')

print("ws has {0} spectra and {1} bins".format(ws.getNumberHistograms(),ws.blocksize()))
ws has 2051 spectra and 2048 bins

Categories: AlgorithmIndex | DataHandling\Nexus | ILL\Indirect

Source

C++ header: LoadILLIndirect2.h

C++ source: LoadILLIndirect2.cpp