[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


deadtime_simul Source code in deadtime_simul.pro

deadtime_simul

Name
            deadtime_simul
Purpose
            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
Category
            timing tools
Calling Sequence
            deadtime_simul,time,orate,nrate,seed=seed,deadtime=deadtime, $
                       nonparalyzable=nonparalyzable
 INPUTS:    time  : time array of evenly binned lightcurve
            orate : corresponding count rate array
Optional Input Parameters
            none
Keyword Parameters
            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).
Output Parameters
            nrate            : count rate array corresponding to
                               orate but modified by counting noise
                               and deadtime (if the deadtime length
                               is given)
Optional Output
            none
Common Blocks
            none
Side Effects
            none
Restrictions
            the input lightcurve has to be equally binned and has to be
            given in count rates (not in photon numbers)
Procedure
            uses the rndexp function
Example
            deadtime_simul,findgen(1000),sin(2*!pi*0.005*findgen(1000))  $
                     *80.+100.,nrate,deadtime=0.001
Revision History
            Version 1.0, 1998/03/09, Katja Pottschmidt, Joern Wilms,
                                     Sara Benlloch
                                     (benlloch@astro.uni-tuebingen.de)
            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

Last modified by pro2html on 2005 January 04 at 16:45 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically