IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2013, 12:18:10 PM (13 years ago)
Author:
heather
Message:

various fixes to everything

File:
1 edited

Legend:

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

    r36147 r36190  
    243243            cnt=cnt+1
    244244           
    245         sql=sql+"WHERE a.ippDetectID=b.IPP_IDET AND b.PSF_FWHM "+psfCondition     
     245        sql=sql+"WHERE a.ippDetectID=b.IPP_IDET AND "+psfCondition     
    246246        self.scratchDb.execute(sql)
    247247
     
    633633
    634634        # TODO temporarily loading 1st convolved fluxes into unconvolved fields
     635
     636        #This assumes that there are 3 different fluxs, the first is unconv, and the 2nd and 3rd are convolved. If there are more than 3 fluxes it will break.   
     637        # If there are more than 3 types of fluxes, we should do a count to find out how many there are and adjust this accordingly (make it more robust)
     638
    635639        self.logger.infoPair("Adding fluxes", "un-convolved")
    636         self.updateApFlxs("", "IS NULL")
     640        self.updateApFlxs("", "((b.table_index -1) % 3 = 0)")
    637641        self.logger.infoPair("Adding fluxes", "1st convolved")
    638         self.updateApFlxs("c1", "< 7.0")
     642        self.updateApFlxs("c1", "((b.table_index -1) % 3 = 1)")
    639643        self.logger.infoPair("Adding fluxes", "2nd convolved")
    640         self.updateApFlxs("c2", "> 7.0")
     644        self.updateApFlxs("c2", "((b.table_index -1) % 3 = 2)")
    641645
    642646        self.logger.infoPair("Adding", "petrosians for extended sources")
Note: See TracChangeset for help on using the changeset viewer.