\(\renewcommand\AA{\unicode{x212B}}\)
NormaliseVanadium v1¶
Summary¶
Normalises all spectra to a specified wavelength.
Properties¶
| Name | Direction | Type | Default | Description | 
|---|---|---|---|---|
| InputWorkspace | Input | Mandatory | The X values for the input workspace must be in units of wavelength or TOF | |
| OutputWorkspace | Output | Mandatory | Output workspace name | |
| Wavelength | Input | number | 1 | Normalizes spectra to this wavelength | 
Description¶
Normalises all spectra of workspace to a specified wavelength. Following A.J.Schultz’s anvred, scales the vanadium spectra.
Usage¶
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: AlgorithmIndex | Crystal\Corrections | CorrectionFunctions\NormalisationCorrections
Source¶
C++ header: NormaliseVanadium.h
C++ source: NormaliseVanadium.cpp