\(\renewcommand\AA{\unicode{x212B}}\)
LoadDspacemap v1¶
Summary¶
Loads a Dspacemap file (POWGEN binary, VULCAN binary or ascii format) into an OffsetsWorkspace.
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
InputWorkspace |
Input |
Optional: An input workspace with the instrument we want to use. |
||
InstrumentName |
Input |
string |
Optional: Name of the instrument on which to base the GroupingWorkspace. |
|
InstrumentFilename |
Input |
string |
Optional: Path to a file (full or relative) defining the instrument on which to base the GroupingWorkspace. The file could be an IDF or a NeXus Geometry file. Note, InstrumentFilename or InstrumentName must be specified, but not both. Allowed extensions: [‘.xml’, ‘.hdf5’, ‘.nxs’, ‘.nxs.h5’] |
|
Filename |
Input |
string |
Mandatory |
The DspacemapFile containing the d-space mapping. Allowed extensions: [‘.dat’, ‘.bin’] |
FileType |
Input |
string |
POWGEN |
The type of file being read. Allowed values: [‘POWGEN’, ‘VULCAN-ASCII’, ‘VULCAN-Binary’] |
OutputWorkspace |
Output |
OffsetsWorkspace |
Mandatory |
An output OffsetsWorkspace. |
Description¶
Loads a Dspacemap file (POWGEN binary, VULCAN binary or ascii format) into an OffsetsWorkspace.
The resulting workspace can then be used with, e.g. AlignDetectors to perform calibration.
Usage¶
This algorithm is SNS specific in its use.
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.
ws = LoadDspacemap(InstrumentFilename="VULCAN_Definition_2006-01-31.xml", Filename="pid_offset_vulcan_new.dat",
FileType="VULCAN-ASCII")
print("Workspace type = {}".format(ws.id()))
Output:
Workspace type = OffsetsWorkspace
Categories: AlgorithmIndex | DataHandling\Text
Source¶
C++ header: LoadDspacemap.h
C++ source: LoadDspacemap.cpp