- Timestamp:
- Jul 7, 2020, 9:30:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20200519/src/setMrelCatalog.c
r40373 r41387 221 221 222 222 // ** 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; 224 224 off_t meas = measureOffset + k; 225 225 if (getImageEntry (meas, cat) < 0) { … … 235 235 Mmos = getMmos (meas, cat); 236 236 if (isnan(Mmos)) SKIP_THIS_MEAS(Nmos); 237 Mgrp = getMgrp (meas, cat, measureT[k].airmass); 238 if (isnan(Mgrp)) SKIP_THIS_MEAS(Ngrp); 237 239 Mgrid = getMgrid (meas, cat); 238 240 if (isnan(Mgrid)) SKIP_THIS_MEAS(Ngrid); … … 261 263 if (CHECK_VALID_MAG(Map, dMap)) { 262 264 int Nap = results->aperData[Nsec].Nlist; 263 results->aperData[Nsec].flxlist[Nap] = Map - Mflat - Mcal - Mmos - Mgr id; // this is consistent with PhotRel265 results->aperData[Nsec].flxlist[Nap] = Map - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel 264 266 results->aperData[Nsec].errlist[Nap] = dMap; 265 267 results->aperData[Nsec].wgtlist[Nap] = useUbercalWeight ? UBERCAL_WEIGHT : 1.0; … … 281 283 if (CHECK_VALID_MAG(Mkron, dMkron)) { 282 284 int Nkron = results->kronData[Nsec].Nlist; 283 results->kronData[Nsec].flxlist[Nkron] = Mkron - Mflat - Mcal - Mmos - Mgr id; // this is consistent with PhotRel285 results->kronData[Nsec].flxlist[Nkron] = Mkron - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel 284 286 results->kronData[Nsec].errlist[Nkron] = dMkron; 285 287 results->kronData[Nsec].wgtlist[Nkron] = isUbercal ? UBERCAL_WEIGHT : 1.0; … … 294 296 if (CHECK_VALID_MAG(Mpsf, dMpsf)) { 295 297 int Npsf = results->psfData[Nsec].Nlist; 296 results->psfData[Nsec].flxlist[Npsf] = Mpsf - Mflat - Mcal - Mmos - Mgr id; // this is consistent with PhotRel298 results->psfData[Nsec].flxlist[Npsf] = Mpsf - Mflat - Mcal - Mmos - Mgrp - Mgrid; // this is consistent with PhotRel 297 299 results->psfData[Nsec].errlist[Npsf] = dMpsf; 298 300 results->psfData[Nsec].wgtlist[Npsf] = isUbercal ? UBERCAL_WEIGHT : 1.0; … … 711 713 Mmos = getMmos (measSeq, cat); 712 714 Mgrid = getMgrid (measSeq, cat); 715 // XXX can Mmos and Mgrid exist for stacks? 713 716 } 714 717
Note:
See TracChangeset
for help on using the changeset viewer.
