IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8304


Ignore:
Timestamp:
Aug 11, 2006, 5:00:57 PM (20 years ago)
Author:
eugene
Message:

added checks on NaN

File:
1 edited

Legend:

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

    r8243 r8304  
    11# include "addstar.h"
     2# define DEBUG 1
    23
    34void find_matches_closest (SkyRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, Coords *mosaic, AddstarClientOptions options) {
     
    9596  /** find matched stars **/
    9697  for (i = j = 0; (i < Nstars) && (j < Nave); ) {
     98    if (!finite(X1[i]) || !finite(Y1[i])) {
     99      i++;
     100      continue;
     101    }
     102    if (!finite(X2[j]) || !finite(Y2[j])) {
     103      j++;
     104      continue;
     105    }
    97106   
    98107    /* negative dX: j is too large */
     
    140149    n = N2[Jmin];
    141150    N = N1[i];
     151
     152    if (DEBUG) fprintf (stderr, "matched %f,%f and %f,%f\n",
     153                        catalog[0].average[n].R, catalog[0].average[n].D,
     154                        stars[N].R, stars[N].D);
    142155
    143156    /* add to end of measurement list */
Note: See TracChangeset for help on using the changeset viewer.