Loads DExxx ephemeris files (for a time range)
ephem = CL_ephDE_loadT(cjd [[, dpath, tt_tref]])
Loads DExxx ephemeris files for a given time span.
The time span is defined by the interval containing all the dates given as input.
dpath of the path of the directory where DExxx ephemeris files are to be found. By default, or if the path is an empty string (""), "de405" in CelestLab data directory is used.
The result is returned in a Scilab stucture ephem that can be used by the function CL_ephDE_getPVA.
Note:
The format of the ephemeris file is specific to CelestLab.
Modified (1950.0) julian day (Time scale: TREF) (1xN)
(string, optional) Path of ephemeris directory. Default value: "" (see above) (1x1)
(optional) TT-TREF [seconds]. Default is %CL_TT_TREF. (1xN or 1x1)
Scilab structure containing the ephemeris data
CNES - DCT/SB
cjd_min = CL_dat_cal2cjd(1980, 1, 1); // TREF cjd_max = CL_dat_cal2cjd(2020, 1, 1); // TREF ephem = CL_ephDE_loadT([cjd_min, cjd_max]); // Use it! cjd = linspace(cjd_min, cjd_max, 5); [pos, vel, acc] = CL_ephDE_getPVA("Mars", cjd, "Earth", ephem=ephem) [pos, vel, acc] = CL_ephDE_getPVA("Mars", cjd, "Earth") // => same, but can be slower | ![]() | ![]() |