IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13825


Ignore:
Timestamp:
Jun 13, 2007, 5:33:42 PM (19 years ago)
Author:
eugene
Message:

fixed Nmatches for NULL result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/MatchImages.c

    r12774 r13825  
    1515  double xmin, xmax, ymin, ymax;
    1616
    17   if (!WITH_PHU && !strcmp (&image[0].coords.ctype[4], "-DIS")) return FALSE;
    18   if ( SOLO_PHU &&  strcmp (&image[0].coords.ctype[4], "-DIS")) return FALSE;
     17  *Nmatch = 0;
     18
     19  if (!WITH_PHU && !strcmp (&image[0].coords.ctype[4], "-DIS")) return NULL;
     20  if ( SOLO_PHU &&  strcmp (&image[0].coords.ctype[4], "-DIS")) return NULL;
    1921
    2022  /* project onto rectilinear grid with 1 arcsec pixels */
     
    2527    if (MOSAIC == NULL) {
    2628      fprintf (stderr, "no mosaic for WRP image (use -mosaic)\n");
    27       return (FALSE);
     29      return NULL;
    2830    }
    2931    RegisterMosaic (MOSAIC);
Note: See TracChangeset for help on using the changeset viewer.