Ignore:
Timestamp:
Jun 15, 2004, 6:54:12 PM (21 years ago)
Author:
cmv
Message:

nouvelle version de xephem/libastro (3.6) cmv 15/6/04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/libration.c

    r1719 r2551  
    3535#include <math.h>
    3636
    37 #include "P_.h"
    3837#include "astro.h"
    3938
     
    7170   answer in arc seconds.  */
    7271static double
    73 mods3600 (x)
    74      double x;
     72mods3600 (double x)
    7573{
    7674  double y;
     
    8583   n is the highest harmonic to compute.  */
    8684static int
    87 sscc (k, arg, n)
    88      int k;
    89      double arg;
    90      int n;
     85sscc (int k, double arg, int n)
    9186{
    9287  double cu, su, cv, sv, s;
     
    123118
    124119static int
    125 dargs (J, plan)
    126      double J;
    127      struct plantbl *plan;
     120dargs (double J, struct plantbl *plan)
    128121{
    129122  double T2, w;
     
    229222
    230223static double
    231 gplan (J, plan)
    232      double J;
    233      struct plantbl *plan;
     224gplan (double J, struct plantbl *plan)
    234225{
    235226  double su, cu, sv, cv;
     
    22132204 */
    22142205void
    2215 llibration (JD, llatp, llonp)
    2216 double JD;
    2217 double *llatp;
    2218 double *llonp;
     2206llibration (double JD, double *llatp, double *llonp)
    22192207{
    2220         double lon, lat;        /* arc seconds */
     2208        double lg, lt;  /* arc seconds */
    22212209       
    2222         lon = gplan (JD, &liblon);
    2223         lat = gplan (JD, &liblat);
    2224 
    2225         *llonp = degrad (lon/3600.0);
    2226         *llatp = degrad (lat/3600.0);
     2210        lg = gplan (JD, &liblon);
     2211        lt = gplan (JD, &liblat);
     2212
     2213        *llonp = degrad (lg/3600.0);
     2214        *llatp = degrad (lt/3600.0);
    22272215}
    22282216
    22292217/* For RCS Only -- Do Not Edit */
    2230 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: libration.c,v $ $Date: 2001-10-22 12:08:27 $ $Revision: 1.2 $ $Name: not supported by cvs2svn $"};
     2218static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: libration.c,v $ $Date: 2004-06-15 16:52:39 $ $Revision: 1.3 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.