Table of Contents
Performs a diffraction reduction for a set of raw run files for an ISIS indirect spectrometer
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputFiles | Input | str list | Comma separated list of input files. | |
ContainerFiles | Input | str list | Comma separated list of input files for the empty contianer runs. | |
ContainerScaleFactor | Input | number | 1 | Factor by which to scale the container runs. |
SumFiles | Input | boolean | False | Enabled to sum spectra from each input file. |
LoadLogFiles | Input | boolean | True | Load log files when loading runs |
Instrument | Input | string | IRIS | Instrument used for run. Allowed values: [‘IRIS’, ‘OSIRIS’, ‘TOSCA’, ‘VESUVIO’] |
Mode | Input | string | diffspec | Diffraction mode used. Allowed values: [‘diffspec’, ‘diffonly’] |
SpectraRange | Input | int list | Range of spectra to use. | |
RebinParam | Input | string | Rebin parameters. | |
GroupingPolicy | Input | string | All | Selects the type of detector grouping to be used. Allowed values: [‘All’, ‘Individual’, ‘IPF’] |
OutputWorkspace | Output | WorkspaceGroup | Mandatory | Group name for the result workspaces. |
The generic routine used to reduce diffraction runs from indirect geometry inelastic instruments at ISIS.
Example - Running ISISIndirectDiffractionReduction.
ISISIndirectDiffractionReduction(InputFiles='IRS21360.raw',
OutputWorkspace='DiffractionReductions',
Instrument='IRIS',
Mode='diffspec',
SpectraRange=[105,112])
ws = mtd['DiffractionReductions'].getItem(0)
print 'Workspace name: %s' % ws.getName()
print 'Number of spectra: %d' % ws.getNumberHistograms()
print 'Number of bins: %s' % ws.blocksize()
Output:
Workspace name: IRS21360_diffspec_red
Number of spectra: 1
Number of bins: 1934
Categories: Algorithms | Diffraction | PythonAlgorithms