24
24
25
25
from pvlib import atmosphere
26
26
from pvlib .tools import datetime_to_djd , djd_to_datetime
27
- from pvlib ._deprecation import deprecated
28
27
29
28
30
29
NS_PER_HR = 1.e9 * 3600. # nanoseconds per hour
@@ -40,9 +39,15 @@ def get_solarposition(time, latitude, longitude,
40
39
Parameters
41
40
----------
42
41
time : pandas.DatetimeIndex
42
+ Must be localized or UTC will be assumed.
43
43
44
44
latitude : float
45
+ Latitude in decimal degrees. Positive north of equator, negative
46
+ to south.
47
+
45
48
longitude : float
49
+ Longitude in decimal degrees. Positive east of prime meridian,
50
+ negative to west.
46
51
47
52
altitude : None or float, default None
48
53
If None, computed from pressure. Assumed to be 0 m
@@ -69,7 +74,9 @@ def get_solarposition(time, latitude, longitude,
69
74
temperature : float, default 12
70
75
Degrees C.
71
76
72
- Other keywords are passed to the underlying solar position function.
77
+ kwargs
78
+ Other keywords are passed to the solar position function
79
+ specified by the ``method`` argument.
73
80
74
81
References
75
82
----------
@@ -137,13 +144,17 @@ def spa_c(time, latitude, longitude, pressure=101325, altitude=0,
137
144
Parameters
138
145
----------
139
146
time : pandas.DatetimeIndex
140
- Localized or UTC.
147
+ Must be localized or UTC will be assumed .
141
148
latitude : float
149
+ Latitude in decimal degrees. Positive north of equator, negative
150
+ to south.
142
151
longitude : float
152
+ Longitude in decimal degrees. Positive east of prime meridian,
153
+ negative to west.
143
154
pressure : float, default 101325
144
155
Pressure in Pascals
145
156
altitude : float, default 0
146
- Elevation above sea level.
157
+ Height above sea level. [m]
147
158
temperature : float, default 12
148
159
Temperature in C
149
160
delta_t : float, default 67.0
@@ -276,10 +287,15 @@ def spa_python(time, latitude, longitude,
276
287
Parameters
277
288
----------
278
289
time : pandas.DatetimeIndex
279
- Localized or UTC.
290
+ Must be localized or UTC will be assumed .
280
291
latitude : float
292
+ Latitude in decimal degrees. Positive north of equator, negative
293
+ to south.
281
294
longitude : float
295
+ Longitude in decimal degrees. Positive east of prime meridian,
296
+ negative to west.
282
297
altitude : float, default 0
298
+ Distance above sea level.
283
299
pressure : int or float, optional, default 101325
284
300
avg. yearly air pressure in Pascals.
285
301
temperature : int or float, optional, default 12
@@ -574,13 +590,15 @@ def pyephem(time, latitude, longitude, altitude=0, pressure=101325,
574
590
Parameters
575
591
----------
576
592
time : pandas.DatetimeIndex
577
- Localized or UTC.
593
+ Must be localized or UTC will be assumed .
578
594
latitude : float
<
8000
td data-grid-cell-id="diff-cb87c5de5d97f94270d390f540ae4b854d6e4b531346c5f662fd0cfc30817805-579-594-0" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionNum-bgColor, var(--diffBlob-deletion-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">579
- positive is north of 0
595
+ Latitude in decimal degrees. Positive north of equator, negative
596
+ to south.
580
597
longitude : float
581
- positive is east of 0
598
+ Longitude in decimal degrees. Positive east of prime meridian,
599
+ negative to west.
582
600
altitude : float, default 0
583
- distance above sea level in meters.
601
+ Height above sea level in meters. [m]
584
602
pressure : int or float, optional, default 101325
585
603
air pressure in Pascals.
586
604
temperature : int or float, optional, default 12
@@ -666,8 +684,13 @@ def ephemeris(time, latitude, longitude, pressure=101325, temperature=12):
666
684
Parameters
667
685
----------
668
686
time : pandas.DatetimeIndex
687
+ Must be localized or UTC will be assumed.
669
688
latitude : float
689
+ Latitude in decimal degrees. Positive north of equator, negative
690
+ to south.
670
691
longitude : float
692
+ Longitude in decimal degrees. Positive east of prime meridian,
693
+ negative to west.
671
694
pressure : float or Series, default 101325
672
695
Ambient pressure (Pascals)
673
696
temperature : float or Series, default 12
@@ -845,7 +868,11 @@ def calc_time(lower_bound, upper_bound, latitude, longitude, attribute, value,
845
868
lower_bound : datetime.datetime
846
869
upper_bound : datetime.datetime
847
870
latitude : float
871
+ Latitude in decimal degrees. Positive north of equator, negative
872
+ to south.
848
873
longitude : float
874
+ Longitude in decimal degrees. Positive east of prime meridian,
875
+ negative to west.
849
876
attribute : str
850
877
The attribute of a pyephem.Sun object that
851
878
you want to solve for. Likely options are 'alt'
@@ -909,7 +936,8 @@ def pyephem_earthsun_distance(time):
909
936
910
937
Parameters
911
938
----------
912
- time : pd.DatetimeIndex
939
+ time : pandas.DatetimeIndex
940
+ Must be localized or UTC will be assumed.
913
941
914
942
Returns
915
943
-------
@@ -934,7 +962,8 @@ def nrel_earthsun_distance(time, how='numpy', delta_t=67.0, numthreads=4):
934
962
935
963
Parameters
936
964
----------
937
- time : pd.DatetimeIndex
965
+ time : pandas.DatetimeIndex
966
+ Must be localized or UTC will be assumed.
938
967
939
968
how : str, optional, default 'numpy'
940
969
Options are 'numpy' or 'numba'. If numba >= 0.17.0
0 commit comments