Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hargreaves PET throws shape error #541

Open
jalder-usgs opened this issue Jan 11, 2024 · 0 comments
Open

Hargreaves PET throws shape error #541

jalder-usgs opened this issue Jan 11, 2024 · 0 comments

Comments

@jalder-usgs
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant