IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40273


Ignore:
Timestamp:
Dec 12, 2017, 11:01:25 AM (9 years ago)
Author:
eugene
Message:

split zp into zpPSF and zpAPER

File:
1 edited

Legend:

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

    r40208 r40273  
    8686       
    8787       
    88 
    89 
    9088       if not self.analysisVer: self.analysisVer = -999
    9189
     
    822820        sqlLine.group("a.ra",           "b.ra")
    823821        sqlLine.group("a.dec",          "b.dec_")
    824         sqlLine.group("a.zp",           "b.zp")
     822        sqlLine.group("a.zp",           "b.zpPSF")
    825823        sqlLine.group("a.telluricExt",  "b.telluricExt")
    826824        sqlLine.group("a.airmass",      "b.airmass")
    827825        sqlLine.group("a.infoFlag3",    "b.flags")
    828826        sqlLine.group("a.expTime",      "b.expTime")
    829         sqlLine.group("a.psfFlux",      "a.psfFlux     * b.zpFactor")
    830         sqlLine.group("a.psfFluxErr",   "a.psfFluxErr  * b.zpFactor")
    831         sqlLine.group("a.apFlux",       "a.apFlux      * b.zpFactor")
    832         sqlLine.group("a.apFluxErr",    "a.apFluxErr   * b.zpFactor")
    833         sqlLine.group("a.kronFlux",     "a.kronFlux    * b.zpFactor")
    834         sqlLine.group("a.kronFluxErr",  "a.kronFluxErr * b.zpFactor")
    835         sqlLine.group("a.sky",          "a.sky         * b.zpFactor")
    836         sqlLine.group("a.skyErr",       "a.skyErr      * b.zpFactor")
     827        sqlLine.group("a.psfFlux",      "a.psfFlux     * b.zpFactorPSF")
     828        sqlLine.group("a.psfFluxErr",   "a.psfFluxErr  * b.zpFactorPSF")
     829        sqlLine.group("a.apFlux",       "a.apFlux      * b.zpFactorAPER")
     830        sqlLine.group("a.apFluxErr",    "a.apFluxErr   * b.zpFactorAPER")
     831        sqlLine.group("a.kronFlux",     "a.kronFlux    * b.zpFactorAPER")
     832        sqlLine.group("a.kronFluxErr",  "a.kronFluxErr * b.zpFactorAPER")
     833        sqlLine.group("a.sky",          "a.sky         * b.zpFactorAPER")
     834        sqlLine.group("a.skyErr",       "a.skyErr      * b.zpFactorAPER")
    837835
    838836        sql = sqlLine.makeEquals("WHERE a.ippDetectID = b.ippDetectID AND b.imageID = " + str(imageID))
    839837
    840         ## a.psfFlux      = a.psfFlux * 3630.78 * POW(10.0, -0.4*b.zp), \
     838        ## a.psfFlux      = a.psfFlux * 3630.78 * POW(10.0, -0.4*b.zpPSF), \
    841839
    842840        # instrumental flux vs Janskies:
    843         # b.ZP is defined to include the airmass term and zero point offset from relative calibration or ubercal
     841        # b.zpPSF is defined to include the airmass term and zero point offset from relative calibration or ubercal
    844842        # (see dvopsps/src/insert_detections_dvopsps_catalog.c:311
    845843        # mag_AB = -2.5*log(flux_DN/sec) + ZP
Note: See TracChangeset for help on using the changeset viewer.