Skip to content
Snippets Groups Projects
IndirectResolution-v1.rst 1.21 KiB
Newer Older
.. algorithm::

.. summary::

.. alias::

.. properties::

Description
-----------

Dan Nixon's avatar
Dan Nixon committed
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.
Dan Nixon's avatar
Dan Nixon committed
Workflow
Dan Nixon's avatar
Dan Nixon committed
--------
Dan Nixon's avatar
Dan Nixon committed

.. diagram:: IndirectResolution-v1_wkflw.dot

.. include:: ../usagedata-note.txt

**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')

Dan Nixon's avatar
Dan Nixon committed
    print 'Number of histograms: %d' % resolution.getNumberHistograms()
    print 'Number of bins: %d' % resolution.blocksize()

Output:

.. testoutput:: ExIndirectResolutionSimple

Dan Nixon's avatar
Dan Nixon committed
    Number of histograms: 1
    Number of bins: 175
.. categories::