8000 fixed the calculation of rotated panel azimuth calculations so that t… · cdeline/pvlib-python@50eb415 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50eb415

Browse files
committed
fixed the calculation of rotated panel azimuth calculations so that the results are consistent with PVsyst.
Also the tests are updated to cover that issue
1 parent 7254a7f commit 50eb415

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pvlib/test/test_tracking.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,16 @@ def test_SingleAxisTracker_tracking():
195195
assert_frame_equal(expect, tracker_data)
196196

197197
### results calculated using PVsyst
198+
pvsyst_solar_azimuth = 7.1609
199+
pvsyst_solar_height = 27.315
200+
pvsyst_axis_tilt = 20.
201+
pvsyst_axis_azimuth = 20.
198202
system.backtrack = False
199203
system.max_angle = 60.
200-
system.axis_tilt = 20.
201-
system.axis_azimuth = 200.
202-
apparent_azimuth = pd.Series([180+7.1609])
203-
apparent_zenith = pd.Series([90-27.315])
204+
system.axis_tilt = pvsyst_axis_tilt
205+
system.axis_azimuth = 180+pvsyst_axis_azimuth
206+
apparent_azimuth = pd.Series([180+pvsyst_solar_azimuth]) # the definition of azimuth is different from PYsyst
207+
apparent_zenith = pd.Series([90-pvsyst_solar_height])
204208
tracker_data = system.singleaxis(apparent_zenith, apparent_azimuth)
205209
expect = pd.DataFrame({'aoi': 41.07852 , 'surface_azimuth': 180-18.432 ,
206210
'surface_tilt': 24.92122 , 'tracker_theta': -15.18391},

0 commit comments

Comments
 (0)
0