Changeset 39262 for trunk/Ohana/src/dvomerge
- Timestamp:
- Dec 12, 2015, 8:38:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
r39142 r39262 85 85 N1[Nstars] = i; 86 86 Nstars ++; 87 input[0].found_t[i] = -1;87 input[0].found_t[i] = FALSE; 88 88 } 89 89 if (Nstars < 1) { … … 180 180 off_t N = N1[i]; 181 181 182 input[0].found_t[N] = TRUE; 183 182 184 /* make sure there is space for next Nmeasure entries */ 183 185 if (Nmeas + input[0].average[N].Nmeasure >= NMEAS) { … … 209 211 Nreplace = replace_tycho (&output[0].average[n], output[0].measure, next_meas, &input[0].average[N], &input[0].measure[Minp]); 210 212 if (Nreplace == 6) { 211 input[0].found_t[N] = Nmeas;212 213 output[0].found_t[n] = Nmeas; 213 214 i++; … … 224 225 // XXX this does not support lensing, starpar, or galphot measurements 225 226 if (replace_match (&output[0].average[n], output[0].measure, next_meas, &input[0].average[N], &input[0].measure[offset])) { 226 input[0].found_t[N] = output[0].average[n].measureOffset;227 227 continue; 228 228 } … … 274 274 } 275 275 } 276 input[0].found_t[N] = Nmeas;277 276 output[0].average[n].Nmeasure ++; 278 277 Nmeas ++; … … 394 393 } 395 394 396 if (input[0].found_t[N] >= 0) continue;395 if (input[0].found_t[N]) continue; 397 396 398 397 // if we are using MATCHED_TABLES, we are going to leave the edge cases in their 399 398 // source catalog, even if they have leaked beyond the edge 400 399 if (!MATCHED_TABLES && !IN_REGION (input[0].average[N].R, input[0].average[N].D)) continue; 400 401 input[0].found_t[N] = TRUE; 401 402 402 403 // XXX should we accept the input measurements for these fields? … … 450 451 451 452 /* we set next[Nmeas] to -1 here, and update correctly below */ 452 input[0].found_t[N] = Nmeas;453 453 next_meas[Nmeas] = -1; 454 454 Nmeas ++; … … 559 559 } 560 560 561 /* note stars which have been found in this catalog */562 for (i = 0; i < input[0].Naverage; i++) {563 if (input[0].found_t[i] > -1) {564 input[0].found_t[i] = -2;565 } else {566 input[0].found_t[i] = -3;567 }568 }569 570 561 /* check if the catalog has changed? if no change, no need to write */ 571 562 output[0].objID = objID; // new max value, save on catalog close
Note:
See TracChangeset
for help on using the changeset viewer.
