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

    r40373 r41387  
    221221
    222222    // ** Choose the calibration (depends on the mode : do I have an image reference or not?)
    223     float Mcal = 0.0, Mmos = 0.0, Mgrid = 0.0, Mflat = 0.0;
     223    float Mcal = 0.0, Mmos = 0.0, Mgrid = 0.0, Mflat = 0.0, Mgrp = 0.0;
    224224    off_t meas = measureOffset + k;
    225225    if (getImageEntry (meas, cat) < 0) {
     
    235235      Mmos  = getMmos  (meas, cat);
    236236      if (isnan(Mmos))  SKIP_THIS_MEAS(Nmos);
     237      Mgrp  = getMgrp  (meas, cat, measureT[k].airmass);
     238      if (isnan(Mgrp))  SKIP_THIS_MEAS(Ngrp);
    237239      Mgrid = getMgrid (meas, cat);
    238240      if (isnan(Mgrid)) SKIP_THIS_MEAS(Ngrid);
     
    261263      if (CHECK_VALID_MAG(Map, dMap)) {
    262264        int Nap = results->aperData[Nsec].Nlist;
    263         results->aperData[Nsec].flxlist[Nap] = Map - Mflat - Mcal - Mmos - Mgrid; // this is consistent with PhotRel
     265        results->aperData[Nsec].flxlist[Nap] = Map - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel
    264266        results->aperData[Nsec].errlist[Nap] = dMap;
    265267        results->aperData[Nsec].wgtlist[Nap] = useUbercalWeight ? UBERCAL_WEIGHT : 1.0;
     
    281283    if (CHECK_VALID_MAG(Mkron, dMkron)) {
    282284      int Nkron = results->kronData[Nsec].Nlist;
    283       results->kronData[Nsec].flxlist[Nkron] = Mkron - Mflat - Mcal - Mmos - Mgrid; // this is consistent with PhotRel
     285      results->kronData[Nsec].flxlist[Nkron] = Mkron - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel
    284286      results->kronData[Nsec].errlist[Nkron] = dMkron;
    285287      results->kronData[Nsec].wgtlist[Nkron] = isUbercal ? UBERCAL_WEIGHT : 1.0;
     
    294296    if (CHECK_VALID_MAG(Mpsf, dMpsf)) {
    295297      int Npsf = results->psfData[Nsec].Nlist;
    296       results->psfData[Nsec].flxlist[Npsf] = Mpsf - Mflat - Mcal - Mmos - Mgrid; // this is consistent with PhotRel
     298      results->psfData[Nsec].flxlist[Npsf] = Mpsf - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel
    297299      results->psfData[Nsec].errlist[Npsf] = dMpsf;
    298300      results->psfData[Nsec].wgtlist[Npsf] = isUbercal ? UBERCAL_WEIGHT : 1.0;
     
    711713      Mmos      = getMmos  (measSeq, cat);
    712714      Mgrid     = getMgrid (measSeq, cat);
     715      // XXX can Mmos and Mgrid exist for stacks?
    713716    }
    714717   
Note: See TracChangeset for help on using the changeset viewer.