The LAMP Application

Generated by IDLdoc

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

lamp_mac/TOF/

corr_tof.pro


FUNCTION corr_tof, w_in, det_eff = efficiency, frameoverlap = frameoverlap, $ bkgd_trans = bkgd_trans, ana_eff = ana_eff,nf=nf,widthb=widthb,propb=propb,$ gexp=gexp,gprop=gprop $ ef1, fr1, bg1 For IN4, IN5, IN6 and D7 data. KEYWORDS: /det_eff : corrects for energy-variation of detector efficiency /frameoverlap: subtracts a t^-(nf) tail from the beginning of the time frame (default nf = 4) nf power of the frame when the frameoverlap correction is selected. Default is nf=4 /bkgd_trans : subtracts a flat background in each detector, found using a moving filter (For IN4, IN5 and IN6 only) /ana_eff : correct for energy dependence of analyser transmission (For D7 only) widthb is the width (in channel) of the moving window used to evaluate the background value default is widthb = 30 propb is the proportion of background to remove from the spectra default is propb = 1. (ef1, fr1, and bg1 are obsolete and kept for backwards compatability) DIMENSIONS w_in=w_out(nchannels,nphases*nspectra) COMMAND SYNTAX w6=corr_tof(w5[,/det_eff][,/frameoverlap][,/bkgd_trans][,/ana_eff][,nf=nf][,widthb=widthb][,propb=propb]) (optional keywords shown in square brackets) KHA,JRS 30/05/08 modified by SR on 24/03/09 to allow correction for TOFTOF data modified by SR on 15/10/10 for correct evaluation of the frameoverlap for IN4 modified by SR on 18/10/10 to incorporate the nf, widthb and propb keywords par -> parp (due to a DIFF procedure having the name PAR !!!!) FIX -> long (FIX is a short integer !!!)

Routines

result = read_trans(input, nchannels, lambda, wave, new)

result = corr_tof_tof(w_in, efficiency, frameoverlap, nf, bkgd, widthb, propb, gexp, fdelay, Wfplot)

result = corr_tof_d7(w_in, ieff, iover, itrans, corr_b)

result = corr_tof(w_in, ef1, fr1, bg1, det_eff=det_eff, frameoverlap=frameoverlap, bkgd_trans=bkgd_trans, ana_eff=ana_eff, nf=nf, gexp=gexp, fdelay=fdelay, widthb=widthb, propb=propb, rfplot=rfplot)

Routine details

top read_trans

result = read_trans(input, nchannels, lambda, wave, new)

******* ********** ** cor_toff stuff

Parameters

input
nchannels
lambda
wave
new

top corr_tof_tof

result = corr_tof_tof(w_in, efficiency, frameoverlap, nf, bkgd, widthb, propb, gexp, fdelay, Wfplot)

******* ************ ** cor_tof stuff

Parameters

w_in
efficiency
frameoverlap
nf
bkgd
widthb
propb
gexp
fdelay
Wfplot

top corr_tof_d7

result = corr_tof_d7(w_in, ieff, iover, itrans, corr_b)

******* *********** ** corr_tof stuff for D7

Parameters

w_in
ieff
iover
itrans
corr_b

top corr_tof

result = corr_tof(w_in, ef1, fr1, bg1, det_eff=det_eff, frameoverlap=frameoverlap, bkgd_trans=bkgd_trans, ana_eff=ana_eff, nf=nf, gexp=gexp, fdelay=fdelay, widthb=widthb, propb=propb, rfplot=rfplot)

******* ******** ** User callable ** entry

Parameters

w_in
ef1
fr1
bg1

Keywords

det_eff
frameoverlap
bkgd_trans
ana_eff
nf
gexp
fdelay
widthb
propb
rfplot

File attributes

Modification date: Tue Oct 1 14:39:52 2013
Lines: 640