IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38881


Ignore:
Timestamp:
Oct 17, 2015, 1:25:01 PM (11 years ago)
Author:
bills
Message:

set photCalID (photcode) photoZero and the recalibration stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/forcedwarpbatch.py

    r38865 r38881  
    226226        header   = self.header[num]
    227227        self.logger.infoPair("found header","ok")
    228 #        photoCalID = str(self.scratchDb.getPhotoCalID(forcedWarpID))       
     228        photoCalID = str(self.scratchDb.getPhotoCalID(header['IMAGEID']))       
    229229
    230230        psfmodel_name = self.getKeyValue(header, 'PSFMODEL')
     
    243243        sqlLine.group("projectionID",  str(self.projectionID))
    244244        sqlLine.group("skyCellID",     str(self.skycellID[num]))
    245 #        sqlLine.group("photoCalID",    photoCalID)
     245        sqlLine.group("photoCalID",    photoCalID)
    246246#        self.logger.infoPair("building sql ","2")
    247247     
     
    261261        sqlLine.group("psfFwhm_mean",   self.getKeyFloat(header, "%.8f", 'FWHM_MAJ'))
    262262        sqlLine.group("psfFwhm_max",    self.getKeyFloat(header, "%.8f", 'FW_MJ_UQ'))
    263 #        sqlLine.group("photoZero",        self.getKeyFloat(self.header, "%.8f", 'ZPT_OBS'))
     263        sqlLine.group("photoZero",        self.getKeyFloat(self.header, "%.8f", 'FP.ZP'))
    264264        #photoColor -- how do I set this? it's also not set in stack meta
    265265        sqlLine.group("ctype1",                self.getKeyValue(header, 'CTYPE1'));
     
    283283            self.logger.errorPair('failed sql: ', sql)
    284284            raise
     285
     286            # note hardcoded pltscale
     287        self.scratchDb.updateRecalStats("ForcedWarpMeta_"+forcedWarpID, header['IMAGEID'], "0.25");
    285288
    286289        self.scratchDb.updateAllRows("ForcedWarpMeta_"+forcedWarpID, "batchID", str(self.batchID))
Note: See TracChangeset for help on using the changeset viewer.