Type 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(self)
Close the reader. |
| |
read(self)
Reads in all integrations in the data file. |
| |
summary(self,
name)
Print a summary of all scans/integrations. |
Inherited from instance:
__new__
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
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()
-
|