IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2021, 4:49:23 PM (5 years ago)
Author:
eugene
Message:

add code to set Mflat based on Mgrid before final Mrel calculation

File:
1 edited

Legend:

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

    r41603 r41607  
    301301  return Mgrid;
    302302}
     303
     304// for historical reasons, Mflat and Mgrid have opposite signs
     305void setMflatFromGrid (Catalog *catalog) {
     306  if (!GRID_ZEROPT) return;
     307  for (off_t j = 0; j < catalog->Nmeasure; j++) {
     308    float Mgrid = getMgrid (&catalog->measure[j]);
     309    catalog->measure[j].Mflat -= Mgrid;
     310  }
     311}
     312
Note: See TracChangeset for help on using the changeset viewer.