lamp_mac/D7_b/
normalise_cf.pro
******************************************************************************* FUNCTION normalise_cf, w_in, raw=raw, monitor=monitor, time=time, $ detector=detector, alldetectors=alldetectors, ei=ei, $ madangles=madangles, zeroshift=zeroshift, nopo = nopo, $ inorm, ikeep For IN4, IN5, IN6, D7, HET, Mibemol, DCS, and TOFTOF data. For IN4, IN5 and IN6: -------------------- Normalises raw data to monitor or counting time, depending on value of inorm. Finds the position of the elastic peak. KEYWORDS /raw : no normlisation (error bars calculated) /monitor : normalise data to 1000 monitor1 counts (DEFAULT) /time : normalise data to counting time (will not work for summed data) (inorm and ikeep are obsolete, kept for backwards compatability) For HET: ------- Normalises raw data to monitor 1 (must be monitor 1 for ISIS data). Removes empty spectra. User must input incident energy. ARGUMENTS ei : incident energy of measurement For D7: ------- Normalises raw data to monitor (default) or counting time or individual detector. Extracts every other spectrum if desired (=> nspectra=32). Recalculates detector angles based on a YIG calibration by default. ARGUMENTS detector : detector number to normalise to zeroshift : angle in degrees of 2theta = 0 (inorm and ikeep are obsolete, kept for backwards compatability) KEYWORDS /raw : no normlisation (error bars calculated) /monitor : normalise data to 1000 monitor1 counts (DEFAULT) /time : normalise data to counting time /alldetectors : supresses the removal of the odd numbered detectors /madangles : supresses the recalculation of the detector angles using the current YIG calibration DIMENSIONS non-TOF data: w_out(nspectra,nphases,nruns) -unless nphases is 1 TOF data: w_out(nchannels,nspectra*nphases,nruns) COMMAND SYNTAX w2=normalise(w1[,/raw][,/monitor][,/time][,detector=#][,/alldetectors][,/rawangles][,ei=#]) (optional keywords/arguments shown in square brackets) KHA,JRS,PPD 28/05/08 Modified by SR to incorporate Mibemol, DCS and TOFTOF data Last modification 24/03/09 by SR Altered detector positions by PD 03/06/09 par -> parp (due to a DIFF procedure having the name PAR !!!!) FIX -> long (FIX is a short integer !!!) ------------------------------------------------------------------------------ Nornmalise altered for Catherine Fleck and Oleg Petrenko *******************************************************************************
Routines
result = normalise_tof(w_in, inorm, keepmons)
result = normalise_d7(w_in0, inorm, ikeep, zeroshift)
result = normalise_het(w_in, ei=ei)
result = normalise(w_in, inorm, ikeep, RAW=RAW, MONITOR=MONITOR, TIME=TIME, DETECTOR=DETECTOR, ALLDETECTORS=ALLDETECTORS, EI=EI, MADANGLES=MADANGLES, ZEROSHIFT=ZEROSHIFT, KEEPMONITORS=KEEPMONITORS, NOPO=NOPO)
Routine details
top normalise_tof
result = normalise_tof(w_in, inorm, keepmons)
******* ************* ** Normalise for tof
Parameters
- w_in
- inorm
- keepmons
top normalise_d7
result = normalise_d7(w_in0, inorm, ikeep, zeroshift)
******* ************ ** normalise for D7
Parameters
- w_in0
- inorm
- ikeep
- zeroshift
top normalise_het
result = normalise_het(w_in, ei=ei)
******* ************* ** normalise for HET
Parameters
- w_in
Keywords
- ei
top normalise
result = normalise(w_in, inorm, ikeep, RAW=RAW, MONITOR=MONITOR, TIME=TIME, DETECTOR=DETECTOR, ALLDETECTORS=ALLDETECTORS, EI=EI, MADANGLES=MADANGLES, ZEROSHIFT=ZEROSHIFT, KEEPMONITORS=KEEPMONITORS, NOPO=NOPO)
******* ********* ** User callable ** normalise entry in D7 macros for TOF , D7 , HET
Parameters
- w_in
- inorm
- ikeep
Keywords
- RAW
- MONITOR
- TIME
- DETECTOR
- ALLDETECTORS
- EI
- MADANGLES
- ZEROSHIFT
- KEEPMONITORS
- NOPO
File attributes
Modification date: | Tue Oct 1 14:43:50 2013 |
Lines: | 1,172 |