Hargreaves PET throws shape error
jalder-usgs opened this issue · 0 comments
jalder-usgs commented
Trying to calculated daily PET with Hargreaves throws a “ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()” error.
I expect it is from the shape test:
if daily_tmin_celsius.size != daily_tmax_celsius != daily_tmean_celsius:
This should likely be:
if daily_tmin_celsius.size != daily_tmax_celsius.size != daily_tmean_celsius.size: