Changeset 8429
- Timestamp:
- Aug 20, 2006, 5:37:51 PM (20 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 3 edited
-
include/dvo.h (modified) (1 diff)
-
src/dvo_catalog.c (modified) (2 diffs)
-
src/dvo_catalog_create.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvo.h
r8386 r8429 269 269 /** dvo_catalog APIs */ 270 270 void dvo_catalog_init (Catalog *catalog, int complete); 271 void dvo_catalog_create (SkyRegion *region, Catalog *catalog , int Nsecfilt);271 void dvo_catalog_create (SkyRegion *region, Catalog *catalog); 272 272 void dvo_catalog_free (Catalog *catalog); 273 273 int dvo_catalog_check (Catalog *catalog, int Nsecfilt, int extend); -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r8394 r8429 162 162 // returns TRUE if the catalog was empty 163 163 // XXX allow stdout as destination (don't lock) 164 enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE );164 enum {DVO_OPEN_NONE, DVO_OPEN_READ, DVO_OPEN_WRITE, DVO_OPEN_UPDATE}; 165 165 int dvo_catalog_open (Catalog *catalog, SkyRegion *region, int VERBOSE, char *iomode) { 166 166 … … 359 359 free (catalog[0].average); 360 360 catalog[0].Naverage = 0; 361 catalog[0].average = NULL; 361 362 } 362 363 if (catalog[0].measure != NULL) { 363 364 free (catalog[0].measure); 364 365 catalog[0].Nmeasure = 0; 366 catalog[0].measure = NULL; 365 367 } 366 368 if (catalog[0].missing != NULL) { 367 369 free (catalog[0].missing); 368 370 catalog[0].Nmissing = 0; 371 catalog[0].missing = NULL; 369 372 } 370 373 if (catalog[0].secfilt != NULL) { 371 374 free (catalog[0].secfilt); 372 375 catalog[0].Nsecfilt = 0; 376 catalog[0].secfilt = NULL; 373 377 } 374 378 gfits_free_header (&catalog[0].header); -
trunk/Ohana/src/libdvo/src/dvo_catalog_create.c
r8394 r8429 136 136 gfits_modify (&catalog[0].header, "RA1", "%lf", 1, Rmax); 137 137 gfits_modify (&catalog[0].header, "DEC1", "%lf", 1, Dmax); 138 138 return (TRUE); 139 139 }
Note:
See TracChangeset
for help on using the changeset viewer.
