Changeset 41387 for branches/eam_branches/relphot.20200519/src/ImageOps.c
- Timestamp:
- Jul 7, 2020, 9:30:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20200519/src/ImageOps.c
r40291 r41387 586 586 587 587 off_t i, j, m, c, n; 588 int mark, bad, Nfew, Nbad, Nmos, N rel, Ngrid, Nsys;588 int mark, bad, Nfew, Nbad, Nmos, Ngrp, Nrel, Ngrid, Nsys; 589 589 590 590 StatType stats; … … 612 612 StatDataSet *brightStars = StatDataSetAlloc (1, Nmax); 613 613 614 Nfew = Nbad = Nmos = Ngr id = Nrel = Nsys = 0;614 Nfew = Nbad = Nmos = Ngrp = Ngrid = Nrel = Nsys = 0; 615 615 616 616 int Ncalibrated = 0; … … 631 631 632 632 // only freeze the gpc1 chips 633 if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue; 633 // XXX : when do we FREEZE_IMAGES in a mix of GPC1, GPC2, etc? 634 // if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue; 635 if (FREEZE_IMAGES) continue; 634 636 if (image[i].photcode == 0) continue; // skip the PHU images 635 637 … … 666 668 continue; 667 669 } 670 float Mgrp = getMgrp (m, c, catalog[c].measureT[m].airmass); 671 if (isnan(Mgrp)) { 672 Ngrp ++; 673 continue; 674 } 668 675 float Mgrid = getMgrid (m, c); 669 676 if (isnan(Mgrid)) { … … 706 713 707 714 skip: 708 psfStars->flxlist[Nref] = MsysPSF - MrelPSF - Mmos - Mgr id + Mflat;715 psfStars->flxlist[Nref] = MsysPSF - MrelPSF - Mmos - Mgrp - Mgrid + Mflat; 709 716 psfStars->errlist[Nref] = MAX (catalog[c].measureT[m].dM, MIN_ERROR); 710 717 psfStars->wgtlist[Nref] = 1; … … 718 725 719 726 if (isfinite(MrelKron) && isfinite(MsysKron)) { 720 kronStars->flxlist[Nkron] = MsysKron - MrelKron - Mmos - Mgr id + Mflat;727 kronStars->flxlist[Nkron] = MsysKron - MrelKron - Mmos - Mgrp - Mgrid + Mflat; 721 728 kronStars->errlist[Nkron] = MAX (catalog[c].measureT[m].dM, MIN_ERROR); 722 729 kronStars->wgtlist[Nkron] = 1; … … 1023 1030 off_t i, j, m, c, n, N; 1024 1031 double *list, *dlist; 1025 float Mcal, Mmos, Mgr id;1032 float Mcal, Mmos, Mgrp, Mgrid; 1026 1033 1027 1034 StatType stats; … … 1050 1057 Mmos = getMmos (m, c); 1051 1058 if (isnan(Mmos)) continue; 1059 Mgrp = getMgrp (m, c, catalog[c].measureT[m].airmass); 1060 if (isnan(Mgrp)) continue; 1052 1061 Mgrid = getMgrid (m, c); 1053 1062 if (isnan(Mgrid)) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
