Module FITSData :: Class _FITSData
[hide private]
[frames] | no frames]

Class _FITSData

source code


This class describes generic FITS data.

Instance Methods [hide private]
 
__init__(self, name, disk) source code
 
__repr__(self) source code
 
__str__(self) source code
 
__getattr__(self, filename) source code
 
table(self, type, version) source code
 
_method(self, name) source code
 
exists(self)
Check whether this image or data set exists.
source code
 
verify(self)
Verify whether this image or data set can be accessed.
source code
 
header(self)
Get the header for this image or data set.
source code
 
tables(self)
Get the list of extension tables.
source code
 
table_highver(self, type)
Get the highest version of an extension table.
source code
 
zap(self)
Destroy this image or data set.
source code
 
header_table(self, type, version)
Get the header of an extension table.
source code
 
getrow_table(self, type, version, rowno)
Get a row from an extension table.
source code
 
zap_table(self, type, version)
Destroy an extension table.
source code
Properties [hide private]
  filename
Filename of this data set.
  disk
Disk where this data set is stored.
Method Details [hide private]

exists(self)

source code 

Check whether this image or data set exists.

Returns True if the image or data set exists, False otherwise.

header(self)

source code 

Get the header for this image or data set.

Returns the header as a dictionary.

table_highver(self, type)

source code 

Get the highest version of an extension table.

Returns the highest available version number of the extension table TYPE.

header_table(self, type, version)

source code 

Get the header of an extension table.

Returns the header of version VERSION of the extension table TYPE.

getrow_table(self, type, version, rowno)

source code 

Get a row from an extension table.

Returns row ROWNO from version VERSION of extension table TYPE as a dictionary.

zap_table(self, type, version)

source code 

Destroy an extension table.

Deletes version VERSION of the extension table TYPE. If VERSION is 0, delete the highest version of table TYPE. If VERSION is -1, delete all versions of table TYPE.


Property Details [hide private]

filename

Filename of this data set.

Get Method:
unreachable(self)

disk

Disk where this data set is stored.

Get Method:
unreachable(self)