LoadInstrumentFromNexus
From MantidProject
Summary
Attempts to load information about the instrument from a Nexus file. In particular attempt to read L2 and 2-theta detector position values and add detectors which are positioned relative to the sample in spherical coordinates as (r,theta,phi)=(L2,2-theta,phi). Also adds dummy source and samplepos components to instrument.
Later this will be extended to use any further available details about the instrument in the Nexus file.
If the L1 source - sample distance is not available in the file then it may be read from the mantid properties file using the key instrument.L1, as a final fallback a default distance of 10m will be used.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | Workspace | InOut | Workspace | Mandatory | The name of the workspace in which to attach the imported instrument. |
| 2 | Filename | Input | string | Mandatory | The name (including its full or relative path) of the Nexus file to attempt to load the instrument from. The file extension must either be .nxs or .NXS. |
Source Code
Header LoadInstrumentFromNexus.h
Source LoadInstrumentFromNexus.cpp
