IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38880


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

Set some values that were unset or are new: photoScat nAstroRef nPhotoRef
set the new recalibration stats

File:
1 edited

Legend:

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

    r38855 r38880  
    259259        expTime = self.getKeyFloat(header, "%.8f", 'EXPTIME')
    260260        zp      = self.getKeyFloat(header, "%.8f", 'ZPT_OBS')
     261        zpErr   = self.getKeyFloat(header, "%.8f", 'ZPT_ERR')
    261262
    262263        # XXX zp correction should come from DVO
     
    287288        sqlLine.group("astroScat",          astroscat)
    288289        sqlLine.group("photoZero",          zp)
     290        sqlLine.group("photoScat",          zpErr)
     291        sqlLine.group("nAstroRef",          header['NASTRO'])
     292        sqlLine.group("nPhotoRef",          header['NASTRO'])
    289293        sqlLine.group("ctype1",             header['CTYPE1']) 
    290294        sqlLine.group("ctype2",             header['CTYPE2']) 
     
    307311            self.logger.error("problem with SQL: " + sql)
    308312            raise
     313       
     314        self.scratchDb.updateRecalStats(tablename, str(stackID), str(pltscale))
    309315
    310316        self.tablesToExport.append(tablename)
Note: See TracChangeset for help on using the changeset viewer.