- Timestamp:
- Jun 24, 2015, 6:38:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616/Ohana/src/addstar/src/LoadStars.c
r38523 r38525 1 1 # include "addstar.h" 2 2 3 Catalog *LoadStars (char *filename, unsigned int *Ncatalog,Image **images, off_t *Nimages, AddstarClientOptions *options) {3 Catalog *LoadStars (char *filename, Image **images, off_t *Nimages, AddstarClientOptions *options) { 4 4 5 5 off_t *extsize; … … 9 9 10 10 *Nimages = 0; 11 *Ncatalog = 0;12 11 *images = NULL; 12 13 13 Catalog *catalog = NULL; 14 // ALLOCATE (catalog, Catalog, 1); 15 // dvo_catalog_init (catalog, TRUE); 14 16 15 17 for (i = 0; i < Nfile; i++) { … … 22 24 // load PMM data if specified (these are not stored as FITS-tables) 23 25 if (PMM_CCD_TABLE != NULL) { 24 *Ncatalog = 1;25 26 // XXX catalog = LoadDataPMM (f, file[i].imagename, images, Nimages); 26 27 continue; … … 58 59 // if these are SDSS data, load with SDSS-specific wrapper 59 60 if (headerSets[0].exttype && !strcmp (headerSets[0].exttype, "SDSS_OBJ")) { 60 *Ncatalog = 1;61 61 // XXX catalog = LoadDataSDSS (f, file[i].imagename, images, Nimages, headers, extsize, headerSets, NheaderSets); 62 62 goto next_file; … … 65 65 // if these are SDSS data, load with SDSS-specific wrapper 66 66 if (headerSets[0].exttype && !strcmp (headerSets[0].exttype, "UKIRT_OBJ")) { 67 *Ncatalog = 1;68 67 // XXX catalog = LoadDataUKIRT (f, file[i].imagename, images, Nimages, headers, extsize, headerSets, NheaderSets); 69 68 goto next_file; 70 69 } 71 70 72 catalog = LoadData (f, &file[i], images, Nimages, Ncatalog, headers, extsize, headerSets, NheaderSets, options); 71 Catalog *newcat = LoadData (f, &file[i], images, Nimages, headers, extsize, headerSets, NheaderSets, options); 72 catalog = newcat; 73 74 // XXX I need to use find_matches_closest here, but for testing: 75 // find_matches_closest (region, catalog, newcat, options); 76 // dvo_catalog_free (newcat); 77 // free (newcat); 73 78 74 79 next_file:
Note:
See TracChangeset
for help on using the changeset viewer.
