get_sun¶

astropy.coordinates.
get_sun
(time)[source] [edit on github]¶ Determines the location of the sun at a given time (or times, if the input is an array
Time
object), in geocentric coordinates.Parameters: time :
Time
The time(s) at which to compute the location of the sun.
Returns: newsc :
SkyCoord
Notes
The algorithm for determining the sun/earth relative position is based on the simplified version of VSOP2000 that is part of ERFA. Compared to JPL’s ephemeris, it should be good to about 4 km (in the SunEarth vector) from 19002100 C.E., 8 km for the 18002200 span, and perhaps 250 km over the 10003000.