get_body#
- sunpy.coordinates.spice.get_body(body, time, *, spice_frame='J2000', observer=None)[source]#
Get the location of a body via SPICE.
- Parameters:
body (
int,str) – The NAIF body ID, or a string that is resolvable to a body IDtime (
tuple,list,str,pandas.Timestamp,pandas.Index,pandas.Series,pandas.DatetimeIndex,datetime.datetime,datetime.date,numpy.datetime64,numpy.ndarray,astropy.time.Time) – Time to use in a parse_time-compatible format.spice_frame (
str) – The SPICE frame name to use for the returned coordinate. Defaults to'J2000', which is equivalent to Astropy’sICRS.observer (
SkyCoord) – IfNone, the returned coordinate is the instantaneous or “true” location. If notNone, the returned coordinate is the astrometric location (i.e., accounts for light travel time to the specified observer).
Examples