IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2008, 2:22:25 PM (17 years ago)
Author:
Paul Price
Message:

Sign error for exposure time term.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackSources.c

    r20995 r21016  
    8787        }
    8888
    89         zp->data.F32[i] = airmassTerm * airmass + 2.5 * log10(exptime);
     89        zp->data.F32[i] = airmassTerm * airmass - 2.5 * log10(exptime);
    9090        sumExpTime += exptime;
    9191    }
     
    131131    }
    132132
    133     // M = m + c0 + c1 * airmass + 2.5log(t) + transparency
     133    // M = m + c0 + c1 * airmass - 2.5log(t) + transparency
    134134    // Want sources to have m corresponding to airmass = 1 and t = sumExpTime and transparency = 0
    135135    // m_0 + c1 * airmass_0 + 2.5log(t_0) - trans_0 = m_1 + c1 * airmass_1 + 2.5log(t_1) - trans_1
     
    138138    for (int i = 0; i < num; i++) {
    139139        psArray *sources = sourceLists->data[i]; // Sources of interest
    140         float magCorr = airmassTerm + 2.5*log10(sumExpTime) - zp->data.F32[i] - trans->data.F32[i];
     140        float magCorr = airmassTerm - 2.5*log10(sumExpTime) - zp->data.F32[i] - trans->data.F32[i];
    141141        psLogMsg("ppStack", PS_LOG_INFO, "Applying magnitude correction to image %d: %f\n", i, magCorr);
    142142
     
    150150    }
    151151    psFree(trans);
    152 
    153152
    154153#ifdef TESTING
Note: See TracChangeset for help on using the changeset viewer.