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/comet.c

    r1719 r2551  
    11#include <math.h>
    22
    3 #include "P_.h"
    43#include "astro.h"
    54
    6 /* given a modified Julian date, mjd, and a set of heliocentric parabolic
    7  * orbital elements referred to the epoch of date (mjd):
     5/* given a modified Julian date, mj, and a set of heliocentric parabolic
     6 * orbital elements referred to the epoch of date (mj):
    87 *   ep:   epoch of perihelion,
    98 *   inc:  inclination,
     
    3029 */
    3130void
    32 comet (mjd, ep, inc, ap, qp, om, lpd, psi, rp, rho, lam, bet)
    33 double mjd;
    34 double ep, inc, ap, qp, om;
    35 double *lpd, *psi, *rp, *rho, *lam, *bet;
     31comet (double mj, double ep, double inc, double ap, double qp, double om,
     32double *lpd, double *psi, double *rp, double *rho, double *lam, double *bet)
    3633{
    3734        double w, s, s2;
     
    4441
    4542#define ERRLMT  0.0001
    46         w = ((mjd-ep)*3.649116e-02)/(qp*sqrt(qp));
     43        w = ((mj-ep)*3.649116e-02)/(qp*sqrt(qp));
    4744        s = w/3;
    4845        for (;;) {
     
    6865        range (lpd, 2*PI);
    6966        rd = *rp * cpsi;
    70         sunpos (mjd, &lsn, &rsn, 0);
     67        sunpos (mj, &lsn, &rsn, 0);
    7168        lg = lsn+PI;
    7269        re = rsn;
     
    8481
    8582/* For RCS Only -- Do Not Edit */
    86 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: comet.c,v $ $Date: 2001-10-22 12:08:26 $ $Revision: 1.2 $ $Name: not supported by cvs2svn $"};
     83static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: comet.c,v $ $Date: 2004-06-15 16:52:38 $ $Revision: 1.3 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.