Newer
Older
.. algorithm::
.. summary::
.. alias::
.. properties::
Description
-----------
Creates a resolution workspace for an inelastic indirect sample run by
summing all spectra in the energy transfer and subtracting a flat background to
give a single resolution curve.
Rebinning and intensity scaling can optionally be applied to the result.
.. diagram:: IndirectResolution-v1_wkflw.dot
**Example - Running IndirectResolution.**
.. testcode:: ExIndirectResolutionSimple
resolution = IndirectResolution(InputFiles='IRS26173.raw',
Instrument='IRIS',
Analyser='graphite',
Reflection='002',
DetectorRange=[3, 53],
BackgroundRange=[-0.16, -0.14],
RebinParam='-0.175,0.002,0.175')
print 'Number of histograms: %d' % resolution.getNumberHistograms()
print 'Number of bins: %d' % resolution.blocksize()
Output:
.. testoutput:: ExIndirectResolutionSimple
.. sourcelink::