pint.solar_system_ephemerides.objPosVel

pint.solar_system_ephemerides.objPosVel(obj1: str, obj2: str, t: Time, ephem: str, path: str | Path | None = None, link: str | None = None) PosVel[source]

Compute the position and velocity for solar system obj2 referenced at obj1.

This function uses astropy solar system Ephemerides module.

Parameters:
  • obj1 (str) – The name of reference solar system object

  • obj2 (str) – The name of target solar system object

  • tdb (Astropy.time.Time object) – TDB time in Astropy.time.Time object format

  • ephem (str) – The ephem to for computing solar system object position and velocity (without bsp extension)

  • path (str or pathlib.Path, optional) – Local path to the ephemeris file.

  • link (str, optional) – Location of path on the internet.

Returns:

solar system obj1’s position and velocity with respect to obj2 in the J2000 cartesian coordinate.

Return type:

PosVel object.