IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2015, 9:50:16 AM (11 years ago)
Author:
eugene
Message:

get image zero point information from DVO Image table

File:
1 edited

Legend:

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

    r38939 r38951  
    261261        zpErr   = self.getKeyFloat(header, "%.8f", 'ZPT_ERR')
    262262
     263        zpImage = self.scratchDb.getImageZeroPoint(stackID)
     264
    263265        # XXX zp correction should come from DVO
    264         detectionThreshold = detectionThreshold + zp - 2.5 * math.log10(expTime)
     266        detectionThreshold = detectionThreshold + zpImage - 2.5 * math.log10(expTime)
    265267       
    266268        # insert stack metadata into table
     
    287289#       sqlLine.group("psfFwhm_max",        fwhm_maj_uq)
    288290        sqlLine.group("astroScat",          astroscat)
    289         sqlLine.group("photoZero",          zp)
     291        sqlLine.group("photoZero",          zpImage)
    290292        sqlLine.group("photoScat",          zpErr)
    291293        sqlLine.group("nAstroRef",          header['NASTRO'])
Note: See TracChangeset for help on using the changeset viewer.