Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | The X values for the input workspace must be in units of wavelength or TOF |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | Output workspace name |
Wavelength | Input | number | 1 | Normalizes spectra to this wavelength |
Normalises all spectra of workspace to a specified wavelength. Following A.J.Schultz’s anvred, scales the vanadium spectra.
vanadium = CreateWorkspace(DataX='0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5', DataY='10.574151,10.873,11.07348,11.22903,11.42286,11.47365,11.37375,11.112,10.512181,10.653397', UnitX='wavelength')
LoadInstrument(Workspace=vanadium, Filename='unit_testing/MINITOPAZ_Definition.xml', RewriteSpectraMap=True)
norm_van = NormaliseVanadium(InputWorkspace=vanadium)
print("Wavelength = {} Y = {:.11f}".format(norm_van.readX(0)[2], norm_van.readY(0)[2]))
Output:
Wavelength = 1.0 Y = 1.00913495012
Categories: Algorithm Index | Crystal\Corrections | CorrectionFunctions\NormalisationCorrections
C++ source: NormaliseVanadium.cpp (last modified: 2018-10-05)
C++ header: NormaliseVanadium.h (last modified: 2018-10-05)