[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


readwdata.pro Source code in readwdata.pro

readwdata.pro

NAME: readwdata PURPOSE: read files written by the pgplot wdata command (which can be accessed, e.g., with the iplot command in XSPEC); these files are also called "qdp"-files. CATEGORY: general data tools CALLING SEQUENCE: readwdata,filename,x,dx,y,block=block[, /angstrom]
Input Parameters
       filename: name of the file to be read
Optional Input Parameters
       block: one qdp-file can contain data from several sources, e.g.,
              measurements from several detectors. each of these
              data are called a "block", set block=1 to get data
              from the first instrument, block=2 to get data from
              the second, and so on. The "blocks" are defined either
              by a pgplot NO NO NO line, or by a non-increasing
              x-value
       angstrom: set this flag if you have a qdp file for which the x
              value decreases from one line to the next.  Tis is the
              case, for example, in spectra plotted vesus
              "wavelength"
Output Parameters
       x:     Array containing the X-values of the qdp file (i.e.,
              the first column of the data
      dx:     Width of each x bin
       y:     All other columns. Typically, for xspec, y[0,*] is the model,
              y[1,*] the unfolded data point, y[2,*] its
              uncertainty. The higher y contain the individual
              additive models.
Revision History
          Version 1.0: Joern Wilms, IAA Tuebingen, Astronomie,
               sometime in 1996
          Version 1.1: JW 2000.02.11: now read last line correctly
          Version 1.2: Biff 2001.03.28:  added /angstrom options for
               cases where x values DECREASE from line to line
               set /angstrom if this is the case (e.g. plots vs
               wavelength)
          Version 1.3: JW 2001.06.18: now angstrom works also for
               block>1
          Version 1.4: JW 2001.09.09: now more than one continuation
               line possible (change to readxspecline)
;

Last modified by pro2html on 2005 January 04 at 17:02 UTC

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

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