IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38736


Ignore:
Timestamp:
Sep 15, 2015, 1:46:52 PM (11 years ago)
Author:
heather
Message:

heather changes

Location:
trunk/ippToPsps/jython
Files:
4 edited

Legend:

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

    r38602 r38736  
    102102     
    103103       # set up some defauts
    104        self.calibModNum = 0
    105104       self.totalNumPhotoRef = 0
    106105
     
    180179        self.scratchDb.updateAllRows("FrameMeta", "surveyID", str(self.surveyID))
    181180        self.scratchDb.updateFilterID("FrameMeta", self.filter)
    182         self.scratchDb.updateAllRows("FrameMeta", "calibModNum", str(self.calibModNum))
    183181        self.scratchDb.updateAllRows("FrameMeta", "dataRelease", str(self.skychunk.dataRelease))
    184182
     
    299297
    300298        self.scratchDb.updateFilterID(tableName, self.filter)
    301         self.scratchDb.updateAllRows(tableName, "calibModNum", str(self.calibModNum))
    302299        self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.skychunk.dataRelease))
    303300        if 'NASTRO' in header: self.totalNumPhotoRef = self.totalNumPhotoRef + int(header['NASTRO'])
  • trunk/ippToPsps/jython/diffbatch.py

    r38602 r38736  
    185185       
    186186
    187        self.calibModNum = 0;
    188187       self.dataRelease = skychunk.dataRelease;
    189188       
     
    238237        self.scratchDb.updateAllRows("DiffMeta_"+str(num), "surveyID", str(self.surveyID))
    239238        self.scratchDb.updateFilterID("DiffMeta_"+str(num), self.filterName[num][0])
    240         self.scratchDb.updateAllRows("DiffMeta_"+str(num), "calibModNum", str(self.calibModNum))
    241239        self.scratchDb.updateAllRows("DiffMeta_"+str(num), "dataRelease", str(self.skychunk.dataRelease))
    242240        self.logger.infoPair("DiffMeta_"+str(num),"done")
     
    301299#            sqlLine.group("raErr",           "X_PSF_SIG * 0.257")
    302300#            sqlLine.group("decErr",          "Y_PSF_SIG * 0.257")
    303         sqlLine.group("psfFlux",         "PSF_INST_FLUX / " + extTimeString)
    304         sqlLine.group("psfFluxErr",      "PSF_INST_FLUX_SIG / " + extTimeString)
     301        sqlLine.group("DpsfFlux",         "PSF_INST_FLUX / " + extTimeString)
     302        sqlLine.group("DpsfFluxErr",      "PSF_INST_FLUX_SIG / " + extTimeString)
    305303#        if (self.id >= 982483):   #we don't have PSF_FWHM_MAJ or MIN or PSF_CORE
    306304#            sqlLine.group("psfMajorFWHM",    "PSF_FWHM_MAJ")                                               
    307305#            sqlLine.group("psfMinorFWHM",    "PSF_FWHM_MIN")                                               
    308306#            sqlLine.group("psfCore",         "PSF_CORE")                                                   
    309         sqlLine.group("psfTheta",        "PSF_THETA")                                               
    310         sqlLine.group("psfQf",           "PSF_QF")                                                 
    311         sqlLine.group("psfQfPerfect",    "PSF_QF_PERFECT")                               
    312         sqlLine.group("psfChiSq",        "PSF_CHISQ")                                     
    313         sqlLine.group("psfLikelihood",   "psfLikelihood(EXT_NSIGMA)")                               
    314         sqlLine.group("momentXX",        "MOMENTS_XX")                                             
    315         sqlLine.group("momentXY",        "MOMENTS_XY")                                             
    316         sqlLine.group("momentYY",        "MOMENTS_YY")                                             
    317         sqlLine.group("momentR1",        "MOMENTS_R1")                                             
    318         sqlLine.group("momentRH",        "MOMENTS_RH")                                             
    319 #        sqlLine.group("momentM3C",       "MOMENTS_M3C")                                             
    320 #        sqlLine.group("momentM3S",       "MOMENTS_M3S")                                             
    321 #        sqlLine.group("momentM4C",       "MOMENTS_M4C")                                             
    322 #        sqlLine.group("momentM4S",       "MOMENTS_M4S")                                             
     307        sqlLine.group("DpsfTheta",        "PSF_THETA")                                               
     308        sqlLine.group("DpsfQf",           "PSF_QF")                                                 
     309        sqlLine.group("DpsfQfPerfect",    "PSF_QF_PERFECT")                               
     310        sqlLine.group("DpsfChiSq",        "PSF_CHISQ")                                     
     311        sqlLine.group("DpsfLikelihood",   "psfLikelihood(EXT_NSIGMA)")                               
     312        sqlLine.group("DmomentXX",        "MOMENTS_XX")                                             
     313        sqlLine.group("DmomentXY",        "MOMENTS_XY")                                             
     314        sqlLine.group("DmomentYY",        "MOMENTS_YY")                                             
     315        sqlLine.group("DmomentR1",        "MOMENTS_R1")                                             
     316        sqlLine.group("DmomentRH",        "MOMENTS_RH")                                             
     317#        sqlLine.group("DmomentM3C",       "MOMENTS_M3C")                                             
     318#        sqlLine.group("DmomentM3S",       "MOMENTS_M3S")                                             
     319#        sqlLine.group("DmomentM4C",       "MOMENTS_M4C")                                             
     320#        sqlLine.group("DmomentM4S",       "MOMENTS_M4S")                                             
    323321        if (self.id >= 982483):
    324             sqlLine.group("apFlux",          "AP_FLUX / " + extTimeString)
    325             sqlLine.group("apFluxErr",       "AP_FLUX_SIG / " + extTimeString)
    326  #           sqlLine.group("apFillF",         "AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
    327  #       sqlLine.group("apRadius",        "AP_MAG_RADIUS")
    328         sqlLine.group("kronFlux",        "KRON_FLUX / " + extTimeString)
    329         sqlLine.group("kronFluxErr",     "KRON_FLUX_ERR / " + extTimeString)
    330         sqlLine.group("kronRad",         "MOMENTS_R1 * 2.5")
     322            sqlLine.group("DapFlux",          "AP_FLUX / " + extTimeString)
     323            sqlLine.group("DapFluxErr",       "AP_FLUX_SIG / " + extTimeString)
     324 #           sqlLine.group("DapFillF",         "AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
     325 #       sqlLine.group("DapRadius",        "AP_MAG_RADIUS")
     326        sqlLine.group("DkronFlux",        "KRON_FLUX / " + extTimeString)
     327        sqlLine.group("DkronFluxErr",     "KRON_FLUX_ERR / " + extTimeString)
     328        sqlLine.group("DkronRad",         "MOMENTS_R1 * 2.5")
    331329        sqlLine.group("diffNPos",         "DIFF_NPOS")
    332330        sqlLine.group("diffFRatio",         "DIFF_FRATIO")
     
    338336        sqlLine.group("diffPSN",         "DIFF_SN_P")
    339337        sqlLine.group("diffNSN",         "DIFF_SN_M")
    340         sqlLine.group("sky",             "SKY  / " + extTimeString)
    341         sqlLine.group("skyErr",          "SKY_SIGMA  / " + extTimeString)
    342         sqlLine.group("infoFlag",        "FLAGS")                         
    343         sqlLine.group("infoFlag2",       "FLAGS2")                         
     338        sqlLine.group("Dsky",             "SKY  / " + extTimeString)
     339        sqlLine.group("DskyErr",          "SKY_SIGMA  / " + extTimeString)
     340        sqlLine.group("DinfoFlag",        "FLAGS")                         
     341        sqlLine.group("DinfoFlag2",       "FLAGS2")                         
    344342        sqlLine.group("dataRelease",     str(self.skychunk.dataRelease))                 
    345343
     
    494492               a.airmass      = b.airmass, \
    495493               a.expTime      = b.expTime, \
    496                a.infoFlag3    = b.flags  \
     494               a.DinfoFlag3    = b.flags  \
    497495               WHERE a.ippDetectID = b.ippDetectID \
    498496               AND b.imageID = " + str(imageID)
  • trunk/ippToPsps/jython/forcedobjectbatch.py

    r38397 r38736  
    272272                   ,ForcedMeanObject." + filter[1] + "FmeanflxR7Std   =  FLUX_STD_AP_R7 \
    273273                   ,ForcedMeanObject." + filter[1] + "FmeanflxR7Fill  =  FLUX_FIL_AP_R7 \
    274                    ,ForcedMeanObject." + filter[1] + "Gamma           =  GAMMA \
    275274                   ,ForcedMeanObject." + filter[1] + "E1              =  E1 \
    276275                   ,ForcedMeanObject." + filter[1] + "E2              =  E2 "
  • trunk/ippToPsps/jython/forcedwarpbatch.py

    r38602 r38736  
    7272
    7373
    74        self.calibModNum = 0
    7574       self.totalNumPhotoRef = 0
    7675       self.number={}
     
    280279#        self.scratchDb.updateFilterID("ForcedWarpMeta", self.filterID)
    281280        self.scratchDb.updateFilterID("ForcedWarpMeta_"+forcedWarpID,self.filterName[num][0])
    282         self.scratchDb.updateAllRows("ForcedWarpMeta_"+forcedWarpID, "calibModNum", str(self.calibModNum))
    283281        self.scratchDb.updateAllRows("ForcedWarpMeta_"+forcedWarpID, "dataRelease", str(self.skychunk.dataRelease))
    284282        #self.tablesToExport.append("ForcedWarpMeta")
     
    352350        print "here4"
    353351        sqlLine.group("obsTime", str(self.obsTime[num]))
    354         sqlLine.group("psfFlux", "PSF_INST_FLUX / "+extTimeString)
    355         sqlLine.group("psfFluxErr", "PSF_INST_FLUX_SIG / "+extTimeString)
    356         sqlLine.group("psfMajorFWHM",    "PSF_FWHM_MAJ")
    357         sqlLine.group("psfMinorFWHM",    "PSF_FWHM_MIN")
    358         sqlLine.group("psfTheta",        "PSF_THETA")
    359         sqlLine.group("psfCore",         "PSF_CORE")
    360         sqlLine.group("psfQf",           "PSF_QF")
    361         sqlLine.group("psfQfPerfect",    "PSF_QF_PERFECT")
    362         sqlLine.group("psfChiSq",        "PSF_CHISQ")
    363         sqlLine.group("psfLikelihood",   "psfLikelihood(EXT_NSIGMA)")
    364         sqlLine.group("momentXX",        "MOMENTS_XX")
    365         sqlLine.group("momentXY",        "MOMENTS_XY")
    366         sqlLine.group("momentYY",        "MOMENTS_YY")
    367         sqlLine.group("momentR1",        "MOMENTS_R1")
    368         sqlLine.group("momentRH",        "MOMENTS_RH")
    369         sqlLine.group("momentM3C",       "MOMENTS_M3C")
    370         sqlLine.group("momentM3S",       "MOMENTS_M3S")
    371         sqlLine.group("momentM4C",       "MOMENTS_M4C")
    372         sqlLine.group("momentM4S",       "MOMENTS_M4S")
    373         sqlLine.group("apFlux","AP_FLUX / " + extTimeString)
    374         sqlLine.group("apFluxErr","AP_FLUX_SIG / " + extTimeString)
    375         sqlLine.group("apFillF","AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
    376         sqlLine.group("kronFlux","KRON_FLUX / " + extTimeString)
    377         sqlLine.group("kronFluxErr","KRON_FLUX_ERR / " + extTimeString )
    378         sqlLine.group("kronRad","MOMENTS_R1 * 2.5")
    379         sqlLine.group("sky","SKY /" +extTimeString)
    380         sqlLine.group("skyErr","SKY_SIGMA / "+extTimeString)
    381         sqlLine.group("infoFlag","FLAGS")
    382         sqlLine.group("infoFlag2","FLAGS2")
     352        sqlLine.group("FpsfFlux", "PSF_INST_FLUX / "+extTimeString)
     353        sqlLine.group("FpsfFluxErr", "PSF_INST_FLUX_SIG / "+extTimeString)
     354        sqlLine.group("FpsfMajorFWHM",    "PSF_FWHM_MAJ")
     355        sqlLine.group("FpsfMinorFWHM",    "PSF_FWHM_MIN")
     356        sqlLine.group("FpsfTheta",        "PSF_THETA")
     357        sqlLine.group("FpsfCore",         "PSF_CORE")
     358        sqlLine.group("FpsfQf",           "PSF_QF")
     359        sqlLine.group("FpsfQfPerfect",    "PSF_QF_PERFECT")
     360        sqlLine.group("FpsfChiSq",        "PSF_CHISQ")
     361        sqlLine.group("FpsfLikelihood",   "psfLikelihood(EXT_NSIGMA)")
     362        sqlLine.group("FmomentXX",        "MOMENTS_XX")
     363        sqlLine.group("FmomentXY",        "MOMENTS_XY")
     364        sqlLine.group("FmomentYY",        "MOMENTS_YY")
     365        sqlLine.group("FmomentR1",        "MOMENTS_R1")
     366        sqlLine.group("FmomentRH",        "MOMENTS_RH")
     367        sqlLine.group("FmomentM3C",       "MOMENTS_M3C")
     368        sqlLine.group("FmomentM3S",       "MOMENTS_M3S")
     369        sqlLine.group("FmomentM4C",       "MOMENTS_M4C")
     370        sqlLine.group("FmomentM4S",       "MOMENTS_M4S")
     371        sqlLine.group("FapFlux","AP_FLUX / " + extTimeString)
     372        sqlLine.group("FapFluxErr","AP_FLUX_SIG / " + extTimeString)
     373        sqlLine.group("FapFillF","AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
     374        sqlLine.group("FkronFlux","KRON_FLUX / " + extTimeString)
     375        sqlLine.group("FkronFluxErr","KRON_FLUX_ERR / " + extTimeString )
     376        sqlLine.group("FkronRad","MOMENTS_R1 * 2.5")
     377        sqlLine.group("Fsky","SKY /" +extTimeString)
     378        sqlLine.group("FskyErr","SKY_SIGMA / "+extTimeString)
     379        sqlLine.group("FinfoFlag","FLAGS")
     380        sqlLine.group("FinfoFlag2","FLAGS2")
    383381        sqlLine.group("dataRelease",str(self.skychunk.dataRelease))
    384382
     
    408406        sqlLine.group("a.telluricExt","b.telluricExt")
    409407        sqlLine.group("a.airmass","b.airmass")
    410         sqlLine.group("a.infoFlag3","b.flags")
     408        sqlLine.group("a.FinfoFlag3","b.flags")
    411409        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID AND b.imageID = " +str( imageID))
    412410        try: self.scratchDb.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.