From fd2c298679cfcc6a1c4fce482c6516673e4b9110 Mon Sep 17 00:00:00 2001 From: pchinso Date: Tue, 3 Dec 2024 12:11:27 +0100 Subject: [PATCH] Update tracking.py additional parameter offset : float, default 0.0 is an additional angle that causes a delay/advance of the tracking position over the the ideal true tracker_theta angle before .calc_surface_orientation ``offset``. [degrees] --- pvlib/tracking.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pvlib/tracking.py b/pvlib/tracking.py index afdaab2adf..8fa1771bd0 100644 --- a/pvlib/tracking.py +++ b/pvlib/tracking.py @@ -8,7 +8,8 @@ def singleaxis(apparent_zenith, apparent_azimuth, axis_tilt=0, axis_azimuth=0, max_angle=90, - backtrack=True, gcr=2.0/7.0, cross_axis_tilt=0): + backtrack=True, gcr=2.0/7.0, cross_axis_tilt=0 + offset=0): """ Determine the rotation angle of a single-axis tracker when given particular solar zenith and azimuth angles. @@ -84,6 +85,11 @@ def singleaxis(apparent_zenith, apparent_azimuth, positive cross-axis tilt if the tracker axes plane slopes down to the west. Use :func:`~pvlib.tracking.calc_cross_axis_tilt` to calculate ``cross_axis_tilt``. [degrees] + offset : float, default 0.0 + is an additional angle that causes a delay/advance of the tracking + position over the the ideal true tracker_theta angle before + .calc_surface_orientation + ``offset``. [degrees] Returns ------- @@ -143,7 +149,7 @@ def singleaxis(apparent_zenith, apparent_azimuth, axis_azimuth=axis_azimuth, solar_zenith=apparent_zenith, solar_azimuth=apparent_azimuth, - ) + ) + offset # filter for sun above panel horizon zen_gt_90 = apparent_zenith > 90