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

    r41606 r41608  
    636636      // apply that offset as well here for this image (in other words, each detection is
    637637      // being compared to the model, excluding the zero point, Mcal.  The model includes
    638       // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
     638      // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat)
     639      // this was inconsistent w.r.t. PhotRel pre-r41606
    639640
    640641      float Mflat = getMflat (m, c, catalog);
     
    647648      }
    648649
    649       float Moff = Mmos + Mgrp + Mgrid - Mflat;
     650      float Moff = Mmos + Mgrp + Mgrid + Mflat;
    650651
    651652      PhotCode *code = GetPhotcodebyCode (catalog[c].measureT[m].photcode);
     
    830831      // apply that offset as well here for this image (in other words, each detection is
    831832      // being compared to the model, excluding the zero point, Mcal.  The model includes
    832       // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat)
     833      // the flat-correction.  NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat)
    833834
    834835      float Mflat = getMflat (m, c, catalog);
     
    842843      }
    843844
    844       float Moff = Mmos + Mgrp + Mgrid - Mflat;
     845      float Moff = Mmos + Mgrp + Mgrid + Mflat;
    845846
    846847      psfStars.alldata-> yVector[Nref] = MsysPSF - MrelPSF - Moff;
Note: See TracChangeset for help on using the changeset viewer.