pydrizzle :: imtype :: Imtype :: Class Imtype
[hide private]
[frames] | no frames]

Class Imtype

source code

Class which determines the format of the file, how to access the
SCI data array, and if available, any DQ array as well.  The syntax
for accessing the data will then be kept as attributes for use by
other tasks/classes.

Parameters:
    filename    -   name of file to be examined
    handle      -   PyFITS-style file handle for image
    dqsuffix    -   suffix for DQ array for non-MEF files

If 'dqsuffix' is not provided and the file is GEIS formatted,
then this class will search for a '.c1h' extension by default,
and return None if not found.

Instance Methods [hide private]
 
__init__(self, filename, handle=None, dqsuffix=None) source code
 
makeSciName(self, extver, section=None)
Returns the properly formatted filename to access the SCI extension.
source code
 
makeDQName(self, extver)
Create the name of the file which contains the DQ array.
source code
 
_setDQExtn(self, extn=None)
Builds extension specification for accessing DQ extension/group.
source code
 
_setSciExtn(self, extn=None)
Builds extension specification for accessing SCI extension/group.
source code
Method Details [hide private]

makeDQName(self, extver)

source code 

Create the name of the file which contains the DQ array. For multi-extension FITS files, this will be the same file as the SCI array.