The LAMP Application

Generated by IDLdoc

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

lamp_mac/D17/

d17_he3fit.pro


Routines

result = he3polfunc(time, params, sim=sim)

result = he3polfuncx(time, params, sim=sim)

d17_he3fit, win, pin, pout, yout, HDATP=HDATP, PFIX=PFIX, LIMITS=LIMITS, DSEL=DSEL, CROSS=CROSS

Routine details

top he3polfunc

result = he3polfunc(time, params, sim=sim)

pro d17_he3fit,win,pin,pout,yout,HDAT=datp,PFIX=pfix,LIMITS=lims,DSEL=dsel,CROSS=cross LAMP procedure to fit the 3He data to calculate the polarization decay constants. ARW 09.09.04 NECESSARY INPUT: win=the workspace with the values of phi and the transmission. calculated using d17_he3calibrate pin=the input parameters: pin(0) = definition of time t=0 (by 'julday') pin(1) = initial polarization of the He3 gas (%) pin(2) = the time constant for decay (hours) pin(3) = the inefficiency of the polarizer pin(4) = the pressure of the gas (bar) pin(5) = the wavelength (Angstrom) OPTIONAL INPUT pfix=a 6-element array showing which of pin are fixed and which are free A value of zero is free, a value of one is fixed limits=a 2 column by 6 row array with the upper and lower limits for each parameter. Set values to -1 for no limit DSEL= a 2 row array with the same number of columns as polchecks This parameter can be set to deselect data points A value of 0 for the corresponding data point means that it is DESELECTED Any other value will select the data point cross=0 if the 3He is polarized in the SAME direction as the monochromator =1 if the 3He is polarized OPPOSITE to the monochromator Default is cross=0 OUTPUT: pout=the output parameters with errors as a 2 column array: pout(0) = definition of time t=0 (by 'julday') pout(1) = initial polarization of the He3 gas (%) pout(2) = the time constant for decay (hours) pout(3) = the inefficiency of the polarizer pout(4) = the pressure of the gas (bar) pout(5) = the wavelength (Angstrom) pout(6) = the first flipper efficiency pout(7) = the second flipper efficiency yout=the values of phi and trans as a function of time Example: d17_he3fit,w2,[julday(8,25,2004,14,15,00),0.6,150,0.013,0.6,5.3],pout,w11, $ PFIX=[0,0,0,1,0,1], $ LIMITS=[[-1,min(x2)],[0.5,0.65],[100,200],[0,0.02],[0.5,0.7],[-1,-1]] CALLS TO: he3tptm, mpfunfit, d17_errmsg Last modified: ARW 7.2.11

******* ********** ** LAMP function to calculate the polarization and the transmission of a 3He filter ** as a function of time ** The function returns phi (c.f. Wildes, Rev. Sci. Instrum., 70, 1999, 4241) ** and the transmission as either a 1 row array (for fits) ** or a 2 row array (for simulations) ** CAUTION: This routine cannot be used blindly! If you want to simulate the data, ** the output array must have the same number of time elements as the entire data array ** (including deselected points). This means that you'll need to be careful to ** feed the right time array as input to this routine if you want to use it to simulate ** ARW 08.09.04 ** ** NECESSARY VARIABLES: ** time: The date and time for the polarization of the instrument. ** This is a single number for the date, made using the 'julday' procedure ** params: The parameter array. The parameters are: ** params(0) = definition of time t=0 (by 'julday')(t0) ** params(1) = initial polarization of the He3 gas (P0He) ** params(2) = the time constant for decay (hours) (t1) ** params(3) = the inefficiency of the polarizer (p1) ** params(4) = the pressure of the gas (bar) (conc) ** params(5) = the wavelength (Angstrom) (sa) ** NOTE: The thickness of the D17 cell is currently fixed to 10 cm ** ** OPTIONAL VARIABLES: ** sim: Set this flag to simulate the transmission and polarization for one set of times ** as a 2 row * n column array ** The flag can contain anything ** ** e.g. phiout=aw_he3polfunc(time,[julday(8,25,2004,12,0,0),0.57,150,0.05,0.5,5.40]) ** ** CALLS TO: he3tptm ** Last modified: ARW 4.2.11

Parameters

time
params

Keywords

sim

top he3polfuncx

result = he3polfuncx(time, params, sim=sim)

******* *********** ** CALLS TO: he3tptm ** Last modified: ARW 7.02.11

Parameters

time
params

Keywords

sim

top d17_he3fit

d17_he3fit, win, pin, pout, yout, HDATP=HDATP, PFIX=PFIX, LIMITS=LIMITS, DSEL=DSEL, CROSS=CROSS

** ********** ** User callable

Parameters

win
pin
pout
yout

Keywords

HDATP
PFIX
LIMITS
DSEL
CROSS

File attributes

Modification date: Tue Oct 1 14:43:02 2013
Lines: 220