IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38771


Ignore:
Timestamp:
Sep 24, 2015, 7:49:00 PM (11 years ago)
Author:
heather
Message:

astroscat on detection

Location:
trunk/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/config/tables.P2.vot

    r38765 r38771  
    185185      </FIELD>
    186186      <FIELD name="astroScat" arraysize="1" datatype="float" unit="arcsec" default="-999">
    187         <DESCRIPTION>Astrometric scatter relative to reference catalog.</DESCRIPTION>
     187        <DESCRIPTION>Measurement of the calibration (not astrometric error) defined to be SQRT(AST_CDX^2 + AST_CDY^2)</DESCRIPTION>
    188188      </FIELD>
    189189      <FIELD name="photoScat" arraysize="1" datatype="float" unit="magnitudes" default="-999">
  • trunk/ippToPsps/jython/detectionbatch.py

    r38765 r38771  
    198198        psfFwhm = 0.5*(float(psfFwhmMajor) + float(psfFwhmMinor))
    199199
     200        ast_cdx = self.getKeyFloat(header, "%.8f",'AST_CDX')
     201        ast_cdy = self.getKeyFloat(header, "%.8f",'AST_CDY')
     202        astroscat = sqrt(ast_cdx^2 + ast_cdy^2)
     203                       
     204       
    200205        # insert image metadata into table
    201206        sqlLine = sqlUtility("INSERT INTO " + tableName + "(")
     
    208213        sqlLine.group("skyScat",          self.getKeyFloat(header, "%.8f", 'MSKY_SIG'))
    209214        sqlLine.group("completMag",       self.getKeyFloat(header, "%.8f", 'FLIMIT'))
    210         sqlLine.group("astroScat",        self.getKeyFloat(header, "%.8f", 'CERROR'))
     215        sqlLine.group("astroScat",        astroscat)
    211216        sqlLine.group("photoScat",        self.getKeyFloat(self.header, "%.8f", 'ZPT_ERR'))
    212217        sqlLine.group("numAstroRef",      self.getKeyValue(header, 'NASTRO'))
Note: See TracChangeset for help on using the changeset viewer.