IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2005, 6:33:25 AM (21 years ago)
Author:
eugene
Message:

working on the update concept, added split table support

File:
1 edited

Legend:

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

    r5229 r5234  
    77
    88  /* should this be moved into save_catalog?? */
    9   fits_modify (&catalog[0].header, "ORDERED",  "%t", 1, catalog[0].ordered);
     9  fits_modify (&catalog[0].header, "SORTED",  "%t", 1, catalog[0].sorted);
    1010
    11   if (!save_catalog (catalog, VERBOSE)) {
    12     fprintf (stderr, "ERROR: failure saving catalog\n");
    13     exit (1);
     11  if (UPDATE) {
     12    if (!update_catalog (catalog, VERBOSE)) {
     13      fprintf (stderr, "ERROR: failure updating catalog\n");
     14      exit (1);
     15    }
     16  } else {
     17    if (!save_catalog (catalog, VERBOSE)) {
     18      fprintf (stderr, "ERROR: failure saving catalog\n");
     19      exit (1);
     20    }
    1421  }
    1522
Note: See TracChangeset for help on using the changeset viewer.