IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2012, 11:54:39 AM (14 years ago)
Author:
bills
Message:

Changes to PSPS table definitions for SA 10.
Detection tables contain all fluxes
Object table contains all magnitudes
Populate DetectionCalib and StackDetectinCalib

File:
1 edited

Legend:

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

    r34615 r34630  
    113113        self.logger.infoPair("Adding magnitudes from", "cps table")
    114114        for filter in filters:
     115
     116            filterID = self.scratchDb.getFilterID(filter[1])
    115117
    116118            sql = "UPDATE Object JOIN \
     
    129131                   ," + filter[1] + "80pct = MAG_80/1000 \
    130132                   ," + filter[1] + "Flags = FLAGS  \
    131                    ," + filter[1] + "StackDetectID = STACK_ID"
    132 
    133             #stackDetectID needs to be filled still for SA10 - currently at STACK_ID for test purposes
    134             # everthing should be correctly calculated as mags for SA10       
     133                   ," + filter[1] + "StackDetectID = (10 * STACK_DETECT_ID) + " + str(filterID)
     134
    135135            #self.logger.info(sql)
    136136            self.scratchDb.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.