Changeset 41608 for branches/eam_branches/relphot.20210521/src/TGroupOps.c
- Timestamp:
- May 22, 2021, 1:44:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/TGroupOps.c
r41606 r41608 874 874 // apply that offset as well here for this image (in other words, each detection is 875 875 // being compared to the model, excluding the zero point, Mcal. The model includes 876 // the flat-correction. NOTE the sign of Mflat (Image.Mcal = Measure.Mcal - Mflat) 876 // the flat-correction. NOTE the sign of Mflat (Image.Mcal = Measure.Mcal + Mflat) 877 // this was inconsistent with PhotRel pre-r41606 877 878 878 879 float Mflat = getMflat (m, c, catalog); … … 899 900 assert (Nbright >= 0); 900 901 901 float Moff = Mcal + Mmos + Mgrid -Mflat;902 float Moff = Mcal + Mmos + Mgrid + Mflat; 902 903 903 904 psfStars->alldata-> yVector[N] = MsysPSF - MrelPSF - Moff; … … 1022 1023 1023 1024 // for historical reasons, Mflat is defined with the wrong sign 1024 float delta = MsysPSF - MrelPSF - Mcal - Mmos - Mgrid +Mflat - myTGroup->McalPSF;1025 float delta = MsysPSF - MrelPSF - Mcal - Mmos - Mgrid - Mflat - myTGroup->McalPSF; 1025 1026 1026 1027 int isBad = (catalog[c].measureT[m].dbFlags & MEAS_BAD); … … 1503 1504 float MrelPSF = getMrel (catalog, m, c, MAG_CLASS_PSF, MAG_SRC_CHP); // average magnitude 1504 1505 // float Mgrid = getMgridTiny (&catalog[c].measureT[m]); // camera offset (deprecated?) 1505 //float Mflat = getMflat (m, c, catalog); // flat-field correction1506 float Mflat = getMflat (m, c, catalog); // flat-field correction 1506 1507 1507 1508 off_t n = catalog[c].measureT[m].averef; … … 1511 1512 1512 1513 // for historical reasons, Mflat is defined with the wrong sign 1513 float delta = MsysPSF - MrelPSF - Mcal - Mmos - Mgrp ;1514 float delta = MsysPSF - MrelPSF - Mcal - Mmos - Mgrp - Mflat; 1514 1515 1515 1516 fprintf (fout, "%f %f : %f %f : %f %f %f : %f %f\n", catalog[c].averageT[n].R, catalog[c].averageT[n].D, MsysPSF, MrelPSF, Mcal, Mmos, Mgrp, catalog[c].measureT[m].airmass, delta);
Note:
See TracChangeset
for help on using the changeset viewer.
