[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


pcadeadlc.pro Source code in pcadeadlc.pro

pcadeadlc.pro

NAME: pcadeadlc PURPOSE: perform deadtime correction on a PCA lightcurve CATEGORY: RXTE CALLING SEQUENCE: pcadeadlc,time,rate,obs
Input Parameters
         time: time at which the given countrate in rate was measured
         rate: measured countrate, on return: deadtime corrected
         obs : path to an observation that was extracted with the
               standard Tuebingen RXTE scripts and includes a
               subdirectory pcadead containing the necessary
               deadtime information
Keyword Parameters
         mjd: if set, the times are given in MJD (default: MET)
Output Parameters
         rate: the deadtime-corrected countrate
Procedure
         follows RXTE GOF description for spectra, using Jernigan et
         al. deadtime values
         Warning: The correction still is not 100% o.k., i.e. the
         Crab does not get absolutely flat, but the corrected lcs
         look MUCH better than without this correction
Example
   obs='/home/wilms/xtescratch/crab/P40805/04'
   readlc,time,rate,err,obs+$
      '/standard2f_134off_excl_top/standard2f_134off_excl_top.lc'
   readlc,bati,bara,baerr,obs+$
      '/pcabackest/standard2f_back_SkyVLE_top_good_134off_excl.lc'
   subra=rate-bara
   pcadeadlc,time,rate,obs
   corra=rate-bara
   plot,time,subra
   oplot,time,corra,color=150
Revision History
    Version 1.1: Initial Version, 2001.03.22 JW
    Version 1.2: 2001.03.23 KP, JW removed bug in definition of kstop
    CVS Version 1.3: 2003.05.02 TG
                    Determination of extrapolated/interpolated values
                    of dtf still did not work for some special
                    cases. The whole section was rewritten and should
                    work for all imaginable cases.
    CVS Version 1.4: 2003.05.02 TG
                    Forgot to remove stupid test printout.

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

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

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