IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2015, 3:38:02 PM (11 years ago)
Author:
watersc1
Message:

Fix psfModelID type issue in ForcedWarpMeta/StackMeta, and implement psfModelID for ImageMeta. Added getFitModelID function to do the conversion of string to int.

File:
1 edited

Legend:

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

    r38787 r38794  
    225225        fwhm_maj    = self.getKeyFloat(header, "%.8f", 'FWHM_MAJ')
    226226        fwhm_maj_uq = self.getKeyFloat(header, "%.8f", 'FW_MJ_UQ')
    227         psfmodel    = self.getKeyValue(header, 'PSFMODEL')
     227        psfmodel_name    = self.getKeyValue(header, 'PSFMODEL')
     228        psfmodelID  = self.scratchDb.getFitModelID(psfmodel_name)
    228229
    229230        ast_cdx = self.getKeyFloat(header, "%.8f",'AST_CDX')
     
    259260        sqlLine.group("completMag",       self.getKeyFloat(header, "%.8f", 'FLIMIT'))
    260261        sqlLine.group("expTime",       self.getKeyFloat(header, "%.5f", 'EXPTIME')) 
    261         sqlLine.group("psfModelID",    psfmodel)           
     262        sqlLine.group("psfModelID",    psfmodelID)           
    262263        sqlLine.group("psfFwhm_mean",  fwhm_maj)     
    263264        sqlLine.group("psfFwhm_max",   fwhm_maj_uq)
Note: See TracChangeset for help on using the changeset viewer.