Home | Trees | Indices | Help |
|
---|
|
object --+ | FileProcessor --+ | HeaderProcessor
A base for processors doing FITS header manipulations.
The processor builds naked FITS headers alongside the actual files, with an added extension .hdr (or whatever is in the headerExt attribute). The presence of a FITS header indicates that a file has been processed. The headers on the actual FITS files are only replaced if necessary.
The basic flow is: Check if there is a header. If not, call _getNewHeader(srcFile) -> hdr. Store hdr to cache. Insert cached header in the new FITS if it's not there yet.
You have to implement the _getHeader(srcName) -> pyfits header object function. It must raise an exception if it cannot come up with a header. You also have to implement _isProcessed(srcName) -> boolean returning True if you think srcName already has a processed header.
This basic flow is influenced by the following opts attributes:
The idea is that you can:
All this leads to the messy logic. Sorry 'bout this.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Static Methods | |||
|
|||
|
Class Variables | |
headerExt = ".hdr"
|
|
maxHeaderBlocks = 40
|
|
cardSequence = None hash(x) |
|
keepKeys = set(["SIMPLE", "BITPIX", "NAXIS", "NAXIS1", "NAXIS2
|
|
Inherited from |
Properties | |
Inherited from |
Method Details |
returns true if the comment value should be preserved. You may want to override this. |
returns the primary header of srcName. This is a convenience function for user derived classes. |
|
|
Class Variable Details |
keepKeys
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |