Skip to content

Commit ed1b474

Browse files
KonstantinTrwholmgren
authored andcommitted
Issue 366 (#383)
* fix for issue #343 Now, passed 'offset' parameter are used instead of it's default value. * test for issue #343 * solar_position_method passed to basic_chain wasn't used causing execution of solarposition.get_solarposition with default 'nrel_numpy' value in all cases. * Update modelchain.py doc string fixes for modelchain.basic_chain function * Update v0.5.1.rst * Update v0.5.1.rst * Update v0.5.1.rst * According to 'Solar Position Algorithm for Solar Radiation Applications' by Ibrahim Reda and Afshin Andreas there is usage of alpha_prime. * what's new update for issue #366
1 parent d924446 commit ed1b474

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/sphinx/source/whatsnew/v0.5.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Bug fixes
1212
* Remove condition causing Overflow warning from clearsky.haurwitz
1313
* modelchain.basic_chain now correctly passes 'solar_position_method'
1414
arg to solarposition.get_solarposition
15+
* Removed unnecessary calculations of alpha_prime in spa.solar_position_numpy
16+
and spa.solar_position_loop
1517

1618
Enhancements
1719
~~~~~~~~~~~~

pvlib/spa.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,6 @@ def solar_position_loop(unixtime, loc_args, out):
952952
x = xterm(u, lat, elev)
953953
y = yterm(u, lat, elev)
954954
delta_alpha = parallax_sun_right_ascension(x, xi, H, delta)
955-
alpha_prime = topocentric_sun_right_ascension(alpha, delta_alpha)
956955
delta_prime = topocentric_sun_declination(delta, x, y, xi, delta_alpha,
957956
H)
958957
H_prime = topocentric_local_hour_angle(H, delta_alpha)
@@ -1064,7 +1063,6 @@ def solar_position_numpy(unixtime, lat, lon, elev, pressure, temp, delta_t,
10641063
x = xterm(u, lat, elev)
10651064
y = yterm(u, lat, elev)
10661065
delta_alpha = parallax_sun_right_ascension(x, xi, H, delta)
1067-
alpha_prime = topocentric_sun_right_ascension(alpha, delta_alpha)
10681066
delta_prime = topocentric_sun_declination(delta, x, y, xi, delta_alpha, H)
10691067
H_prime = topocentric_local_hour_angle(H, delta_alpha)
10701068
e0 = topocentric_elevation_angle_without_atmosphere(lat, delta_prime,

0 commit comments

Comments
 (0)