@@ -219,26 +219,26 @@ def ephemeris(time, location, pressure=101325, temperature=12):
219
219
----------
220
220
time : pandas.DatetimeIndex
221
221
location : pvlib.Location
222
- pressure : float or DataFrame
223
- Ambient pressure (Pascals)
224
-
225
- temperature : float or DataFrame
226
- Ambient temperature (C)
222
+ pressure : float or Series
223
+ Ambient pressure (Pascals)
224
+ temperature : float or Series
225
+ Ambient temperature (C)
227
226
228
227
Returns
229
228
-------
230
229
231
230
DataFrame with the following columns:
232
231
233
- * elevation : actual elevation (not accounting for refraction) of the sun
234
- in decimal degrees, 0 = on horizon. The complement of the zenith
235
- angle.
232
+ * apparent_elevation : apparent sun elevation accounting for
233
+ atmospheric refraction.
234
+ * elevation : actual elevation (not accounting for refraction)
235
+ of the sun in decimal degrees, 0 = on horizon.
236
+ The complement of the zenith angle.
236
237
* azimuth : Azimuth of the sun in decimal degrees East of North.
237
- * zenith : Solar zenith angle
238
- * apparent_elevation : apparent sun elevation accounting for atmospheric
239
- refraction. This is the complement of the Apparent Zenith Angle.
238
+ This is the complement of the apparent zenith angle.
240
239
* apparent_zenith : apparent sun zenith accounting for atmospheric
241
240
refraction.
241
+ * zenith : Solar zenith angle
242
242
* solar_time : Solar time in decimal hours (solar noon is 12.00).
243
243
244
244
References
@@ -250,7 +250,6 @@ def ephemeris(time, location, pressure=101325, temperature=12):
250
250
See also
251
251
--------
252
252
pyephem, spa
253
-
254
253
'''
255
254
256
255
# Added by Rob Andrews (@Calama-Consulting), Calama Consulting, 2014
@@ -369,11 +368,11 @@ def ephemeris(time, location, pressure=101325, temperature=12):
369
368
370
369
# make output DataFrame
371
370
DFOut = pd .DataFrame (index = time_utc ).tz_convert (location .tz )
371
+ DFOut ['apparent_elevation' ] = ApparentSunEl
372
372
DFOut ['elevation' ] = SunEl
373
373
DFOut ['azimuth' ] = SunAz
374
- DFOut ['zenith' ] = 90 - SunEl
375
- DFOut ['apparent_elevation' ] = ApparentSunEl
376
374
DFOut ['apparent_zenith' ] = 90 - ApparentSunEl
375
+ DFOut ['zenith' ] = 90 - SunEl
377
376
DFOut ['solar_time' ] = SolarTime
378
377
379
378
return DFOut
0 commit comments