Ignore:
Timestamp:
Mar 25, 2008, 6:45:21 PM (18 years ago)
Author:
cmv
Message:

mise a jour Xephem 3.7.3 , cmv 25/03/2008

File:
1 edited

Legend:

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

    r3111 r3477  
    929929write_E (Obj *op, char lp[])
    930930{
     931        double d;
     932        int m, y;
     933
    931934        lp += sprintf (lp, "%s,E", op->o_name);
    932935        *lp++ = ',';
    933         lp += fs_date (lp, PREF_MDY, op->es_epoch);
     936        mjd_cal (op->es_epoch, &m, &d, &y); /* need more day prec than fs_date*/
     937        lp += sprintf (lp, "%d/%.12g/%d", m, d, y);
    934938        lp += get_okdates (lp, &op->es_startok, &op->es_endok);
    935         lp += sprintf (lp, ",%.7g", op->es_inc);
    936         lp += sprintf (lp, ",%.7g", op->es_raan);
    937         lp += sprintf (lp, ",%.7g", op->es_e);
    938         lp += sprintf (lp, ",%.7g", op->es_ap);
    939         lp += sprintf (lp, ",%.7g", op->es_M);
    940         lp += sprintf (lp, ",%.7g", op->es_n);
    941         lp += sprintf (lp, ",%.7g", op->es_decay);
     939        lp += sprintf (lp, ",%.8g", op->es_inc);
     940        lp += sprintf (lp, ",%.8g", op->es_raan);
     941        lp += sprintf (lp, ",%.8g", op->es_e);
     942        lp += sprintf (lp, ",%.8g", op->es_ap);
     943        lp += sprintf (lp, ",%.8g", op->es_M);
     944        lp += sprintf (lp, ",%.12g", op->es_n);         /* double */
     945        lp += sprintf (lp, ",%.8g", op->es_decay);
    942946        lp += sprintf (lp, ",%d", op->es_orbit);
    943         lp += sprintf (lp, ",%.7g", op->es_drag);
     947        lp += sprintf (lp, ",%.8g", op->es_drag);
    944948}
    945949
     
    9961000
    9971001/* For RCS Only -- Do Not Edit */
    998 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2006-11-22 13:53:28 $ $Revision: 1.7 $ $Name: not supported by cvs2svn $"};
     1002static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2008-03-25 17:45:12 $ $Revision: 1.8 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.