IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17195


Ignore:
Timestamp:
Mar 28, 2008, 3:27:52 PM (18 years ago)
Author:
eugene
Message:

clarify measure flag names

Location:
trunk/Ohana/src/addstar/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/find_matches.c

    r16810 r17195  
    9292
    9393  /* set up pointers for linked list of measure */
    94   if (catalog[0].sorted) {
     94  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
    9595    next_meas = init_measure_links (catalog[0].average, Nave, catalog[0].measure, Nmeas);
    9696  } else {
     
    220220      /* this image star matches more than one catalog star */
    221221      if (stars[N].found > -1) {
    222         catalog[0].measure[stars[N].found].dbFlags |= BLEND_IMAGE;
    223         catalog[0].measure[Nmeas].dbFlags |= BLEND_IMAGE;
     222        catalog[0].measure[stars[N].found].dbFlags |= ID_MEAS_BLEND_MEAS;
     223        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_MEAS;
    224224      }
    225225      if (stars[N].found == -2) { /* this image star matches a catalog star on a neighboring catalog */
    226         catalog[0].measure[Nmeas].dbFlags |= BLEND_IMAGE_NEIGHBOR;
     226        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_MEAS_X;
    227227      }
    228228      if (stars[N].found == -1) { /* this image star matches only this catalog star */
     
    231231      /* this catalog star matches more than one image star */
    232232      if (catalog[0].found[n] > -1) {
    233         catalog[0].measure[catalog[0].found[n]].dbFlags |= BLEND_CATALOG;
    234         catalog[0].measure[Nmeas].dbFlags |= BLEND_CATALOG;
     233        catalog[0].measure[catalog[0].found[n]].dbFlags |= ID_MEAS_BLEND_OBJ;
     234        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_OBJ;
    235235      } else {
    236236        catalog[0].found[n] = Nmeas;
  • trunk/Ohana/src/addstar/src/find_matches_refstars.c

    r16810 r17195  
    187187      /* this image star matches more than one catalog star */
    188188      if (stars[N][0].found > -1) {
    189         catalog[0].measure[stars[N][0].found].dbFlags |= BLEND_IMAGE;
    190         catalog[0].measure[Nmeas].dbFlags |= BLEND_IMAGE;
     189        catalog[0].measure[stars[N][0].found].dbFlags |= ID_MEAS_BLEND_MEAS;
     190        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_MEAS;
    191191      }
    192192      if (stars[N][0].found == -2) { /* this image star matches a catalog star on a neighboring catalog */
    193         catalog[0].measure[Nmeas].dbFlags |= BLEND_IMAGE_NEIGHBOR;
     193        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_MEAS_X;
    194194      }
    195195      if (stars[N][0].found == -1) { /* this image star matches only this catalog star */
     
    198198      /* this catalog star matches more than one image star */
    199199      if (catalog[0].found[n] > -1) {
    200         catalog[0].measure[catalog[0].found[n]].dbFlags |= BLEND_CATALOG;
    201         catalog[0].measure[Nmeas].dbFlags |= BLEND_CATALOG;
     200        catalog[0].measure[catalog[0].found[n]].dbFlags |= ID_MEAS_BLEND_OBJ;
     201        catalog[0].measure[Nmeas].dbFlags |= ID_MEAS_BLEND_OBJ;
    202202      } else {
    203203        catalog[0].found[n] = Nmeas;
Note: See TracChangeset for help on using the changeset viewer.