Package invocations :: Package cu3 :: Module cu3 :: Class ModifyMfIDs
[hide private]

Class ModifyMfIDs

source code


Class for updating MfIDs and doing pre-ingest checks.

Instance Methods [hide private]

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

Static Methods [hide private]
 
checkExtensions(hduList)
Check if the fits file has the correct number of extensions.
source code
int
writeNewMfIDs(fileMfIDDict, fileList, redo, forceComp=False)
Write new multiframeIDs and wsaTimestamps into the files.
source code
 
writeZeroMfIDs(fileList)
Write a zero (0) multiframeID into the files.
source code
Class Variables [hide private]
  corruptFileDict = defaultdict(<type 'list'>, {})
  maxHDUsDef = {'OSA': 33, 'VSA': 17, 'WSA': 5}
  maxHDUs = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

checkExtensions(hduList)
Static Method

source code 

Check if the fits file has the correct number of extensions.

Parameters:
  • hduList (PyFITS list object.) - The list of all HDUs.

writeNewMfIDs(fileMfIDDict, fileList, redo, forceComp=False)
Static Method

source code 

Write new multiframeIDs and wsaTimestamps into the files.

Parameters:
  • fileList (list((str,str))) - List of tuples (pixelFile, catalogueFile)
  • forceComp (bool) - Compress uncompressed FITS files during MfID writing.
  • redo (bool) - If True, overwrite existing MfID.
Returns: int
The next available MultiframeID.

writeZeroMfIDs(fileList)
Static Method

source code 

Write a zero (0) multiframeID into the files.

Parameters:
  • fileList (list(str)) - List of file names