IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33551


Ignore:
Timestamp:
Mar 16, 2012, 10:13:03 AM (14 years ago)
Author:
eugene
Message:

reset the measure flags when updating zero points with a reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_catalog_setphot.c

    r33549 r33551  
    44
    55  off_t i, j, found;
     6
     7  // if we are resetting, reset all flags
     8  DVOMeasureFlags photomFlags = ID_MEAS_POOR_PHOTOM | ID_MEAS_SKIP_PHOTOM | ID_MEAS_PHOTOM_UBERCAL;
    69
    710  found = 0;   
     
    2831      myAssert(isfinite(catalog[0].measure[m].Mcal), "oops: ubercal made a nan");
    2932
     33      if (RESET) {
     34        catalog[0].measure[m].dbFlags &= ~photomFlags;
     35      }
     36
    3037      // if we are setting the zero points from an UBERCAL database, and this detection is from one of those images,
    3138      // then tag the measurement as well
Note: See TracChangeset for help on using the changeset viewer.