Package invocations :: Package cu8 :: Module cu8
[hide private]

Module cu8

source code

Invoke CU8. Updates the photometric zero-point values in FITS files and in the database.

If the database update fails for any reason, re-run the script from the last catalogue that was not updated using the -f/--from option, once the problem is fixed. If any FITS files fail to update, an error message is logged. Fix these files, and either recalibrate by hand (placing in the correct HISTORY card for the current recalibration revision), or if many still need recalibration, then run the script again in -t/--test mode which only updates FITS files that need updating and not the database (make use of -f/--from option too to save time). FITS files that have already been updated will not be re-updated as there will be HISTORY card noting that file has been updated for this present recalibration version.

To apply the same set of recalibration values to files that have been freshly transfered from CASU, go through the same procedure but add the -r/--rerun option with the name of the transfer log. Just the re-transfered files will be updated, and the previous recalibration version number will be applied to them.


To Do:

Author: N.J.G. Cross

Organization: WFAU, IfA, University of Edinburgh

Contributors: R.S. Collins

Requires: PyFITS

Classes [hide private]
  Cu8
Updates the photometric zero-point values in FITS files and in the database, from the values provided in the CASU-supplied calibration table file if specified with -m/--manual option otherwise a global solution to all data is applied (not implemented yet!).
Functions [hide private]
 
getZPHistory(db, mfIDs)
Check whether tile ZP updates have been propagated to pawprints.
source code
 
getPawPrintCalLines(pawPrintZPList, deltaZP, history)
Produce calibration lines
source code
Variables [hide private]
  __package__ = 'invocations.cu8'
Function Details [hide private]

getZPHistory(db, mfIDs)

source code 

Check whether tile ZP updates have been propagated to pawprints. using versNum. If not calculate difference in ZP so far.