IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38791


Ignore:
Timestamp:
Oct 6, 2015, 3:33:45 PM (11 years ago)
Author:
eugene
Message:

fix lengths to be in arcsec

File:
1 edited

Legend:

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

    r38780 r38791  
    453453        sqlLine.group("momentYY",         "MOMENTS_YY * PLTSCALE * PLTSCALE")                                             
    454454        sqlLine.group("momentR1",         "MOMENTS_R1 * abs(PLTSCALE)")                                             
    455         sqlLine.group("momentRH",         "MOMENTS_RH * abs(PLTSCALE)")                                             
     455        sqlLine.group("momentRH",         "MOMENTS_RH * sqrt(abs(PLTSCALE))")                                             
    456456        sqlLine.group("momentM3C",        "MOMENTS_M3C * PLTSCALE * PLTSCALE")                                             
    457457        sqlLine.group("momentM3S",        "MOMENTS_M3S * PLTSCALE * PLTSCALE")                                             
     
    462462            sqlLine.group("apFluxErr",    "AP_FLUX_SIG / " + extTimeString)
    463463            sqlLine.group("apFillF",      "AP_NPIX / (3.14159265359 * POW(AP_MAG_RADIUS - 0.5, 2))")
    464         sqlLine.group("apRadius",         "AP_MAG_RADIUS")
     464        sqlLine.group("apRadius",         "AP_MAG_RADIUS * abs(PLTSCALE)")
    465465        sqlLine.group("kronFlux",         "KRON_FLUX / " + extTimeString)
    466466        sqlLine.group("kronFluxErr",      "KRON_FLUX_ERR / " + extTimeString)
     
    705705               a.kronFluxErr  = a.kronFluxErr * b.zpFactor  \
    706706               a.sky          = a.sky         * b.zpFactor, \
    707                a.skyErr       = a.skyErr      * b.zpFactor, \
     707               a.skyErr       = a.skyErr      * b.zpFactor  \
    708708               WHERE a.ippDetectID = b.ippDetectID \
    709709               AND b.imageID = " + str(imageID)
Note: See TracChangeset for help on using the changeset viewer.