Table of Contents
Loads Event Nexus file, integrates events, sets wavelength, mask, and goniometer, and sets proton charge to monitor counts
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | Allowed extensions: [‘.nxs.h5’] |
Wavelength | Input | number | 1.488 | Wavelength to set the workspace |
ApplyMask | Input | boolean | True | If True standard masking will be applied to the workspace |
OutputWorkspace | Output | Workspace | Mandatory |
This algorithm uses LoadEventNexus v1 to load a WAND² data file after which it will integrate out the events, apply a standard mask, change units to wavelength and set the wavelength, set the goniometer, and set the proton charge to be the number of monitor counts. The standard mask includes the top and bottom 2 rows of pixels and the last 6 columns.
After this algorithm loads the workspace it can be correctly converted to Q sample or HKL using ConvertToMD v1.
If you need to do event filtering don’t use this algorithm, simply use LoadEventNexus v1 and convert to data manually.
Example - LoadWAND
ws = LoadWAND('HB2C_7000.nxs.h5')
print("ws has {0} spectrum and {1} point in units {2}".format(ws.getNumberHistograms(),
ws.blocksize(),
ws.getXDimension().name))
Output:
ws has 1966080 spectrum and 1 point in units Wavelength
Categories: Algorithms | DataHandling\Nexus
Python: LoadWAND.py (last modified: 2018-03-07)