Changeset 5287
- Timestamp:
- Oct 12, 2005, 8:16:45 AM (21 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 3 edited
-
find_matches.c (modified) (2 diffs)
-
find_matches_closest.c (modified) (2 diffs)
-
gstars.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/find_matches.c
r5239 r5287 132 132 133 133 /* calculate accurate per-star airmass */ 134 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, SiderealTime, Latitude);134 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, image[0].sidtime, image[0].latitude); 135 135 136 136 /** add measurements for this star **/ … … 241 241 if (!IN_CATALOG (stars[N].R, stars[N].D)) continue; 242 242 243 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, SiderealTime, Latitude);243 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, image[0].sidtime, image[0].latitude); 244 244 245 245 catalog[0].average[Nave].R_PS = stars[N].R; -
trunk/Ohana/src/addstar/src/find_matches_closest.c
r5239 r5287 148 148 149 149 /* calculate accurate per-star airmass, if required */ 150 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, SiderealTime, Latitude);150 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, image[0].sidtime, image[0].latitude); 151 151 152 152 /** add measurements for this star **/ … … 239 239 if (!IN_CATALOG (stars[N].R, stars[N].D)) continue; 240 240 241 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, SiderealTime, Latitude);241 secz = airmass (image[0].secz_PS, stars[N].R, stars[N].D, image[0].sidtime, image[0].latitude); 242 242 243 243 catalog[0].average[Nave].R_PS = stars[N].R; -
trunk/Ohana/src/addstar/src/gstars.c
r5266 r5287 6 6 int j, N, Nbytes, extend; 7 7 int itmp, hour, min; 8 char * c, photcode[64], line[80];8 char *name, *c, photcode[64], line[80]; 9 9 double tmp, sec, dMs; 10 10 Stars *stars, *rdstars; … … 17 17 18 18 /* find image rootname */ 19 c = strrchr (file, 0x2f); 20 if (c == (char *) NULL) { 21 strcpy (image[0].name, file); 22 } else { 23 strcpy (image[0].name, (c+1)); 24 } 19 name = filebasename (file); 20 strcpy (image[0].name, name); 21 free (name); 25 22 26 23 /* get astrometry information */ … … 52 49 for (c = strchr (line, ':'); c != (char *) NULL; c = strchr (line, ':')) { *c = ' '; } 53 50 sscanf (line, "%d %d %lf", &hour, &min, &sec); 54 SiderealTime = hour + min/60.0 + sec/3600.0; 51 image[0].sidtime = hour + min/60.0 + sec/3600.0; 52 image[0].latitude = Latitude; 55 53 56 54 /* CERROR in data file is in arcsec */
Note:
See TracChangeset
for help on using the changeset viewer.
