pvlib.solarposition.pyephem_earthsun_distance

pvlib.solarposition.pyephem_earthsun_distance(time)[source]

Calculates the distance from the earth to the sun using pyephem.

Parameters

time (pandas.DatetimeIndex) – Must be localized or UTC will be assumed.

Returns

pd.Series. Earth-sun distance in AU.