IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:44:20 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/ippToPsps

  • branches/eam_branches/ipp-20130509/ippToPsps/jython/stackbatch.py

    r35496 r35748  
    455455               ,psfQf \
    456456               ,psfQfPerfect \
     457               ,psfChiSq \
    457458               ,momentXX \
    458459               ,momentXY \
     
    469470               ,kronFluxErr \
    470471               ,kronRad \
    471                ,psfChiSq \
    472472               ,nFrames \
    473473               ,assocDate \
     
    495495               ,PSF_QF \
    496496               ,PSF_QF_PERFECT \
     497               ,PSF_CHISQ / PSF_NDOF \
    497498               ,MOMENTS_XX \
    498499               ,MOMENTS_XY \
     
    504505               ,MOMENTS_R1 \
    505506               ,MOMENTS_RH \
    506                ,AP_FLUX / " + str(self.expTime) + " \
     507               ,POW(10.0, -0.4*AP_MAG) / " + str(self.expTime) + " \
    507508               ,NULL \
    508509               ,KRON_FLUX / " + str(self.expTime) + " \
    509510               ,KRON_FLUX_ERR / " + str(self.expTime) + " \
    510511               ,MOMENTS_R1 * 2.5 \
    511                ,PSF_CHISQ / PSF_NDOF \
    512512               ,N_FRAMES \
    513513               , '" + self.dateStr + "' \
     
    520520#               ,POW(10.0, -0.4*AP_MAG) / " + str(self.expTime) + "
    521521
     522# I need a way to choose the sql above based on the cmf version: V3 (LAP.PV1) does not have AP_FLUX
     523#               ,AP_FLUX / " + str(self.expTime) + "
     524
    522525        # print "sql: ", sql
    523526        # response = raw_input("ready to insert stack det ")
     
    540543       
    541544        self.scratchDb.updateAllRows("StackDetection", "dataRelease", str(self.skychunk.dataRelease))
    542        
     545        #set primary F to 0
    543546        self.scratchDb.updateAllRows("StackDetection", "primaryF", "0")
    544547       
     
    550553       
    551554        self.updateDvoIDsAndFlags("StackDetection")
     555        #this now updates primary F as well
    552556        # response = raw_input("updated dvo ")
    553557       
     
    725729
    726730        # now update StackMeta with correct number of inputs
    727         sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT(*) FROM StackToImage)"
     731        sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT(distinct(floor(imageID/100))) FROM StackToImage)"
    728732        self.scratchDb.execute(sql)
    729733
     
    940944               a.objID = b.objID, \
    941945               a.infoFlag = b.flags << 45 | a.infoFlag \
     946               a.primaryF = ((b.flags & 0x10000) >> 16 ) \
    942947               WHERE a.ippDetectID = b.ippDetectID \
    943948               AND b.imageID = " + str(imageID)
Note: See TracChangeset for help on using the changeset viewer.