IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2012, 12:17:39 PM (14 years ago)
Author:
heather
Message:

changes for SA9 - mostly filling in empty columns and fixing known broken stuff

File:
1 edited

Legend:

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

    r34290 r34441  
    124124                   ," + filter[1] + "StackPSFFlux = FLUX_PSF \
    125125                   ," + filter[1] + "StackPSFFluxErr = FLUX_PSF_ERR \
    126                    ," + filter[1] + "StackKronMag = -2.5 * log10(FLUX_KRON) -8.9 \
     126                   ," + filter[1] + "StackKronMag = -2.5 * log10(FLUX_KRON) + 8.9 \
    127127                   ," + filter[1] + "StackKronMagErr = FLUX_KRON_ERR / FLUX_KRON \
    128128                   ," + filter[1] + "20pct = MAG_20/1000 \
    129129                   ," + filter[1] + "80pct = MAG_80/1000 \
    130                    "
     130                   ," + filter[1] + "Flags = FLAGS " 
     131                   
    131132           
    132133            self.scratchDb.execute(sql)
     
    141142                   WHERE " + filter[1] + "MeanPSFMagErr > " + str(cut)
    142143            self.scratchDb.execute(sql)
     144
     145        self.logger.infoPair("Setting to NULL all x20pct =", "32.767" )
     146        for filter in filters:
     147            sql  = "UPDATE Object \
     148                   SET " + filter[1] + "20pct = null \
     149                   WHERE " + filter[1] + "20pct > 32.766"
     150            self.scratchDb.execute(sql)
     151        self.logger.infoPair("Setting to NULL all x80pct =", "32.767" )
     152        for filter in filters:
     153            sql  = "UPDATE Object \
     154                    SET " + filter[1] + "80pct = null \
     155                    WHERE " + filter[1] + "80pct > 32.766"
     156            self.scratchDb.execute(sql)
     157
     158
     159
    143160
    144161    '''
     
    187204               ,decErr \
    188205               ,nDetections \
     206               ,extra \
     207               ,sgSep \
    189208               ,dataRelease \
    190209               ) \
     
    200219               ,DEC_ERR \
    201220               ,NMEASURE \
     221               ,PSF_QF_PERF \
     222               ,STARGAL_SEP \
    202223               , " + str(self.config.dataRelease) + "\
    203224               FROM " + cptTableName
Note: See TracChangeset for help on using the changeset viewer.