Skip to content

Commit 023b5f7

Browse files
committed
fix docstrings
1 parent cfb1fd9 commit 023b5f7

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

pvlib/solarposition.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,8 @@ def pyephem_earthsun_distance(time):
775775

776776
def nrel_earthsun_distance(time, how='numpy', delta_t=None, numthreads=4):
777777
"""
778-
Calculates the distance from the earth to the sun using pyephem.
778+
Calculates the distance from the earth to the sun using the
779+
NREL SPA algorithm described in [1].
779780
780781
Parameters
781782
----------
@@ -797,6 +798,12 @@ def nrel_earthsun_distance(time, how='numpy', delta_t=None, numthreads=4):
797798
-------
798799
R : pd.Series
799800
Earth-sun distance in AU.
801+
802+
References
803+
----------
804+
[1] Reda, I., Andreas, A., 2003. Solar position algorithm for solar
805+
radiation applications. Technical report: NREL/TP-560- 34302. Golden,
806+
USA, http://www.nrel.gov.
800807
"""
801808
delta_t = delta_t or 67.0
802809

pvlib/spa.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,8 +1267,8 @@ def transit_sunrise_sunset(dates, lat, lon, delta_t, numthreads):
12671267

12681268
def earthsun_distance(unixtime, delta_t, numthreads):
12691269
"""
1270-
Calculate the sun transit, sunrise, and sunset
1271-
for a set of dates at a given location.
1270+
Calculates the distance from the earth to the sun using the
1271+
NREL SPA algorithm described in [1].
12721272
12731273
Parameters
12741274
----------
@@ -1285,6 +1285,12 @@ def earthsun_distance(unixtime, delta_t, numthreads):
12851285
-------
12861286
R : array
12871287
Earth-Sun distance in AU.
1288+
1289+
References
1290+
----------
1291+
[1] Reda, I., Andreas, A., 2003. Solar position algorithm for solar
1292+
radiation applications. Technical report: NREL/TP-560- 34302. Golden,
1293+
USA, http://www.nrel.gov.
12881294
"""
12891295

12901296
R = solar_position(unixtime, 0, 0, 0, 0, 0, delta_t,

0 commit comments

Comments
 (0)