Changeset 41606 for branches/eam_branches/relphot.20210521/src/ImageOps.c
- Timestamp:
- May 21, 2021, 2:04:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/ImageOps.c
r41604 r41606 497 497 } 498 498 499 float getMflat (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) {500 OHANA_UNUSED_PARAM(flatcorr);501 502 off_t i = MeasureToImage[cat][meas];503 if (i == -1) return (NAN);504 505 float offset = catalog[cat].measureT[meas].Mflat;506 if (!isfinite(offset)) {507 offset = 0.0;508 }509 return (offset);510 }511 512 499 Coords *getCoords (off_t meas, int cat) { 513 500 … … 520 507 521 508 /* determine Mcal values for all images */ 522 void setMcal (Catalog *catalog , FlatCorrectionTable *flatcorr) {509 void setMcal (Catalog *catalog) { 523 510 524 511 off_t i, j, m, c, n; … … 651 638 // the flat-correction. NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat) 652 639 653 float Mflat = getMflat (m, c, flatcorr,catalog);640 float Mflat = getMflat (m, c, catalog); 654 641 655 642 n = catalog[c].measureT[m].averef; … … 773 760 774 761 /* determine McalTEST values for all images -- this is not used to set measure.Mcal, but only to test */ 775 void setMcalTest (Catalog *catalog , FlatCorrectionTable *flatcorr) {762 void setMcalTest (Catalog *catalog) { 776 763 777 764 off_t i, j, m, c, n; … … 845 832 // the flat-correction. NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat) 846 833 847 float Mflat = getMflat (m, c, flatcorr,catalog);834 float Mflat = getMflat (m, c, catalog); 848 835 849 836 // get the PSF magnitude for thie measurement, with airmass slope applied … … 1084 1071 } 1085 1072 1086 StatType statsImageN (Catalog *catalog , FlatCorrectionTable *flatcorr) {1073 StatType statsImageN (Catalog *catalog) { 1087 1074 1088 1075 off_t i, j, m, c, n, N;
Note:
See TracChangeset
for help on using the changeset viewer.
