Ephemeris#

The user-facing ephemeris class and wrapper around EphemerisProcessor.

class jorbit.ephemeris.ephemeris.Ephemeris(ssos='default planets', earliest_time=<Time object: scale='utc' format='iso' value=1980-01-01 00:00:00.000>, latest_time=<Time object: scale='utc' format='iso' value=2050-01-01 00:00:00.000>, postprocessing_func=None, de_ephemeris_version='440')[source]#

Bases: object

A class for managing and processing a JPL DE solar system ephemeris.

Parameters:
  • ssos (str)

  • earliest_time (astropy.time.core.Time)

  • latest_time (astropy.time.core.Time)

  • postprocessing_func (collections.abc.Callable | None)

  • de_ephemeris_version (str | None)

ephs#

Tuple of EphemerisProcessor objects for different solar system object groups

Type:

tuple

processor#

Main processor for ephemeris calculations

Type:

Union[EphemerisProcessor, EphemerisPostProcessor]

_combined_names#

List of all object names

Type:

List[str]

_combined_log_gms#

List of logarithmic GM values for all objects

Type:

List[float]

state(time)[source]#

Calculate the state vectors for solar system objects at the given time(s).

This method computes position and velocity vectors for all tracked solar system objects at the specified time(s). It can handle arbitrary-length Time inputs.

Parameters:

time (Time) – Times at which to evaluate the ephemeris.

Returns:

Dictionary containing state information for each object. The outer dictionary is keyed by object name, and each inner dictionary contains - ‘x’: Position vector (astropy.units.Quantity in au) - ‘v’: Velocity vector (astropy.units.Quantity in au/day) - ‘log_gm’: Logarithmic GM value (float)

Return type:

dict