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

    r38791 r38794  
    198198        psfFwhm = 0.5*(float(psfFwhmMajor) + float(psfFwhmMinor))
    199199
     200        psfmodel_name = self.getKeyValue(header, 'PSFMODEL')
     201        psfmodelID    = self.scratchDb.getFitModelID(psfmodel_name)
     202
    200203        ast_cdx = self.getKeyFloat(header, "%.8f",'AST_CDX')
    201204        ast_cdy = self.getKeyFloat(header, "%.8f",'AST_CDY')
     
    219222        sqlLine.group("nx",               self.getKeyInt(header, 0, 'CNAXIS1'))
    220223        sqlLine.group("ny",               self.getKeyInt(header, 0, 'CNAXIS2'))
     224        sqlLine.group("psfModelID"        psfmodelID)
    221225        sqlLine.group("psfFwhm",          str(psfFwhm))
    222226        sqlLine.group("psfWidMajor",      psfFwhmMajor)
Note: See TracChangeset for help on using the changeset viewer.