Changeset 38986 for trunk/Ohana/src/addstar/src/greference.c
- Timestamp:
- Oct 27, 2015, 4:49:06 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/addstar/src/greference.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150625/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/addstar/src/greference.c
r38467 r38986 3 3 # define LOAD_DR2 1 4 4 5 Stars *greference (char *Refcat, SkyRegion *region, int photcode, unsigned int *nstars) {5 Catalog *greference (char *Refcat, SkyRegion *region, int photcode) { 6 6 7 unsigned int Nstars; 8 Stars *stars; 7 Catalog *catalog = NULL; 9 8 10 9 if (VERBOSE) fprintf (stderr, "loading reference catalog data from %s\n", Refcat); 11 10 if (VERBOSE) fprintf (stderr, "full region: %f - %f, %f - %f\n", region[0].Rmin, region[0].Rmax, region[0].Dmin, region[0].Dmax); 12 11 13 Nstars = 0; 14 stars = NULL; 15 12 /* get stars from HST GSC for the given region */ 13 if (!strcasecmp (Refcat, "GSC")) { 14 catalog = getgsc (region); 15 } 16 16 17 /* get stars from USNO for the given region */ 17 18 if (!strcasecmp (Refcat, "USNO")) { 18 stars = getusno (region, photcode, &Nstars);19 catalog = getusno (region); 19 20 } 20 21 21 22 /* get stars from the USNO B catalog for the given region */ 22 23 if (!strcasecmp (Refcat, "USNOB")) { 23 stars = getusnob (region, photcode, &Nstars);24 catalog = getusnob (region); 24 25 } 25 26 26 27 /* get stars from the Tycho catalog for the given region */ 27 28 if (!strcasecmp (Refcat, "TYCHO")) { 28 // stars = gettycho2 (region, photcode, &Nstars);29 29 fprintf (stderr, "Tycho load via addstar is deprecated: use loadtycho\n"); 30 30 exit (2); … … 33 33 /* get stars from the Tycho catalog for the given region (old ingest) */ 34 34 if (!strcasecmp (Refcat, "TYCHO_OLD")) { 35 // stars = gettycho (region, photcode, &Nstars);36 35 fprintf (stderr, "Tycho load via addstar is deprecated: use loadtycho\n"); 37 36 exit (2); 38 37 } 39 38 40 /* get stars from HST GSC for the given region */41 if (!strcasecmp (Refcat, "GSC")) {42 stars = getgsc (region, &Nstars);43 }44 45 39 /* get stars from 2MASS for the given region */ 46 40 if (!strcasecmp (Refcat, "2MASS")) { 47 // stars = get2mass (region, photcode, LOAD_ALLSKY, &Nstars);48 41 fprintf (stderr, "2MASS load via addstar is deprecated: use load2mass\n"); 49 42 exit (2); … … 52 45 /* get stars from 2MASS for the given region */ 53 46 if (!strcasecmp (Refcat, "2MASS-ALLSKY")) { 54 // stars = get2mass (region, photcode, LOAD_ALLSKY, &Nstars);55 47 fprintf (stderr, "2MASS load via addstar is deprecated: use load2mass\n"); 56 48 exit (2); … … 59 51 /* get stars from 2MASS for the given region */ 60 52 if (!strcasecmp (Refcat, "2MASS-DR2")) { 61 // stars = get2mass (region, photcode, LOAD_DR2, &Nstars);62 53 fprintf (stderr, "2MASS load via addstar is deprecated: use load2mass\n"); 63 54 exit (2); 64 55 } 65 56 66 if (VERBOSE && ( Nstars== 0)) fprintf (stderr, "no ref objects in region %s\n", region[0].name);57 if (VERBOSE && (catalog->Naverage == 0)) fprintf (stderr, "no ref objects in region %s\n", region[0].name); 67 58 68 *nstars = Nstars; 69 return (stars); 70 59 return (catalog); 71 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
