Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
deadtime_simul
modify evenly binned lightcurve (given by a time array and a count rate array) to take into account counting statistics; reproduce the effects of paralyzable (default) or nonparalyzable deadtime of a given length on the count rate; return modified count rate array
timing tools
deadtime_simul,time,orate,nrate,seed=seed,deadtime=deadtime, $ nonparalyzable=nonparalyzable INPUTS: time : time array of evenly binned lightcurve orate : corresponding count rate array
none
seed : if set, the generation of random numbers for the counting noise via the idl-randomu routine, depends on the given seed value deadtime : length of deadtime, given in the same unit as the time array; if no value is given, the deadtime length is set to 0 nonparalyzable : if set, the effects of nonparalyzable deadtime are calculated; if not set, the effects of paralyzable deadtime are calculated (for an explanation of paralyzable and nonparalyzable deadtime, see: Zhang, W., et al. 1995, Ap.J.,499, 930-935).
nrate : count rate array corresponding to orate but modified by counting noise and deadtime (if the deadtime length is given)
none
none
none
the input lightcurve has to be equally binned and has to be given in count rates (not in photon numbers)
uses the rndexp function
deadtime_simul,findgen(1000),sin(2*!pi*0.005*findgen(1000)) $ *80.+100.,nrate,deadtime=0.001
Version 1.0, 1998/03/09, Katja Pottschmidt, Joern Wilms, Sara Benlloch ([email protected]) Version 2.0 3.0, 1998/11/27, Sara .... abs(avgdist) CVS Version 1.2, 2001/03/13 Joern Wilms removed @-include statement at top to avoid IDL compilation error
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]