Package gavo :: Package helpers :: Module processing :: Class ImmediateHeaderProcessor
[frames] | no frames]

Class ImmediateHeaderProcessor

source code

   object --+    
            |    
FileProcessor --+
                |
               ImmediateHeaderProcessor

An base for processors doing simple FITS manipulations to the primary FITS header.

To define these, override ``_isProcessed(self, srcName, hdr)`` and ``_changeHeader(self, hdr)``.

``_changeHeader`` can change the pyfits header ``hdr`` in place. It will then be replaced on the actual file.

For complex operations, it is probably advisable to use ``HeaderProcessor`` which gives you a two-step process of first having the detached headers that you can check before applying them.

Instance Methods
 
process(self, srcName) source code

Inherited from FileProcessor: __init__, addClassification, classify, getProductKey, iterIdentifiers, iterJobs, printReport, printTableSize, printVerboseReport, processAll

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
addOptions(optParser) source code
Class Variables

Inherited from FileProcessor: inputsDir

Properties

Inherited from object: __class__

Method Details

process(self, srcName)

source code 
Overrides: FileProcessor.process

addOptions(optParser)
Static Method

source code 
Overrides: FileProcessor.addOptions