<< CL_ephDE_load Models CL_ephDE_setPath >>

celestlab >> Models > CL_ephDE_loadT

CL_ephDE_loadT

Loads DExxx ephemeris files (for a time range)

Calling Sequence

ephem = CL_ephDE_loadT(cjd [[, dpath, tt_tref]])

Description

Parameters

cjd:

Modified (1950.0) julian day (Time scale: TREF) (1xN)

dpath:

(string, optional) Path of ephemeris directory. Default value: "" (see above) (1x1)

tt_tref:

(optional) TT-TREF [seconds]. Default is %CL_TT_TREF. (1xN or 1x1)

ephem:

Scilab structure containing the ephemeris data

Authors

See also

Examples

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

Report an issue
<< CL_ephDE_load Models CL_ephDE_setPath >>