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/forcedwarpbatch.py

    r38945 r38951  
    133133           self.logger.infoPair("found exp_id",     str(self.expID[num]))
    134134           self.logger.infoPair("found exp_time",   str(self.expTime[num]))
    135            self.logger.infoPair("found filter",     str(self.filterNam[num]))
     135           self.logger.infoPair("found filter",     str(self.filterName[num]))
    136136           self.logger.infoPair("found skycell_id", self.skycellName[num])
    137137           self.logger.infoPair("found tess_id",    self.tessName[num])
     
    216216       self.outputFitsPath = "%s/%s" % (self.localOutPath, self.outputFitsFile)
    217217
    218 
    219 
    220218       # dump stuff to log
    221219       self.logger.infoPair("add ID", "%d" % self.id)
    222 
    223 #       self.logger.infoPair("Exp ID", self.expID)
    224 
    225 
    226 
    227 
    228 
    229220
    230221    '''
     
    243234        self.logger.infoPair("found header","ok")
    244235
    245         # photoCalID = str(self.scratchDb.getPhotoCalID(header['IMAGEID']))       
    246 
    247         # XXX fix this:
    248         photoCalID = GPC1.filtername.ForcedWarp
     236        photoCalID = str(self.scratchDb.getPhotoCalID(header['IMAGEID']))       
     237
     238        # PHOTCODE and FILTER are not in the header; reconstruct here
     239        # photoCalID = "GPC1.%s.ForcedWarp" % self.filterName[num][0]
     240
     241        zpImage = self.scratchDb.getImageZeroPoint(header['IMAGEID'])
    249242
    250243        # XXX hard-wired platescale : 0.25
     
    285278        # sqlLine.group("psfFwhm_max",    self.getKeyFloat(header, "%.8f", 'FW_MJ_UQ'))
    286279
    287         # XXX: should psfTheta include the angle of the source chip in some way?
    288280        sqlLine.group("psfTheta",       self.getKeyFloat(header, "%.8f", 'ANGLE'))
    289         sqlLine.group("photoZero",      self.getKeyFloat(header, "%.8f", 'FPA.ZP'))
     281
     282        # sqlLine.group("photoZero",      self.getKeyFloat(header, "%.8f", 'FPA.ZP'))
     283        sqlLine.group("photoZero",      zpImage)
     284
    290285        # photoColor -- how do I set this? it's also not set in stack meta
    291286        sqlLine.group("ctype1",         self.getKeyValue(header, 'CTYPE1'));
Note: See TracChangeset for help on using the changeset viewer.