Changeset 37740 for trunk/Ohana
- Timestamp:
- Dec 12, 2014, 12:38:50 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/src/setMrelCatalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/setMrelCatalog.c
r37251 r37740 518 518 haveStackObject = TRUE; 519 519 520 // match measurement to its image (this is just a check, right?)521 if (getImageEntry (meas, cat) < 0) {522 fprintf (stderr, "*** warning : this should be impossible\n");523 abort();524 continue;525 }526 527 520 // find the PRIMARY measurement 528 521 … … 543 536 // overlaps). we only want measurements associated with stack images in this loop 544 537 545 Mcal = getMcal_alt (meas, cat, flatcorr, measure[k].Xccd, measure[k].Yccd); 546 if (isnan(Mcal)) SKIP_THIS_MEAS_STACK(Ncal); 547 Mmos = getMmos (meas, cat); 548 if (isnan(Mmos)) SKIP_THIS_MEAS_STACK(Nmos); 549 Mgrid = getMgrid (meas, cat); 550 if (isnan(Mgrid)) SKIP_THIS_MEAS_STACK(Ngrid); 538 // match measurement to its image (this is just a check, right?) 539 if (getImageEntry (meas, cat) < 0) { 540 // measurements without an image are either external reference photometry or 541 // data for which the associated image has not been loaded (probably because of 542 // overlaps). Msys + measure.Mcal is our best guess of the true magnitude 543 Mmos = Mgrid = 0; 544 Mcal = measure[k].Mcal; // check that this is zero for loaded REF value 545 } else { 546 Mcal = getMcal_alt (meas, cat, flatcorr, measure[k].Xccd, measure[k].Yccd); 547 if (isnan(Mcal)) SKIP_THIS_MEAS_STACK(Ncal); 548 Mmos = getMmos (meas, cat); 549 if (isnan(Mmos)) SKIP_THIS_MEAS_STACK(Nmos); 550 Mgrid = getMgrid (meas, cat); 551 if (isnan(Mgrid)) SKIP_THIS_MEAS_STACK(Ngrid); 552 } 551 553 552 554 // NOTE: negative and insignificant vlues values are allowed, but not NAN flux values
Note:
See TracChangeset
for help on using the changeset viewer.
