- Timestamp:
- Jan 10, 2016, 6:59:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/find_matches_refstars.c
r38986 r39306 22 22 ALLOCATE (N1, off_t, srccat->Naverage); 23 23 24 myAbort ("figure out if found_t needs to be tracking Naverage or Nmeasure"); 24 // found_t[] has the following values: 25 // -1: not found 26 // -2: found on another catalog 27 // 1: found (we used to use Nmeas, but we are now matching by star not measure 28 25 29 if (!srccat->found_t) { 26 30 ALLOCATE (srccat->found_t, off_t, srccat->Naverage); … … 218 222 /** don't update average / secfilt values for REF photcodes **/ 219 223 220 myAbort ("fix logic on multiple detections");221 222 224 /*** flag multiple stars */ 225 /* this code is a bit too crude */ 223 226 /* this image star matches more than one tgtcat star */ 227 /* here found_t[N] = tgtcat.measure[N] */ 224 228 if (srccat->found_t[N] > -1) { 225 tgtcat[0].measure[srccat->found_t[N]].dbFlags |= ID_MEAS_BLEND_MEAS;229 // tgtcat[0].measure[srccat->found_t[N]].dbFlags |= ID_MEAS_BLEND_MEAS; 226 230 tgtcat[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_MEAS; 227 231 } … … 230 234 } 231 235 if (srccat->found_t[N] == -1) { /* this image star matches only this tgtcat star */ 232 srccat->found_t[N] = Nmeas; /* save first match, in case coincidences are found */236 srccat->found_t[N] = 1; /* save first match, in case coincidences are found */ 233 237 } 234 238 /* this tgtcat star matches more than one image star */ 235 239 if (tgtcat[0].found_t[n] > -1) { 236 tgtcat[0].measure[tgtcat[0].found_t[n]].dbFlags |= ID_MEAS_BLEND_OBJ;240 // tgtcat[0].measure[tgtcat[0].found_t[n]].dbFlags |= ID_MEAS_BLEND_OBJ; 237 241 tgtcat[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_OBJ; 238 242 } else { 239 tgtcat[0].found_t[n] = Nmeas;243 tgtcat[0].found_t[n] = 1; 240 244 } 241 245 tgtcat[0].average[n].Nmeasure ++; … … 321 325 /* next[Nmeas] should always be -1 in this context (it is always the only 322 326 measurement for the star) */ 323 srccat->found_t[i] = Nmeas;327 srccat->found_t[i] = 1; 324 328 Nmeas ++; 325 329
Note:
See TracChangeset
for help on using the changeset viewer.
