Changeset 3400 for trunk/Ohana/src/addstar
- Timestamp:
- Mar 9, 2005, 9:20:18 PM (22 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 5 edited
-
include/addstar.h (modified) (1 diff)
-
src/RegionOps.c (modified) (1 diff)
-
src/get2mass.c (modified) (3 diffs)
-
src/getgsc.c (modified) (1 diff)
-
src/greference.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r3389 r3400 161 161 int FindRegionDecBandStart (GSCRegion *region, int Nregion, double dec); 162 162 int FindRegionDecBandStop (GSCRegion *region, int Nregion, double dec); 163 int FindDecBand (double dec, double *DEC0, double *DEC1); 164 163 165 int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string); 164 166 void find_matches_refstars (GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog); -
trunk/Ohana/src/addstar/src/RegionOps.c
r3376 r3400 21 21 GSCRegion *LoadRegions (int *nregions) { 22 22 23 int Nregions, i, N , NDec, Nx, Ny;24 char buffer[28800],temp[50], file[256];23 int Nregions, i, NDec, Nx, Ny; 24 char temp[50], file[256]; 25 25 double RA0, RA1, DEC0, DEC1, D0, D1; 26 26 FILE *f; -
trunk/Ohana/src/addstar/src/get2mass.c
r3376 r3400 5 5 Stars *get2mass (GSCRegion *patch, int *NSTARS) { 6 6 7 int i, j, k, Ns,Nstars, Nrefcat, Nregions;7 int i, Nstars, Nrefcat, Nregions; 8 8 Stars *stars; 9 9 Stars *refcat; … … 84 84 Stars *get2mass_data (TM_Region *region, GSCRegion *patch, int *nstars) { 85 85 86 int i, Nstars, NSTARS, Nbyte, Nline , Nval;86 int i, Nstars, NSTARS, Nbyte, Nline; 87 87 Stars *stars; 88 88 gzFile gf; 89 char *filename, buffer[NLINE*NBYTE] , datestr[64];89 char *filename, buffer[NLINE*NBYTE]; 90 90 double RA, DEC, J, H, K, dJ, dH, dK; 91 e_time time;92 91 double RA0, RA1, DEC0, DEC1; 93 92 … … 170 169 } 171 170 172 /*173 Nval = sscanf (&buffer[NBYTE*i + 0], "%lf %lf", &RA, &DEC);174 Nval += sscanf (&buffer[NBYTE*i + 53], "%lf %lf", &J, &dJ);175 Nval += sscanf (&buffer[NBYTE*i + 72], "%lf %lf", &H, &dH);176 Nval += sscanf (&buffer[NBYTE*i + 91], "%lf %lf", &K, &dK);177 Nval += sscanf (&buffer[NBYTE*i + 164], "%s", datestr);178 */179 180 171 /* this just scans along in the file. file is sorted by dec, so we 181 172 should be skipping large chunks - but we would need to have -
trunk/Ohana/src/addstar/src/getgsc.c
r3376 r3400 8 8 Stars *getgsc (GSCRegion *patch, int *NSTARS) { 9 9 10 int i, j, k, Ns,Ngsc, Nregions, Nstars;10 int i, Ngsc, Nregions, Nstars; 11 11 Stars *gsc; 12 12 Stars *stars; -
trunk/Ohana/src/addstar/src/greference.c
r3376 r3400 10 10 11 11 Nstars = 0; 12 stars = NULL; 12 13 13 14 /* get stars from USNO for the given region */
Note:
See TracChangeset
for help on using the changeset viewer.
