get_body_barycentric¶
-
astropy.coordinates.
get_body_barycentric
(time, body)[source] [edit on github]¶ Calculate the barycentric position of the solar system body
body
in cartesian coordinates.Uses
jplephem
with the DE430 kernel.Parameters: time :
Time
Time of observation
body : str
The solar system body to calculate.
The allowed values for
body
can be found inastropy.coordinates.SOLAR_SYSTEM_BODIES
.Returns: cartesian_position :
CartesianRepresentation
Barycentric (ICRS) position of the body in cartesian coordinates