IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2015, 4:13:12 PM (11 years ago)
Author:
eugene
Message:

fix typo in var name expTimeString; set expTimeString in stackbatch.py

File:
1 edited

Legend:

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

    r38800 r38802  
    332332
    333333        BEFORE = self.scratchDb.getRowCount(ippTableName)
    334         extTimeString = str(self.expTime[num])
     334        expTimeString = str(self.expTime[num])
    335335
    336336#missing are zp, telluricExt, airmass (not easy to get ?)
     
    353353        print "here4"
    354354        sqlLine.group("obsTime", str(self.obsTime[num]))
    355         sqlLine.group("FpsfFlux",          "PSF_INST_FLUX / " + extTimeString)
    356         sqlLine.group("FpsfFluxErr",       "PSF_INST_FLUX_SIG / " + extTimeString)
     355        sqlLine.group("FpsfFlux",          "PSF_INST_FLUX / " + expTimeString)
     356        sqlLine.group("FpsfFluxErr",       "PSF_INST_FLUX_SIG / " + expTimeString)
    357357        sqlLine.group("FpsfMajorFWHM",     "PSF_FWHM_MAJ * abs(PLTSCALE)")
    358358        sqlLine.group("FpsfMinorFWHM",     "PSF_FWHM_MIN * abs(PLTSCALE)")
     
    372372        sqlLine.group("FmomentM4C",        "MOMENTS_M4C * PLTSCALE * PLTSCALE")
    373373        sqlLine.group("FmomentM4S",        "MOMENTS_M4S * PLTSCALE * PLTSCALE")
    374         sqlLine.group("FapFlux",           "AP_FLUX / " + extTimeString)
    375         sqlLine.group("FapFluxErr",        "AP_FLUX_SIG / " + extTimeString)
     374        sqlLine.group("FapFlux",           "AP_FLUX / " + expTimeString)
     375        sqlLine.group("FapFluxErr",        "AP_FLUX_SIG / " + expTimeString)
    376376        sqlLine.group("FapFillF",          "AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
    377377        sqlLine.group("FapRadius",         "AP_MAG_RADIUS")
    378         sqlLine.group("FkronFlux",         "KRON_FLUX / " + extTimeString)
    379         sqlLine.group("FkronFluxErr",      "KRON_FLUX_ERR / " + extTimeString )
     378        sqlLine.group("FkronFlux",         "KRON_FLUX / " + expTimeString)
     379        sqlLine.group("FkronFluxErr",      "KRON_FLUX_ERR / " + expTimeString )
    380380        sqlLine.group("FkronRad",          "MOMENTS_R1 * 2.5 * abs(PLTSCALE)")
    381         sqlLine.group("Fsky",              "SKY / PLTSCALE / PLTSCALE / " + extTimeString)
    382         sqlLine.group("FskyErr",           "SKY_SIGMA / PLTSCALE / PLTSCALE / " + extTimeString)
     381        sqlLine.group("Fsky",              "SKY / PLTSCALE / PLTSCALE / " + expTimeString)
     382        sqlLine.group("FskyErr",           "SKY_SIGMA / PLTSCALE / PLTSCALE / " + expTimeString)
    383383        sqlLine.group("FinfoFlag",         "FLAGS")
    384384        sqlLine.group("FinfoFlag2",        "FLAGS2")
Note: See TracChangeset for help on using the changeset viewer.