next up previous
Next: Basic Processing Up: Data Input Previous: Scantable constructor

Reader object

For more control when reading data into ASAP, the reader object should be used. This has the option of only reading in a range of integrations and does not perform any scan averaging of the data, allowing analysis of the individual integrations. Note that due to limitation of the RPFITS library, only one reader object can be open at one time reading RPFITS files. To read multiple RPFITS files, the old reader must be destroyed before the new file is opened. However, multiple readers can be created and attached to SDFITS files.

Example usage:

  ASAP> r = reader('2003-03-16_082048_t0002.rpf')
  ASAP> r.summary
  ASAP> scan = r.read()
  ASAP> s = r.read(range(100)) # To read in the first 100 integrations
  ASAP> del r



Malte Marquarding 2005-11-30