IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2020, 9:30:05 AM (6 years ago)
Author:
eugene
Message:

updates to get tgroups working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20200519/src/StarOps.c

    r41362 r41387  
    491491        float Mmos  = getMmos  (m, i);
    492492        if (isnan(Mmos)) continue;
    493         float Mgrp  = getMgrp  (m, i);
     493        float Mgrp  = getMgrp  (m, i, catalog[i].measureT[m].airmass);
    494494        if (isnan(Mgrp)) continue;
    495495        float Mgrid = getMgrid (m, i);
     
    507507
    508508        // set the output calibration
    509         float Moff = Mmos + Mgrp + Mgrid;
     509        // float Moff = Mmos + Mgrp + Mgrid;
     510        float Moff = Mmos + Mgrid; // Mgrp has already been applied to the image.Mcal
    510511        catalog[i].measure[m].McalPSF  = McalPSF + Moff;
    511512        catalog[i].measure[m].McalAPER = useStackAper ? McalAPER + Moff : McalPSF + Moff;
     
    730731          Mmos  = getMmos  (m, i);
    731732          if (isnan(Mmos)) { Nmos ++; continue; }
    732           Mgrp  = getMgrp  (m, i);
     733          Mgrp  = getMgrp  (m, i, catalog[i].measureT[m].airmass);
    733734          if (isnan(Mgrp)) { Ngrp ++; continue; }
    734735          Mgrid = getMgrid (m, i);
     
    736737
    737738          Msys = PhotSysTiny (&catalog[i].measureT[m], &catalog[i].averageT[j], &catalog[i].secfilt[j*Nsecfilt], MAG_CLASS_PSF);
    738           list[N] = Msys - Mcal - Mmos - Mgrid;
     739          list[N] = Msys - Mcal - Mmos - Mgrp - Mgrid;
    739740          dlist[N] = MAX (catalog[i].measureT[m].dM, MIN_ERROR);
    740741          N++;
Note: See TracChangeset for help on using the changeset viewer.