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 name to use for the output workspace |
Loads an ILL TOF NeXus file into a Workspace2D with the given name.
To date this algorithm only supports: IN4, IN5 and IN6.
Note
The initial time-of-flight axis is set up using the ‘time_of_flight’ field in the NeXus file. Therefore the conversion from ‘TOF’ to ‘DeltaE’ may not give the correct zero-energy transfer.
For IN4 and IN6 the algorithm also calculates the pulse interval.
For the number of pulses:
where is the number of pulses from the chopper per rotation, the Fermi chopper speed and the background chopper speed. Background chopper 1 and background chopper 2 must have the same speeds. All speeds are in units of rpm.
where is the number of pulses from the chopper per rotation, the Fermi chopper speed and the suppressor chopper speed. All speeds are in units of rpm.
The pulse interval, in seconds, is then given by,
.
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 - Load a regular histogram NeXus file:
# Regular data file.
dataRegular = 'ILL/IN5/104007.nxs'
# Load ILL dataset
ws = Load(dataRegular)
numDimensions = ws.getNumDims()
numHistograms = ws.getNumberHistograms()
print('This workspace has {0} dimensions and {1} histograms.'.format(numDimensions, numHistograms))
Output:
This workspace has 2 dimensions and 98305 histograms.
Categories: Algorithms | DataHandling\Nexus | ILL\Direct
C++ source: LoadILLTOF2.cpp (last modified: 2017-09-09)
C++ header: LoadILLTOF2.h (last modified: 2017-10-24)