Home | Trees | Index | Help |
|
---|
Package asap :: Module asapreader :: Class reader |
|
object
--+ |instance
--+ |stfiller
--+ | reader
This class allows the user to import single dish files (rpfits,sdfits,ms). The reader reads in integrations from the file and remains at the fileposition afterwards. Available functions are: read() # read until the (current) end of file) Example: r = reader('/tmp/P389.rpf') scans r.read() # reads in the complete file into 'scans' print scans # summarises the contents del r # destroys the reader IMPORTANT: Due to limitations in the rpfits library, only one reader can be created at a time. r = reader('XYZ.rpf') r2 = reader('ABC.rpf') is NOT possible. This is a limitation affecting rpfits ONLY.
Method Summary | |
---|---|
__init__(self,
filename,
unit,
theif,
thebeam)
| |
Close the reader. | |
Reads in all integrations in the data file. | |
Print a summary of all scans/integrations. | |
Inherited from stfiller :
_close ,
_getdata ,
_open ,
_read
Inherited from instance :
__new__
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Class Variable Summary | |
---|---|
Inherited from stfiller :
__instance_size__
|
Method Details |
---|
close(self)Close the reader. |
read(self)Reads in all integrations in the data file. |
summary(self, name=None)Print a summary of all scans/integrations. This reads through the whole file once. Parameters: None Example: r.summary() |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 2 14:24:33 2007 | http://epydoc.sf.net |