LoadPLNnxs v1#

Summary#

Loads a PLN2 Hdf and linked event file into a workspace.

See Also#

Load, LoadEMU

Properties#

Name

Direction

Type

Default

Description

Filename

Input

string

Mandatory

The input filename of the stored data. Allowed extensions: [‘.nxs’]

Mask

Input

string

The input filename of the mask data. Allowed extensions: [‘.xml’]

SelectDetectorTubes

Input

string

Comma separated range of detectors tubes to be loaded, eg 16,19-45,47

OutputWorkspace

Output

IEventWorkspace

Mandatory

SelectDataset

Input

number

0

Select the index for the dataset to be loaded.

TimeOfFlightBias

Input

number

0

Time of flight correction in micro-sec.

CalibrateTOFBias

Input

boolean

False

Calibrate the TOF correction from the elastic pulse.

LambdaOnTwoMode

Input

boolean

False

Instrument is operating in Lambda on Two mode.

FilterByTimeStart

Input

number

0

Only include events after the provided start time, in seconds (relative to the start of the run).

FilterByTimeStop

Input

number

Optional

Only include events before the provided stop time, in seconds (relative to the start of the run).

UseHMScanTime

Input

boolean

False

Use hmscan time rather than scan_dataset.

Description#

Load data from the Pelican beamline at ANSTO using the AESS framework. The workspace generated is a TOF EventWorkspace.

Usage#

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 - Load a Pelican AESS dataset:

ws =  LoadPLNnxs('PLN0136193.nxs')

print("Number of spectra: {}".format(ws.getNumberHistograms()))

Output:

Number of spectra: 12808

Categories: AlgorithmIndex | DataHandling\ANSTO

Source#

C++ header: LoadPLNnxs.h

C++ source: LoadPLNnxs.cpp