IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29759


Ignore:
Timestamp:
Nov 12, 2010, 2:08:26 PM (15 years ago)
Author:
eugene
Message:

fix avmatch bug (from nan values in sort)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/find_matches.c

    r29123 r29759  
    8080  /* build spatial index (RA sort) referencing input array sequence */
    8181  for (i = 0; i < Npoints; i++) {
    82     X1[i] = Y1[i] = NAN;
     82    // we need to have a finite number for the sort below; index == -1 entries are skipped
     83    // in the matching process
     84    X1[i] = Y1[i] = 0.0;
    8385    N1[i] = i;
    8486    if (index[i] == -1) continue;
Note: See TracChangeset for help on using the changeset viewer.