IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2020, 9:30:05 AM (6 years ago)
Author:
eugene
Message:

updates to get tgroups working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20200519/src/ImageOps.c

    r40291 r41387  
    586586
    587587  off_t i, j, m, c, n;
    588   int mark, bad, Nfew, Nbad, Nmos, Nrel, Ngrid, Nsys;
     588  int mark, bad, Nfew, Nbad, Nmos, Ngrp, Nrel, Ngrid, Nsys;
    589589
    590590  StatType stats;
     
    612612  StatDataSet *brightStars = StatDataSetAlloc (1, Nmax);
    613613
    614   Nfew = Nbad = Nmos = Ngrid = Nrel = Nsys = 0;
     614  Nfew = Nbad = Nmos = Ngrp = Ngrid = Nrel = Nsys = 0;
    615615
    616616  int Ncalibrated = 0;
     
    631631
    632632    // 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;
    634636    if (image[i].photcode == 0) continue; // skip the PHU images
    635637
     
    666668          continue;
    667669      }
     670      float Mgrp  = getMgrp  (m, c, catalog[c].measureT[m].airmass);
     671      if (isnan(Mgrp)) {
     672          Ngrp ++;
     673          continue;
     674      }
    668675      float Mgrid = getMgrid (m, c);
    669676      if (isnan(Mgrid)) {
     
    706713
    707714    skip:
    708       psfStars->flxlist[Nref] = MsysPSF - MrelPSF - Mmos - Mgrid + Mflat;
     715      psfStars->flxlist[Nref] = MsysPSF - MrelPSF - Mmos - Mgrp - Mgrid + Mflat;
    709716      psfStars->errlist[Nref] = MAX (catalog[c].measureT[m].dM, MIN_ERROR);
    710717      psfStars->wgtlist[Nref] = 1;
     
    718725
    719726      if (isfinite(MrelKron) && isfinite(MsysKron)) {
    720         kronStars->flxlist[Nkron] = MsysKron - MrelKron - Mmos - Mgrid + Mflat;
     727        kronStars->flxlist[Nkron] = MsysKron - MrelKron - Mmos - Mgrp - Mgrid + Mflat;
    721728        kronStars->errlist[Nkron] = MAX (catalog[c].measureT[m].dM, MIN_ERROR);
    722729        kronStars->wgtlist[Nkron] = 1;
     
    10231030  off_t i, j, m, c, n, N;
    10241031  double *list, *dlist;
    1025   float Mcal, Mmos, Mgrid;
     1032  float Mcal, Mmos, Mgrp, Mgrid;
    10261033
    10271034  StatType stats;
     
    10501057      Mmos  = getMmos  (m, c);
    10511058      if (isnan(Mmos)) continue;
     1059      Mgrp  = getMgrp  (m, c, catalog[c].measureT[m].airmass);
     1060      if (isnan(Mgrp)) continue;
    10521061      Mgrid = getMgrid (m, c);
    10531062      if (isnan(Mgrid)) continue;
Note: See TracChangeset for help on using the changeset viewer.