Index: branches/eam_branches/relphot.20200519/src/MosaicOps.c
===================================================================
--- branches/eam_branches/relphot.20200519/src/MosaicOps.c	(revision 41362)
+++ branches/eam_branches/relphot.20200519/src/MosaicOps.c	(revision 41387)
@@ -919,4 +919,5 @@
   int Nbad;
   int Ncal;
+  int Ngrp;
   int Ngrid;
   int Nrel;
@@ -1154,4 +1155,5 @@
     if (fout) {
       float Mcal     = getMcal  (m, c, MAG_CLASS_PSF);
+      // float Mgrp     = getMgrp  (m, c, catalog[c].measureT[m].airmass);
       float Mgrid    = getMgrid (m, c);
       float MrelPSF  = getMrel  (catalog, m, c, MAG_CLASS_PSF, MAG_SRC_CHP);
@@ -1175,4 +1177,9 @@
     if (isnan(Mcal)) {
       info->Ncal++;
+      continue;
+    }
+    float Mgrp = getMgrp  (m, c, catalog[c].measureT[m].airmass);
+    if (isnan(Mgrp)) {
+      info->Ngrp++;
       continue;
     }
@@ -1692,5 +1699,5 @@
   off_t i, j, m, c, n, N;
   double *list, *dlist;
-  float Mcal, Mgrid, Mrel;
+  float Mcal, Mgrp, Mgrid, Mrel;
   StatType stats;
 
@@ -1716,4 +1723,6 @@
       Mcal = getMcal  (m, c, MAG_CLASS_PSF);
       if (isnan(Mcal)) continue;
+      Mgrp = getMgrp  (m, c, catalog[c].measureT[m].airmass);
+      if (isnan(Mgrp)) continue;
       Mgrid = getMgrid (m, c);
       if (isnan(Mgrid)) continue;
