get_body¶
-
astropy.coordinates.
get_body
(time, body, location=None)[source] [edit on github]¶ Get a
SkyCoord
for a body as observed from a location on Earth.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
.location :
EarthLocation
Location of observer on the Earth. If none is supplied, set to a Geocentric observer
Returns: skycoord :
SkyCoord
Coordinate for the body