IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5287


Ignore:
Timestamp:
Oct 12, 2005, 8:16:45 AM (21 years ago)
Author:
eugene
Message:

moving sidtime and latitude to image struct

Location:
trunk/Ohana/src/addstar/src
Files:
3 edited

Legend:

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

    r5239 r5287  
    132132
    133133      /* 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);
    135135     
    136136      /** add measurements for this star **/
     
    241241    if (!IN_CATALOG (stars[N].R, stars[N].D)) continue;
    242242
    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);
    244244
    245245    catalog[0].average[Nave].R_PS      = stars[N].R;
  • trunk/Ohana/src/addstar/src/find_matches_closest.c

    r5239 r5287  
    148148       
    149149    /* 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);
    151151     
    152152    /** add measurements for this star **/
     
    239239    if (!IN_CATALOG (stars[N].R, stars[N].D)) continue;
    240240
    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);
    242242
    243243    catalog[0].average[Nave].R_PS      = stars[N].R;
  • trunk/Ohana/src/addstar/src/gstars.c

    r5266 r5287  
    66  int j, N, Nbytes, extend;
    77  int itmp, hour, min;
    8   char *c, photcode[64], line[80];
     8  char *name, *c, photcode[64], line[80];
    99  double tmp, sec, dMs;
    1010  Stars *stars, *rdstars;
     
    1717
    1818  /* 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);
    2522
    2623  /* get astrometry information */
     
    5249  for (c = strchr (line, ':'); c != (char *) NULL; c = strchr (line, ':')) { *c = ' '; }
    5350  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;
    5553
    5654  /* CERROR in data file is in arcsec */
Note: See TracChangeset for help on using the changeset viewer.