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!).
|
|
|
|
bool
|
|
|
|
|
_oldZPDict(self,
intStkZPs,
multiframeID)
? |
source code
|
|
|
_parseSchemas(self)
Parses WSA_MultiframeSchema.sql to determine MultiframeDetector and
PreviousMFDZP table attributes. |
source code
|
|
|
_propagateChanges(self,
mfID,
newZPDict,
oldZPInfo) |
source code
|
|
|
_updatePhotCalVers(self)
Updates end date of last recalibration version entry in table
PhotCalVers and inserts details for new recalibration version. |
source code
|
|
list(tuple(str, dict)) INCORRECT!
|
|
|
_getDict(self,
fitsName,
infoArray)
Produces dictionary of FITS updates from table. |
source code
|
|
|
_addHistory(self,
historyPhrase,
header,
numSpareKeys)
Update the FITS header to consolidate previous CASU HISTORY cards,
and to add in a new HISTORY card with supplied details. |
source code
|
|
|
|
|
|
|
_requiresUpdate(self,
header)
Tests whether a FITS header has already been updated with the latest
recalibration values. |
source code
|
|
int
|
_shrinkHistory(self,
header)
Consolidates previous CASU HISTORY cards into a smaller amount of
header space, to help prevent the creation of new header blocks. |
source code
|
|
|
_updateArchive(self,
mfID,
extNums,
tables,
zpValues)
Updates the database multiframe entry for the new zero-point values,
copying the old values into the PreviousMFDZP table. |
source code
|
|
|
_updateSynopticSource(self,
photTable,
deltaZP,
shortName,
mfID,
extNum)
? |
source code
|
|
|
_updateFiles(self,
calibList)
WRITE SOMETHING HERE |
source code
|
|
|
_updateCatalogueFile(self,
catPathName,
zpValues)
WRITE SOMETHING HERE |
source code
|
|
|
_updateImageFile(self,
imgPathName,
zpValues)
WRITE SOMETHING HERE |
source code
|
|
|
_updateKeywords(self,
header,
extNum,
zpValues)
Update keywords for latest recalibration values and update HISTORY
card. |
source code
|
|
Inherited from wsatools.DbConnect.CuSession.CuSession :
__del__ ,
__init__ ,
logBrokenFile ,
run
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
cuNum = 8
Curation task number.
|
|
calibKeys = [ ( ' MAGZPT ' , ' Photometric ZP (mags) for default ext ...
|
|
maxDeltaZP = 0.05
|
|
zpComment = ' Photometric ZP (mags) for default extinction '
|
|
zpErrComment = ' Photometric ZP error (mags) '
|
|
numZPComment = ' Number of standards used '
|
|
nightZPComment = ' Average photometric ZP (mags) for night '
|
|
nightZPErrComment = ' Photometric ZP sigma for night (mags) '
|
|
nightNumComment = ' Number of ZP used in band for night '
List of MultiframeDetector attributes to update together with their
calibration FITS keywords and descriptions.
|
|
highDeltaZP = 0.5
Warn if change in zero-point is greater than this value.
|
|
minimumDeltaZP = 0.0005
Only recalibrate detection table if change in zero-point is greater
than this value.
|
|
misplacedKeys = [ ' MAGZPT ' , ' MAGZRR ' ]
List of keys that should be removed from primary header.
|
|
paddingLine = ' WFAU added block padding '
Comment line to pad out excess space in FITS headers.
|
|
testDir = ' cu8_test_rsc '
Name of testing directory to store FITS file copies.
|
|
copyFits = False
Update copies of the FITS files instead of originals?
|
|
dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Include data observed between these nights only when doing the
automatic calibration of multi-epoch data.
|
|
fromMf = None
Continue recalibrations from this multiframe ID and catalogue file
onwards in the list (format tuple(int, str)).
|
|
releaseNum = None
Current release number of products to be automatically calibrated.
|
|
reqProdRange = None
Only apply the automatic calibration of multi-epoch data to this
product ID range.
|
|
tablePathName = '
'
Path to the file containing the table of new calibration values.
|
|
_fitsThread = None
A separate thread to run the FITS file updater.
|
|
_mfdAttrKeys = None
List of MultiframeDetector attributes to update, and corresponding
FITS keys.
|
|
_newVersNum = 0
Current recalibration version number.
|
|
_numErrors = 0
Counter for number of run-time errors raised.
|
|
_numWarnings = 0
Counter for number of run-time warnings raised.
|
|
_prevMDZPattrs = '
'
Comma-separated string of MultiframeDetector attributes to copy into
the PreviousMDZP table.
|
|
_recalSchema = None
Dictionary of lists of columns for recalibration attributes
referenced by the detection table for every programme that is to be
recalibrated.
|
|
_timeStamp = '
'
Time stamp to place into HISTORY card, denoting time of FITS update.
|
Inherited from wsatools.DbConnect.CuSession.CuSession :
archive ,
comment ,
cuEventID ,
curator ,
eTypes ,
isDayStampedLog ,
onlyNonSurveys ,
onlySurveys ,
programme ,
programmeID ,
resultsFilePathName ,
shareFileID ,
sysc
Inherited from wsatools.DbConnect.CuSession.CuSession (private):
_autoCommit ,
_cleanUpDirs ,
_cuTable ,
_isPersistent ,
_lockPathName ,
_log ,
_numSessions ,
_reqCuEventID ,
_reqDbLock ,
_rolledBack ,
_success ,
_useWorkDir
|