Changeset 41603 for branches/eam_branches/relphot.20210521/src/TGroupOps.c
- Timestamp:
- May 21, 2021, 10:03:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/TGroupOps.c
r41562 r41603 853 853 continue; 854 854 } 855 float Mgrid = getMgrid (m, c);855 float Mgrid = getMgridTiny (&catalog[c].measureT[m]); 856 856 if (isnan(Mgrid)) { 857 857 info->Ngrid ++; … … 1013 1013 float Mmos = getMmos (m, c); // mosaic zero point 1014 1014 1015 float Mgrid = getMgrid (m, c); // camera offset (deprecated?)1015 float Mgrid = getMgridTiny (&catalog[c].measureT[m]); // camera offset (deprecated?) 1016 1016 float MrelPSF = getMrel (catalog, m, c, MAG_CLASS_PSF, MAG_SRC_CHP); // average magnitude 1017 1017 float Mflat = getMflat (m, c, flatcorr, catalog); // flat-field correction … … 1124 1124 free (threadinfo); 1125 1125 1126 // XXX not allocated SetMgrpInfoFree (&summary); 1127 1126 1128 npass_output ++; 1127 1129 … … 1268 1270 1269 1271 static float MinMaxChiSq = NAN; 1272 static float MaxMaxChiSq = 6.0; 1270 1273 static float MinMaxScatter = NAN; 1274 static float MaxMaxScatter = 0.1; 1271 1275 1272 1276 void clean_tgroups () { … … 1301 1305 float ChiSqUpper90 = stats.Upper90; 1302 1306 if (isnan (MinMaxChiSq)) MinMaxChiSq = 2.0*stats.median; 1303 float MaxChiSq = M AX (MinMaxChiSq, ChiSqUpper90);1307 float MaxChiSq = MIN(MaxMaxChiSq, MAX (MinMaxChiSq, ChiSqUpper90)); // the upper limit should be between MinMaxChiSq and MaxMaxChiSq 1304 1308 1305 1309 liststats (slist, NULL, NULL, N, &stats); 1306 1310 float ScatterUpper90 = stats.Upper90; 1307 1311 if (isnan (MinMaxScatter)) MinMaxScatter = 2.0*stats.median; 1308 float MaxScatter = M AX (MinMaxScatter, ScatterUpper90);1312 float MaxScatter = MIN(MaxMaxScatter, MAX (MinMaxScatter, ScatterUpper90)); 1309 1313 1310 1314 fprintf (stderr, "TGROUPS: Max ChiSq: %f, Max Scatter: %f | ChiSquare Upper 90: %f, Scatter Upper 90: %f\n", MaxChiSq, MaxScatter, ChiSqUpper90, ScatterUpper90); … … 1501 1505 1502 1506 float MrelPSF = getMrel (catalog, m, c, MAG_CLASS_PSF, MAG_SRC_CHP); // average magnitude 1503 // float Mgrid = getMgrid (m, c);// camera offset (deprecated?)1507 // float Mgrid = getMgridTiny (&catalog[c].measureT[m]); // camera offset (deprecated?) 1504 1508 // float Mflat = getMflat (m, c, flatcorr, catalog); // flat-field correction 1505 1509
Note:
See TracChangeset
for help on using the changeset viewer.
