IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2013, 1:57:22 PM (13 years ago)
Author:
eugene
Message:

repair cases where objID and averef are inconsistent (but put that code in an ifdef-ed out block)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/addstar/src/resort_catalog.c

    r34088 r35719  
    9191    if (catalog[0].catformat >= DVO_FORMAT_PS1_V1) {
    9292      // earlier formats did not carry the objID or catID, so they are not available (we could assign on load, but we don't)
     93      myAssert(average[averageSeq[i]].catID == measure[measureSeq[i]].catID, "object / detection mismatch");
     94# if (1)
    9395      myAssert(average[averageSeq[i]].objID == measure[measureSeq[i]].objID, "object / detection mismatch");
    94       myAssert(average[averageSeq[i]].catID == measure[measureSeq[i]].catID, "object / detection mismatch");
     96# else
     97      // for reasons I do not understand, the mini dvodbs generated on stsci1X had a handful of detections with an inconsistency between averef and objID. 
     98      // this happened for 28 detections in the dbs on /data/stsci1?.0/eugene/dvo3pi.20130616, but not at all (as far as I know) in the rest of LAP DVO
     99      if (average[averageSeq[i]].objID != measure[measureSeq[i]].objID) {
     100        fprintf (stderr, "R");
     101        measure[measureSeq[i]].objID = average[averageSeq[i]].objID; // XXX I don't really like this...
     102      }
    95103    }
     104# endif
    96105  }
    97106 
Note: See TracChangeset for help on using the changeset viewer.