Closed KDarshan20 closed 3 years ago
Hi @KDarshan20,
the date (ephemeris time) shall be expressed as seconds past J2000 TDB (see https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/spkpos.html).
In your code, your are computing times starting at 2000-01-29 22:41:48.500000 UTC, for fractions of a second.
You'll need to convert the Julian Date (or UTC calendar time) you have to seconds past J2000 TDB (use str2et for that).
Hope this helps. Jorge
That cleared it. Thanks for the quick reply!
Hello, I'm trying to calculate the position of the Moon with the Earth's center as the origin, using this code:
meta.txt:
But all the values I get are around 403,087.56 km, while Moon's perigee is around 363,228.9 km. Where am I wrong?