IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2006, 6:27:39 PM (20 years ago)
Author:
eugene
Message:

updates to the dvo image/catalog APIs

File:
1 edited

Legend:

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

    r8001 r8342  
    55  /* output CATMODE and CATFORMAT are set by mkcatalog
    66     or by mode and format of existing data */
    7 
    8   /* should this be moved into save_catalog?? */
    9   gfits_modify (&catalog[0].header, "SORTED",  "%t", 1, catalog[0].sorted);
    107
    118  /* if partial load, must use update */
     
    2320}
    2421
    25 void free_catalog (Catalog *catalog) {
    26 
    27   /* free, initialize data structures */
    28   if (catalog[0].average != NULL) {
    29     free (catalog[0].average);
    30     catalog[0].Naverage = 0;
    31   }
    32   if (catalog[0].measure != NULL) {
    33     free (catalog[0].measure);
    34     catalog[0].Nmeasure = 0;
    35   }
    36   if (catalog[0].missing != NULL) {
    37     free (catalog[0].missing);
    38     catalog[0].Nmissing = 0;
    39   }
    40   if (catalog[0].secfilt != NULL) {
    41     free (catalog[0].secfilt);
    42     catalog[0].Nsecfilt = 0;
    43   }
    44   gfits_free_header (&catalog[0].header);
    45 }
Note: See TracChangeset for help on using the changeset viewer.