Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Instrument | Input | string | AMOR | Choose Instrument. Allowed values: [‘AMOR’, ‘BOA’, ‘DMC’, ‘FOCUS’, ‘HRPT’, ‘MARSI’, ‘MARSE’, ‘POLDI’, ‘RITA-2’, ‘SANS’, ‘SANS2’, ‘TRICS’] |
Year | Input | number | 2018 | Choose year |
Numor | Input | number | 0 | Choose file number |
OutputWorkspace | Output | Workspace | Mandatory |
LoadSINQ loads SINQ NeXus files. The algorithm calculates the file name from the instrument, year and numor and tries to locate the file, both at SINQ standard paths as well as the data directories configured for Mantid. Then it calls LoadSINQFile v1 for the located data file.
The Mantid standard Load algorithm selects based on file extensions. The file extensions used at SINQ, mainly .hdf and .h5, were already taken. Thus the need for a separate loader.
The following usage example loads a POLDI data file using the instrument name, year and numor.
poldi_data = LoadSINQ(Instrument = "POLDI", Year = 2013, Numor = 6904)
print("Poldi sample 6904 has {} histograms.".format(poldi_data.getNumberHistograms()))
Output:
Poldi sample 6904 has 400 histograms.
Categories: Algorithms | DataHandling\Nexus
Python: LoadSINQ.py (last modified: 2017-09-06)