IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2005, 10:36:17 AM (21 years ago)
Author:
eugene
Message:

adding SkyRegion support to addstar (removing GSCRegion)

File:
1 edited

Legend:

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

    r5328 r5443  
    33# define LOAD_DR2    1
    44
    5 Stars *grefcat (char *Refcat, GSCRegion *catstats, int photcode, int *nstars) {
     5Stars *grefcat (char *Refcat, SkyRegion *region, int photcode, int *nstars) {
    66
    77  int Nstars;
     
    99
    1010  if (VERBOSE) fprintf (stderr, "loading reference catalog data from %s\n", Refcat);
    11   if (VERBOSE) fprintf (stderr, "full region: %f - %f, %f - %f\n", catstats[0].RA[0], catstats[0].RA[1], catstats[0].DEC[0], catstats[0].DEC[1]);
     11  if (VERBOSE) fprintf (stderr, "full region: %f - %f, %f - %f\n", region[0].Rmin, region[0].Rmax, region[0].Dmin, region[0].Dmax);
    1212
    1313  Nstars = 0;
     
    1616  /* get stars from USNO for the given region */
    1717  if (!strcasecmp (Refcat, "USNO")) {
    18     stars = getusno (catstats, photcode, &Nstars);
     18    stars = getusno (region, photcode, &Nstars);
    1919  }
    2020
    2121  /* get stars from HST GSC for the given region */
    2222  if (!strcasecmp (Refcat, "GSC")) {
    23     stars = getgsc (catstats, &Nstars);
     23    stars = getgsc (region, &Nstars);
    2424  }
    2525 
    2626  /* get stars from 2MASS for the given region */
    2727  if (!strcasecmp (Refcat, "2MASS")) {
    28     stars = get2mass (catstats, photcode, LOAD_ALLSKY, &Nstars);
     28    stars = get2mass (region, photcode, LOAD_ALLSKY, &Nstars);
    2929  }
    3030 
    3131  /* get stars from 2MASS for the given region */
    3232  if (!strcasecmp (Refcat, "2MASS-ALLSKY")) {
    33     stars = get2mass (catstats, photcode, LOAD_ALLSKY, &Nstars);
     33    stars = get2mass (region, photcode, LOAD_ALLSKY, &Nstars);
    3434  }
    3535 
    3636  /* get stars from 2MASS for the given region */
    3737  if (!strcasecmp (Refcat, "2MASS-DR2")) {
    38     stars = get2mass (catstats, photcode, LOAD_DR2, &Nstars);
     38    stars = get2mass (region, photcode, LOAD_DR2, &Nstars);
    3939  }
    4040 
    41   if (VERBOSE && (Nstars == 0)) fprintf (stderr, "no ref objects in region %s\n", catstats[0].filename);
     41  if (VERBOSE && (Nstars == 0)) fprintf (stderr, "no ref objects in region %s\n", region[0].name);
    4242
    4343  *nstars = Nstars;
Note: See TracChangeset for help on using the changeset viewer.