Skip to content

Commit f376314

Browse files
committed
Change refraction correction limit in ephemeris solar position algorithm
1 parent b1fd3f7 commit f376314

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pvlib/solarposition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def ephemeris(time, latitude, longitude, pressure=101325.0, temperature=12.0):
828828
TanEl = pd.Series(np.tan(np.radians(Elevation)), index=time_utc)
829829
Refract = pd.Series(0., index=time_utc)
830830

831-
Refract[(Elevation > 5) & (Elevation <= 85)] = (
831+
Refract[(Elevation > 5) & (Elevation <= 90)] = (
832832
58.1/TanEl - 0.07/(TanEl**3) + 8.6e-05/(TanEl**5))
833833

834834
Refract[(Elevation > -0.575) & (Elevation <= 5)] = (

0 commit comments

Comments
 (0)