Loads a DExxx ephemeris file
ephem = CL_ephDE_load(fpath)
Loads a DExxx ephemeris file.
The result is returned in a Scilab structure ephem that can be used by the function CL_ephDE_getPVA.
Notes:
- The format of the ephemeris file is specific to CelestLab.
- The file name suffix should be ".dat" (Scilab version < 6) or ".sod" (Scilab version >= 6). If the suffix is ".dat" and Scilab version is 6 or more, the suffix is changed to ".sod". If the suffix is not ".dat" nor ".sod", an appropriate suffix is added to the file name.
(string) Path of ephemeris file (1x1)
Scilab structure containing the data (1x1)
CNES - DCT/SB
// Load a DE405 (binary) ephemeris file // NB: appropriate file name suffix added fpath = CL_path("1960.*", fullfile(CL_home(), "data")); ephem = CL_ephDE_load(fpath); // Use it! cjd = CL_dat_convert("cal", "cjd", [1962;1;1]); [pos, vel, acc] = CL_ephDE_getPVA("Mars",cjd, "Earth", ephem=ephem) | ![]() | ![]() |