44from pvlib .tools import cosd , sind , tand , acosd , asind
55from pvlib import irradiance
66from pvlib import shading
7+ from pvlib ._deprecation import renamed_kwarg_warning
78
89
9- def singleaxis (apparent_zenith , apparent_azimuth ,
10+ @renamed_kwarg_warning (
11+ since = '0.13.1' ,
12+ old_param_name = 'apparent_azimuth' ,
13+ new_param_name = 'solar_azimuth' )
14+ def singleaxis (apparent_zenith , solar_azimuth ,
1015 axis_tilt = 0 , axis_azimuth = 0 , max_angle = 90 ,
1116 backtrack = True , gcr = 2.0 / 7.0 , cross_axis_tilt = 0 ):
1217 """
@@ -33,7 +38,7 @@ def singleaxis(apparent_zenith, apparent_azimuth,
3338 apparent_zenith : float, 1d array, or Series
3439 Solar apparent zenith angles in decimal degrees.
3540
36- apparent_azimuth : float, 1d array, or Series
41+ solar_azimuth : float, 1d array, or Series
3742 Solar apparent azimuth angles in decimal degrees.
3843
3944 axis_tilt : float, default 0
@@ -123,10 +128,10 @@ def singleaxis(apparent_zenith, apparent_azimuth,
123128 index = None
124129
125130 # convert scalars to arrays
126- apparent_azimuth = np .atleast_1d (apparent_azimuth )
131+ solar_azimuth = np .atleast_1d (solar_azimuth )
127132 apparent_zenith = np .atleast_1d (apparent_zenith )
128133
129- if apparent_azimuth .ndim > 1 or apparent_zenith .ndim > 1 :
134+ if solar_azimuth .ndim > 1 or apparent_zenith .ndim > 1 :
130135 raise ValueError ('Input dimensions must not exceed 1' )
131136
132137 # The ideal tracking angle, omega_ideal, is the rotation to place the sun
@@ -142,7 +147,7 @@ def singleaxis(apparent_zenith, apparent_azimuth,
142147 axis_tilt = axis_tilt ,
143148 axis_azimuth = axis_azimuth ,
144149 solar_zenith = apparent_zenith ,
145- solar_azimuth = apparent_azimuth ,
150+ solar_azimuth = solar_azimuth ,
146151 )
147152
148153 # filter for sun above panel horizon
@@ -191,7 +196,7 @@ def singleaxis(apparent_zenith, apparent_azimuth,
191196 surface_tilt = surface ['surface_tilt' ]
192197 surface_azimuth = surface ['surface_azimuth' ]
193198 aoi = irradiance .aoi (surface_tilt , surface_azimuth ,
194- apparent_zenith , apparent_azimuth )
199+ apparent_zenith , solar_azimuth )
195200
196201 # Bundle DataFrame for return values and filter for sun below horizon.
197202 out = {'tracker_theta' : tracker_theta , 'aoi' : aoi ,
0 commit comments