IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2021, 11:45:18 AM (5 years ago)
Author:
eugene
Message:

major revision of the flagging and resets. cleanup of old cruft and deprecated flag values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/TGroupOps.c

    r41608 r41625  
    11721172  ALLOCATE (dlist, double, NtgroupTimes*Nphotcodes);
    11731173
    1174   int NIGHT_BAD = ID_IMAGE_NIGHT_POOR | ID_IMAGE_PHOTOM_FEW;
    1175 
    11761174  int n = 0;
    11771175  for (int i = 0; i < NtgroupTimes; i++) {
    11781176    TGroup *tgroup = tgroupTimes[i][0].byCode;
    11791177    for (int j = 0; j < tgroupTimes[i][0].nCode; j++) {
    1180       if (tgroup[j].flags & NIGHT_BAD) continue;
     1178      if (tgroup[j].flags & (ID_IMAGE_NIGHT_POOR | ID_IMAGE_PHOTOM_FEW)) continue;
    11811179      list[n] = tgroup[j].McalPSF;
    11821180      dlist[n] = 1;
     
    12091207    TGroup *tgroup = tgroupTimes[i][0].byCode;
    12101208    for (int j = 0; j < tgroupTimes[i][0].nCode; j++) {
    1211       if (tgroup[j].flags & IMAGE_BAD) continue;
     1209      if (tgroup[j].flags & (ID_IMAGE_NIGHT_POOR | ID_IMAGE_PHOTOM_FEW)) continue;
    12121210      list[n] = tgroup[j].dMcal;
    12131211      dlist[n] = 1;
     
    12401238    TGroup *tgroup = tgroupTimes[i][0].byCode;
    12411239    for (int j = 0; j < tgroupTimes[i][0].nCode; j++) {
    1242       if (tgroup[j].flags & IMAGE_BAD) continue;
     1240      if (tgroup[j].flags & (ID_IMAGE_NIGHT_POOR | ID_IMAGE_PHOTOM_FEW)) continue;
    12431241      list[n] = tgroup[j].McalChiSq;
    12441242      dlist[n] = 1;
     
    13961394        c = tgroup[i].catalog[j];
    13971395     
    1398         if (catalog[c].measureT[m].dbFlags & (ID_MEAS_AREA | ID_MEAS_NOCAL)) continue;
     1396        if (catalog[c].measureT[m].dbFlags & MEAS_BAD) continue;
    13991397
    14001398        // ave = catalog[c].measureT[m].averef;
Note: See TracChangeset for help on using the changeset viewer.