IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2015, 6:38:37 AM (11 years ago)
Author:
eugene
Message:

converting from Stars to Catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616/Ohana/src/addstar/src/LoadStars.c

    r38523 r38525  
    11# include "addstar.h"
    22
    3 Catalog *LoadStars (char *filename, unsigned int *Ncatalog, Image **images, off_t *Nimages, AddstarClientOptions *options) {
     3Catalog *LoadStars (char *filename, Image **images, off_t *Nimages, AddstarClientOptions *options) {
    44
    55  off_t *extsize;
     
    99
    1010  *Nimages = 0;
    11   *Ncatalog = 0;
    1211  *images = NULL;
     12
    1313  Catalog *catalog = NULL;
     14  // ALLOCATE (catalog, Catalog, 1);
     15  // dvo_catalog_init (catalog, TRUE);
    1416
    1517  for (i = 0; i < Nfile; i++) {
     
    2224    // load PMM data if specified (these are not stored as FITS-tables)
    2325    if (PMM_CCD_TABLE != NULL) {
    24       *Ncatalog = 1;
    2526      // XXX catalog = LoadDataPMM (f, file[i].imagename, images, Nimages);
    2627      continue;
     
    5859    // if these are SDSS data, load with SDSS-specific wrapper
    5960    if (headerSets[0].exttype && !strcmp (headerSets[0].exttype, "SDSS_OBJ")) {
    60       *Ncatalog = 1;
    6161      // XXX catalog = LoadDataSDSS (f, file[i].imagename, images, Nimages, headers, extsize, headerSets, NheaderSets);
    6262      goto next_file;
     
    6565    // if these are SDSS data, load with SDSS-specific wrapper
    6666    if (headerSets[0].exttype && !strcmp (headerSets[0].exttype, "UKIRT_OBJ")) {
    67       *Ncatalog = 1;
    6867      // XXX catalog = LoadDataUKIRT (f, file[i].imagename, images, Nimages, headers, extsize, headerSets, NheaderSets);
    6968      goto next_file;
    7069    }
    7170
    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);
    7378
    7479  next_file:
Note: See TracChangeset for help on using the changeset viewer.