Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | Name of DNS experimental data file. Allowed extensions: [‘.d_dat’] |
OutputWorkspace | Output | Workspace | Mandatory | Name of the workspace to store the experimental data. |
Polarisation | Input | string | 0 | Type of polarisation. Allowed values: [‘0’, ‘x’, ‘y’, ‘z’, ‘-x’, ‘-y’, ‘-z’] |
Normalization | Input | string | duration | Type of data for normalization. Allowed values: [‘duration’, ‘monitor’] |
Warning
This algorithm is being developed for a specific instrument. It might get changed or even removed without a notification, should instrument scientists decide to do so.
This algorithm loads a DNS legacy data file into a Workspace2D. Two workspaces will be created:
The loader rotates the detector bank in the position given in the data file. No operations on the neutron counts are performed. Sample logs are dublicated for both, data and normalization workspaces.
This algorithm only supports DNS instrument in its configuration before major upgrade.
Example - Load a DNS legacy .d_dat file:
# data file.
datafile = 'dn134011vana.d_dat'
# Load dataset
ws = LoadDNSLegacy(datafile, Polarisation='x', Normalization='monitor')
print "This workspace has", ws.getNumDims(), "dimensions and has", ws.getNumberHistograms(), "histograms."
Output:
This workspace has 2 dimensions and has 24 histograms.
Categories: Algorithms | PythonAlgorithms | MLZ | DNS | DataHandling
Python: LoadDNSLegacy.py