ConvertSpectrumAxis
From MantidProject
Contents |
Summary
Converts the axis of a Workspace2D which normally holds spectrum numbers to some other unit.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | InputWorkspace | Input | Workspace2D | Mandatory | The name of the input workspace. |
| 2 | OutputWorkspace | Output | Workspace | Mandatory | The name to use for the output workspace. |
| 3 | Target | Input | string | Mandatory | The unit to which the spectrum axis should be converted. Currently, the only choice is θ (degrees). |
Description
Converts the representation of the vertical axis (the one up the side of a matrix in MantidPlot) of a Workspace2D from its default of holding the spectrum number to the target unit given.
At present, the only implemented unit is θ (actually two-theta). The spectra will be reordered by increasing theta and duplicates will not be aggregated. Any spectrum for which a detector is not found (i.e. if the instrument definition is incomplete) will not appear in the output workspace.
Source Code
Header ConvertSpectrumAxis.h
Source ConvertSpectrumAxis.cpp
