You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, I am trying to use the pm_fao56 function to calculate the PET, but I am always getting the following error:
...
CellIn[41], [line13](vscode-notebook-cell:?execution_count=41&line=13)
[10] lat=48.32829*np.pi/180# Latitude of the meteorological station, converting from degrees to radians
[11] elevation=180# meters above sea-level---> [13] pet_df=pyet.pm_fao56(tmean, wind, rs=rs, elevation=elevation, lat=lat, rh=rh)
[14] returnpet_dfFile .venv/lib/python3.11/site-packages/pyet/combination.py:626, inpm_fao56(tmean, wind, rs, rn, g, tmax, tmin, rhmax, rhmin, rh, pressure, elevation, lat, n, nn, rso, a, b, ea, albedo, kab, as1, bs1, clip_zero)
[622] pressure, gamma, dlt, lambd, ea, es=_lambda_gamma_dlt_ea_es(
[623] elevation, pressure, tmean, tmax, tmin, rhmax, rhmin, rh, ea
[624] )
[625] gamma1=gamma* (1+0.34*wind)
--> [626] rn=calc_rad_net(
[627] tmean,
[628] rn,
[629] rs,
[630] lat,
[631] n,
[632] nn,
[633] tmax,
...
File .venv/lib/python3.11/site-packages/pandas/core/roperator.py:15, inrsub(left, right)
[14] defrsub(left, right):
---> [15] returnright-leftValueError: operandscouldnotbebroadcasttogetherwithshapes (5,) (10,)
Additionally, I am always seeing the following warning. I am not passing any timestamp into the pm_fao56 function. So I wonder where this warning can come from.
pyrealm/rad_utils.py:210: RuntimeWarning: '<' not supported between instances of 'Timestamp' and 'int', sort order is undefined for incomparable objects.
the dataframe in rso is containing a datetime index, and that is apparently causing the shape of rs / rso to be 2x the expected shape. Both, the shapes of rs and rso are (5,).
Describe the bug
Hi, I am trying to use the
pm_fao56
function to calculate the PET, but I am always getting the following error:Additionally, I am always seeing the following warning. I am not passing any timestamp into the
pm_fao56
function. So I wonder where this warning can come from.To Reproduce
Steps to reproduce the behavior:
where the meteo dataframe looks like this:
Expected behavior
The calculation should be executed without an error.
Additional context
Using Python
3.11.6
and pyet version1.3.1
The text was updated successfully, but these errors were encountered: