[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


readpp Source code in readpp.pro

readpp

Name
       readpp
Purpose
       Read PHA-spectrum from a OGIP-conformant PHA2-file. The file
       format has been defined in OGIP memo ...
Category
       High energy astrophysics
Calling Sequence
       readpp,phase,rate,rateerr,channel,phafile
Input Parameters
       channel : Channel number(s) to use for the returned count(-err)
                 Either a single number, or a 2-dim array which is
                 interpreted as [cmin,cmax].
                 (Note: this is compared to the SPEC_NUM column and not
                        necessarily equal to the row number)
       phafile : Name of the file to read from
Optional Input Parameters
       none
Keyword Parameters
       see the list under optional outputs
       verbose   : Be talkative
       mjd       : Calculate tstart,tstop in MJD instead of JD
Output Parameters
       phase   : array of pulse phase values
       rate    : count rates in each phasebin
       rateerr : uncertainty of the countrate per phasebin
Optional Output
       exposure  : exposure time per phasebin
       telescope : ID of telescope
       instrument: ID of instrument
       filter    : filter used
       object    : name of observed object
       ra,dec    : position of observed object (degrees!), implies:
       equinox   :     equinox os coordinate
       radecsys  :     coordinate-frame used
       date_obs  : start-time (dd/mm/yy), UTC, implies
       time_obs  :     start-time (hh:mm:ss), UTC
       date_end  :     end-time (dd/mm/yy), UTC
       time_end  :     end-time (hh:mm:ss), UTC
       tstart,tstop: the above in JD (or in MJD if mjd keyword is set)
       origin    : institution where file originates from
Common Blocks
       none
Side Effects
       none
Restrictions
       * All spectra in PHA-II table must have same channels
       * Rather complex tool
       * Very limited error handling
Procedure
       just read it!!!!!!
Example
       not needed
Revision History
       Version 1.0: 1999/11/10, PK
                    first version, based on readpha2.pro V1.1

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

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

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