IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 11:35:03 AM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130419
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419

  • branches/eam_branches/ipp-20130419/ippToPsps

  • branches/eam_branches/ipp-20130419/ippToPsps/jython/objectbatch.py

    r35417 r35554  
    137137                   ," + filter[1] + "MeanKronMag = MAG_KRON \
    138138                   ," + filter[1] + "MeanKronMagErr = MAG_KRON_ERR \
    139                    ," + filter[1] + "StackPSFMag = -2.5 * log10(FLUX_PSF) + 8.9 \
    140                    ," + filter[1] + "StackPSFMagErr = FLUX_PSF_ERR / FLUX_PSF \
    141                    ," + filter[1] + "StackKronMag = -2.5 * log10(FLUX_KRON) + 8.9 \
    142                    ," + filter[1] + "StackKronMagErr = FLUX_KRON_ERR / FLUX_KRON \
     139                   ," + filter[1] + "StackPSFMag = STACK_PSF_MAG \
     140                   ," + filter[1] + "StackPSFMagErr = STACK_PSF_MAG_ERR \
     141                   ," + filter[1] + "StackKronMag = STACK_KRON_MAG \
     142                   ," + filter[1] + "StackKronMagErr = STACK_KRON_MAG_ERR \
    143143                   ," + filter[1] + "20pct = MAG_20/1000 \
    144144                   ," + filter[1] + "80pct = MAG_80/1000 \
    145145                   ," + filter[1] + "Flags = (0x7fff & FLAGS) | ((FLAGS >> 11) & 0x2000) \
    146146                   ," + filter[1] + "StackDetectID = STACK_DETECT_ID"
     147
     148# old method for setting the Stack (PSF,Kron) Mags:
     149#                  ," + filter[1] + "StackPSFMag = -2.5 * log10(FLUX_PSF) + 8.9 \
     150#                  ," + filter[1] + "StackPSFMagErr = FLUX_PSF_ERR / FLUX_PSF \
     151#                  ," + filter[1] + "StackKronMag = -2.5 * log10(FLUX_KRON) + 8.9 \
     152#                  ," + filter[1] + "StackKronMagErr = FLUX_KRON_ERR / FLUX_KRON \
    147153
    148154            #self.logger.info(sql)
     
    216222        cpsTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cps")
    217223
    218         self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR")
    219         sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 "
     224        if False:
     225            self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON_ERR")
     226            sql = "UPDATE " + cpsTableName + " set FLUX_KRON_ERR = NULL where FLUX_KRON_ERR < 1e-37 AND FLUX_KRON_ERR > -1e-37 "
    220227     
    221         try:
    222             self.scratchDb.execute(sql)
    223         except:
    224             self.logger.errorPair("Couldn't squash out of range stuff", sql)
    225             return False
    226 
    227         self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON")
    228         sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 "
     228            try:
     229                self.scratchDb.execute(sql)
     230            except:
     231                self.logger.errorPair("Couldn't squash out of range stuff", sql)
     232                return False
     233
     234            self.logger.infoPair("setting to null  > 1e-38 and < 1e-38 in", "cps FLUX_KRON")
     235            sql = "UPDATE " + cpsTableName + " set FLUX_KRON = NULL where FLUX_KRON < 1e-37 AND FLUX_KRON > -1e-37 "
    229236     
    230         try:
    231             self.scratchDb.execute(sql)
    232         except:
    233             self.logger.errorPair("Couldn't squash out of range stuff", sql)
    234             return False
    235 
    236 
    237 
     237            try:
     238                self.scratchDb.execute(sql)
     239            except:
     240                self.logger.errorPair("Couldn't squash out of range stuff", sql)
     241                return False
    238242
    239243       
Note: See TracChangeset for help on using the changeset viewer.