IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2016, 10:23:42 PM (10 years ago)
Author:
eugene
Message:

modify to pass with extremely pedantic build; force consistency for signed vs unsigned and int sizes; various relastro updates

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/skycalc/src/astro.c

    r27491 r39457  
    11# include <skycalc_internal.h>
     2# define UNUSED_PARAM(x)(void)(x)
    23
    34/* Takes a coordinate pair and precesses it using matrix procedures
     
    104105   equatorial (all assumed of date.) */
    105106void SC_eclrot(double jd, double *x, double *y, double *z) {
     107  UNUSED_PARAM(x);
    106108
    107109  double incl;
     
    112114
    113115  incl = (23.439291 + T * (-0.0130042 - 0.00000016 * T))/DEG_IN_RADIAN;
    114   /* 1992 Astron Almanac, p. B18, dropping the
    115      cubic term, which is 2 milli-arcsec! */
     116/* 1992 Astron Almanac, p. B18, dropping the
     117   cubic term, which is 2 milli-arcsec! */
    116118  ypr = cos(incl) * *y - sin(incl) * *z;
    117119  zpr = sin(incl) * *y + cos(incl) * *z;
    118120  *y = ypr;
    119121  *z = zpr;
    120   /* x remains the same. */
     122/* x remains the same. */
    121123}
    122124
    123125/* Given a julian date in 1900-2100, returns the correction
    124      delta t which is:
    125      TDT - UT (after 1983 and before 1993)
    126      ET - UT (before 1983)
    127      an extrapolated guess  (after 1993).
     126   delta t which is:
     127   TDT - UT (after 1983 and before 1993)
     128   ET - UT (before 1983)
     129   an extrapolated guess  (after 1993).
    128130
    129      For dates in the past (<= 1993) the value is linearly
    130      interpolated on 5-year intervals; for dates after the present,
    131      an extrapolation is used, because the true value of delta t
    132      cannot be predicted precisely.  Note that TDT is essentially the
    133      modern version of ephemeris time with a slightly cleaner
    134      definition.
     131   For dates in the past (<= 1993) the value is linearly
     132   interpolated on 5-year intervals; for dates after the present,
     133   an extrapolation is used, because the true value of delta t
     134   cannot be predicted precisely.  Note that TDT is essentially the
     135   modern version of ephemeris time with a slightly cleaner
     136   definition.
    135137
    136      Where the algorithm shifts there is an approximately 0.1 second
    137      discontinuity.  Also, the 5-year linear interpolation scheme can
    138      lead to errors as large as 0.5 seconds in some cases, though
    139      usually rather smaller. */
     138   Where the algorithm shifts there is an approximately 0.1 second
     139   discontinuity.  Also, the 5-year linear interpolation scheme can
     140   lead to errors as large as 0.5 seconds in some cases, though
     141   usually rather smaller. */
    140142
    141143double SC_etcorr (double jd) {
Note: See TracChangeset for help on using the changeset viewer.