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/MagResidSave.c

    r41606 r41608  
    233233    // apply that offset as well here for this image (in other words, each detection is
    234234    // being compared to the model, excluding the zero point, Mcal.  The model includes
    235     // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
     235    // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat)
    236236
    237237    float Mflat = getMflat (m, c, catalog);
     
    248248    if (isnan(MsysPSF)) continue;
    249249
    250     float Moff = Mcal + Mmos + Mgrp + Mgrid - Mflat;
     250    float Moff = Mcal + Mmos + Mgrp + Mgrid + Mflat;
    251251
    252252    // Mrel is the true average apparent magnitude of this star
Note: See TracChangeset for help on using the changeset viewer.