Skip to content

Commit

Permalink
Fix shape error in rad_utils function calc_rad_long
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Wielander committed Sep 23, 2024
1 parent ff41178 commit cc1fbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyet/rad_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def calc_rad_long(
rso = rso.where(rso != 0, 0.001)
if len(rs.shape) == 3 and len(rso.shape) == 1:
rso = rso.values[:, newaxis, newaxis]
solar_rat = clip(rs / rso, 0.3, 1)
solar_rat = clip(rs.values / rso.values, 0.3, 1)
if tmax is not None:
tmp1 = STEFAN_BOLTZMANN_DAY * ((tmax + 273.16) ** 4 + (tmin + 273.16) ** 4) / 2
else:
Expand Down

0 comments on commit cc1fbb7

Please sign in to comment.