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:
-
CU8 *still* has issues with interrupts and not closing down properly
may be sensible to give up with the multi-threading idea...
-
Order FITS updates in disk order??
-
Reduce code replication, break up into functions further, document,
improve calib table parser.
-
Tidy up calibrateZeroPoint.
-
Separate out FITS Writing code etc. into a FitsUtils.Writer class, for
CU6 etc.
-
Implement global recalibration solution.
Author:
N.J.G. Cross
Organization:
WFAU, IfA, University of Edinburgh
Contributors:
R.S. Collins
Requires:
PyFITS
|
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!).
|
|
|
|
getPawPrintCalLines(pawPrintZPList,
deltaZP,
history)
Produce calibration lines |
source code
|
|
|
__package__ = ' invocations.cu8 '
|
Check whether tile ZP updates have been propagated to pawprints. using
versNum. If not calculate difference in ZP so far.
|