IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2006, 8:13:36 AM (20 years ago)
Author:
eugene
Message:

fixes for tycho / ptolemy related searches

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

Legend:

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

    r7691 r7973  
    4141  Nmiss = catalog[0].Nmissing;
    4242  NMISS = Nmiss + 1000;
     43  if ((NMISS < 1) || (NMISS > 1e10)) {
     44      fprintf (stderr, "weird value for NMISS: %d\n", NMISS);
     45  }
    4346  ALLOCATE (next_miss, int, NMISS);
    4447  REALLOCATE (catalog[0].missing, Missing, NMISS);
  • trunk/Ohana/src/addstar/src/gettycho.c

    r7966 r7973  
    6363      nitems = fread (buffer, NBYTE, NITEM, f);
    6464      if (nitems == 0) break;
    65       if (nitems != NITEM) {
    66         fprintf (stderr, "ERROR: failure reading data from file %s\n", filename);
    67         exit (1);
    68       }
    6965
    70       for (j = 0; j < NITEM; j++) {
     66      for (j = 0; j < nitems; j++) {
    7167        line = &buffer[j*NBYTE];
    7268        stars[Ntycho].R = atof (&line[15]);
     
    115111        CHECK_REALLOCATE (stars, Stars, NTYCHO, Ntycho, 5000);
    116112      }
     113
     114      if (nitems != NITEM) break;
    117115    }
    118116  next_section:
Note: See TracChangeset for help on using the changeset viewer.