The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/FIGARO/

figaro_grav.pro


top figaro_grav

figaro_grav, PP, XX, XT, NN

Called from rdid when TOF data read! Converts x axis from tof channels to wavelength and then applies the correction procedure written by Bob Cubitt to take into account gravity effects. (2008) Modified by Miguel Gonzalez (11 Oct 2010) due to a change in parameter order. Note that the monitor 2 values correspond to a different wavelength scale, as the time-of-flight distance is not the same. In order to plot them on the same x scale, the corresponding lambda for each monitor channel is calculated and then the monitor counts are interpolated to the wavelength values used for the detector. TO THINK ABOUT: This is done before applying the gravity corrections to the wavelength, but possibly it should be done afterwards. GRAVITY CORRECTIONS (COMMENTS FROM BOB): Given a straight line theta (th (deg)), wavelength (lam) and sam-midchop distance x3(m) calculates true theta (thetat (deg)), the displacement for the beam along the sample (delta (m)) the drop of the beam at the sample centre (dz (m)) the offset in poff (poffoff (deg)) and the offset in the opening (openofflam (deg)) choppers turn clockwise from the reactor by default so poff=poff-poffoff opening offset only changes the apparent opening and does NOT make a time delay the normal delay associated with opening the chopper comes from changing the phase of the second controling chopper

Parameters

PP
XX
XT
NN

File attributes

Modification date: Tue Oct 1 14:42:05 2013
Lines: 150