NormaliseVanadium v1

../_images/NormaliseVanadium-v1_dlg.png

NormaliseVanadium dialog.

Summary

Normalises all spectra to a specified wavelength.

Properties

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

Description

Normalises all spectra of workspace to a specified wavelength. Following A.J.Schultz’s anvred, scales the vanadium spectra.

Usage

inst = LoadEmptyInstrument(Filename='IDFs_for_UNIT_TESTING/MINITOPAZ_Definition.xml')
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', ParentWorkspace=inst)
norm_van = NormaliseVanadium(InputWorkspace=vanadium)
print "Wavelength = ", norm_van.readX(0)[2], " Y = ", norm_van.readY(0)[2]

Output:

Wavelength =  1.0  Y =  1.00913495012

Categories: Algorithms | Crystal | CorrectionFunctions | NormalisationCorrections