IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2021, 1:44:24 PM (5 years ago)
Author:
eugene
Message:

fix inconsistency between Mgrid and Mflat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/MosaicOps.c

    r41606 r41608  
    10691069    // apply that offset as well here for this image (in other words, each detection is
    10701070    // being compared to the model, excluding the zero point, Mcal.  The model includes
    1071     // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
     1071    // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat).
     1072    // this was inconsistent pre r41606
    10721073
    10731074    float Mflat = getMflat (m, c, catalog);
     
    10941095    assert (Nbright >= 0);
    10951096
    1096     float Moff =  Mcal + Mgrp + Mgrid - Mflat;
     1097    float Moff =  Mcal + Mgrp + Mgrid + Mflat;
    10971098
    10981099    psfStars->alldata-> yVector[N] = MsysPSF - MrelPSF - Moff;
     
    12051206    float MsysPSF = PhotSysTiny (&catalog[c].measureT[m], &catalog[c].averageT[n], &catalog[c].secfilt[n*Nsecfilt], MAG_CLASS_PSF);
    12061207   
    1207     float delta = MsysPSF - MrelPSF - Mcal - Mgrid + Mflat;
     1208    float delta = MsysPSF - MrelPSF - Mcal - Mgrid - Mflat;
    12081209
    12091210    int isBad = (catalog[c].measureT[m].dbFlags & MEAS_BAD);
Note: See TracChangeset for help on using the changeset viewer.