@@ -210,9 +210,9 @@ def pyephem(time, location, pressure=101325, temperature=12):
210
210
211
211
212
212
def ephemeris (time , location , pressure = 101325 , temperature = 12 ):
213
- '''
213
+ '''
214
214
Python-native solar position calculator.
215
- The accuracy of this code is not guaranteed.
215
+ The accuracy of this code is not guaranteed.
216
216
Consider using the built-in spa_c code or the PyEphem library.
217
217
218
218
Parameters
@@ -223,47 +223,45 @@ def ephemeris(time, location, pressure=101325, temperature=12):
223
223
Other Parameters
224
224
----------------
225
225
226
- pressure : float or DataFrame
226
+ pressure : float or DataFrame [default: 101325]
227
227
Ambient pressure (Pascals)
228
228
229
- temperature : float or DataFrame
229
+ temperature : float or DataFrame [default: 12]
230
230
Ambient temperature (C)
231
-
231
+
232
232
Returns
233
233
-------
234
-
234
+
235
235
DataFrame with the following columns
236
-
236
+
237
237
SunEl : float of DataFrame
238
- Actual elevation (not accounting for refraction)of the sun
238
+ Actual elevation (not accounting for refraction)of the sun
239
239
in decimal degrees, 0 = on horizon. The complement of the True Zenith
240
240
Angle.
241
-
242
- SunAz : Azimuth of the sun in decimal degrees from North. 0 = North to 270 = West
243
-
241
+
242
+ SunAz : Azimuth of the sun in decimal degrees from North.
243
+ 0 = North, 90 = West, 180 = South, 270 = West
244
+
244
245
SunZen : Solar zenith angle
245
246
246
247
ApparentSunEl : float or DataFrame
247
248
248
- Apparent sun elevation accounting for atmospheric
249
+ Apparent sun elevation accounting for atmospheric
249
250
refraction. This is the complement of the Apparent Zenith Angle.
250
251
251
252
SolarTime : fload or DataFrame
252
253
Solar time in decimal hours (solar noon is 12.00).
253
-
254
+
254
255
255
256
References
256
257
-----------
257
258
258
- Grover Hughes' class and related class materials on Engineering
259
+ Grover Hughes' class and related class materials on Engineering
259
260
Astronomy at Sandia National Laboratories, 1985.
260
261
261
262
See also
262
263
--------
263
- pvl_makelocationstruct
264
- pvl_alt2pres
265
- pvl_getaoi
266
- pvl_spa
264
+ pyephem, spa
267
265
268
266
'''
269
267
0 commit comments