IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2017, 1:13:53 PM (9 years ago)
Author:
eugene
Message:

split zp into zpPSF and zpAPER

File:
1 edited

Legend:

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

    r40226 r40278  
    444444        sqlLine.group("a.ippObjID",   "b.ippObjID")
    445445        sqlLine.group("a.dvoRegionID","b.catID")
    446         sqlLine.group("a.zp",         "b.zp")
     446        sqlLine.group("a.zp",         "b.zpPSF")
    447447        sqlLine.group("a.telluricExt","b.telluricExt")
    448448        sqlLine.group("a.airmass",    "b.airmass")
    449449        sqlLine.group("a.FinfoFlag3", "b.flags")
    450450
    451         sqlLine.group("a.FpsfFlux",     "a.FpsfFlux     * b.zpFactor")
    452         sqlLine.group("a.FpsfFluxErr",  "a.FpsfFluxErr  * b.zpFactor")
    453         sqlLine.group("a.FapFlux",      "a.FapFlux      * b.zpFactor")
    454         sqlLine.group("a.FapFluxErr",   "a.FapFluxErr   * b.zpFactor")
    455         sqlLine.group("a.FkronFlux",    "a.FkronFlux    * b.zpFactor")
    456         sqlLine.group("a.FkronFluxErr", "a.FkronFluxErr * b.zpFactor")
    457         sqlLine.group("a.Fsky",         "a.Fsky         * b.zpFactor")
    458         sqlLine.group("a.FskyErr",      "a.FskyErr      * b.zpFactor")
     451        sqlLine.group("a.FpsfFlux",     "a.FpsfFlux     * b.zpFactorPSF")
     452        sqlLine.group("a.FpsfFluxErr",  "a.FpsfFluxErr  * b.zpFactorPSF")
     453        sqlLine.group("a.FapFlux",      "a.FapFlux      * b.zpFactorAPER")
     454        sqlLine.group("a.FapFluxErr",   "a.FapFluxErr   * b.zpFactorAPER")
     455        sqlLine.group("a.FkronFlux",    "a.FkronFlux    * b.zpFactorAPER")
     456        sqlLine.group("a.FkronFluxErr", "a.FkronFluxErr * b.zpFactorAPER")
     457        sqlLine.group("a.Fsky",         "a.Fsky         * b.zpFactorAPER")
     458        sqlLine.group("a.FskyErr",      "a.FskyErr      * b.zpFactorAPER")
    459459
    460460        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID AND b.imageID = " +str( imageID))
     
    576576
    577577        sqlLine = sqlUtility("UPDATE " + pspsTableName + " as a, " + self.scratchDb.dvoDetectionTable + " as b SET ")
    578         sqlLine.group("a.flxR5",     "a.flxR5     * b.zpFactor")
    579         sqlLine.group("a.flxR5Err",  "a.flxR5Err  * b.zpFactor")
    580         sqlLine.group("a.flxR5Std",  "a.flxR5Std  * b.zpFactor")
    581 
    582         sqlLine.group("a.flxR6",     "a.flxR6     * b.zpFactor")
    583         sqlLine.group("a.flxR6Err",  "a.flxR6Err  * b.zpFactor")
    584         sqlLine.group("a.flxR6Std",  "a.flxR6Std  * b.zpFactor")
    585 
    586         sqlLine.group("a.flxR7",     "a.flxR7     * b.zpFactor")
    587         sqlLine.group("a.flxR7Err",  "a.flxR7Err  * b.zpFactor")
    588         sqlLine.group("a.flxR7Std",  "a.flxR7Std  * b.zpFactor")
     578        sqlLine.group("a.flxR5",     "a.flxR5     * b.zpFactorAPER")
     579        sqlLine.group("a.flxR5Err",  "a.flxR5Err  * b.zpFactorAPER")
     580        sqlLine.group("a.flxR5Std",  "a.flxR5Std  * b.zpFactorAPER")
     581
     582        sqlLine.group("a.flxR6",     "a.flxR6     * b.zpFactorAPER")
     583        sqlLine.group("a.flxR6Err",  "a.flxR6Err  * b.zpFactorAPER")
     584        sqlLine.group("a.flxR6Std",  "a.flxR6Std  * b.zpFactorAPER")
     585
     586        sqlLine.group("a.flxR7",     "a.flxR7     * b.zpFactorAPER")
     587        sqlLine.group("a.flxR7Err",  "a.flxR7Err  * b.zpFactorAPER")
     588        sqlLine.group("a.flxR7Std",  "a.flxR7Std  * b.zpFactorAPER")
    589589
    590590        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID AND b.imageID = " +str( imageID))
Note: See TracChangeset for help on using the changeset viewer.