astropy:docs

Note

This is an old version of the documentation. See http://docs.astropy.org/en/stable for the latest version.

get_sun

astropy.coordinates.get_sun(time)[source] [edit on github]

Determines the location of the sun at a given time, in geocentric coordinates.

Parameters:

table : Time

The time at which to compute the location of the sun.

Returns:

newsc : SkyCoord

The location of the sun as a SkyCoord in the GCRS frame.

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 Sun-Earth vector) from 1900-2100 C.E., 8 km for the 1800-2200 span, and perhaps 250 km over the 1000-3000.

Page Contents