IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2015, 8:38:47 PM (11 years ago)
Author:
eugene
Message:

updates for Mflat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r39142 r39262  
    8585    N1[Nstars] = i;
    8686    Nstars ++;
    87     input[0].found_t[i] = -1;
     87    input[0].found_t[i] = FALSE;
    8888  }
    8989  if (Nstars < 1) {
     
    180180    off_t N = N1[i];
    181181
     182    input[0].found_t[N] = TRUE;
     183
    182184    /* make sure there is space for next Nmeasure entries */
    183185    if (Nmeas + input[0].average[N].Nmeasure >= NMEAS) {
     
    209211      Nreplace = replace_tycho (&output[0].average[n], output[0].measure, next_meas, &input[0].average[N], &input[0].measure[Minp]);
    210212      if (Nreplace == 6) {
    211         input[0].found_t[N] = Nmeas;
    212213        output[0].found_t[n] = Nmeas;
    213214        i++;
     
    224225        // XXX this does not support lensing, starpar, or galphot measurements
    225226        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; 
    227227          continue;
    228228        }
     
    274274        }
    275275      }
    276       input[0].found_t[N] = Nmeas;
    277276      output[0].average[n].Nmeasure ++;
    278277      Nmeas ++;
     
    394393    }
    395394
    396     if (input[0].found_t[N] >= 0) continue;
     395    if (input[0].found_t[N]) continue;
    397396
    398397    // if we are using MATCHED_TABLES, we are going to leave the edge cases in their
    399398    // source catalog, even if they have leaked beyond the edge
    400399    if (!MATCHED_TABLES && !IN_REGION (input[0].average[N].R, input[0].average[N].D)) continue;
     400
     401    input[0].found_t[N] = TRUE;
    401402
    402403    // XXX should we accept the input measurements for these fields?
     
    450451
    451452      /* we set next[Nmeas] to -1 here, and update correctly below */
    452       input[0].found_t[N] = Nmeas;
    453453      next_meas[Nmeas] = -1;
    454454      Nmeas ++;
     
    559559  }
    560560
    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 
    570561  /* check if the catalog has changed?  if no change, no need to write */
    571562  output[0].objID    = objID; // new max value, save on catalog close
Note: See TracChangeset for help on using the changeset viewer.