@@ -42,7 +42,7 @@ def solar_position(weather_df, meta):
42
42
43
43
44
44
def poa_irradiance (
45
- weather_df , meta , sol_position = None , tilt = None , azimuth = 180 , sky_model = "isotropic"
45
+ weather_df , meta , sol_position = None , tilt = None , azimuth = None , sky_model = "isotropic"
46
46
):
47
47
"""
48
48
Calculate plane-of-array (POA) irradiance using pvlib based on weather data from the
@@ -60,7 +60,7 @@ def poa_irradiance(
60
60
The tilt angle of the PV panels in degrees, if None, the latitude of the
61
61
location is used.
62
62
azimuth : float, optional
63
- The azimuth angle of the PV panels in degrees, 180 by default - facing south .
63
+ The azimuth angle of the PV panels in degrees. Equatorial facing by default.
64
64
sky_model : str, optional
65
65
The pvlib sky model to use, 'isotropic' by default.
66
66
@@ -74,6 +74,11 @@ def poa_irradiance(
74
74
# TODO: change for handling HSAT tracking passed or requested
75
75
if tilt is None :
76
76
tilt = float (meta ["latitude" ])
77
+ if azimuth is None : #Sets the default orientation to equator facing.
78
+ if float (meta ['latitude' ]) < 0 :
79
+ azimuth = 0
80
+ else :
81
+ azimuth = 180
77
82
78
83
if sol_position is None :
79
84
sol_position = solar_position (weather_df , meta )
0 commit comments