-
Notifications
You must be signed in to change notification settings - Fork 15
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
apply_ufunc problem #69
Comments
Could you share a minimal repducible example? |
ERA5 weather data is a four-dimensional dataset that includes time, altitude (atmospheric pressure layer), longitude, and latitude. When I use the function provided by METPY to calculate divergence. When using vector functions in terms of time and height, the above error will be prompted.But using numpy doesn't have this problem
|
I suspect the issue is in the metpy function which might be converting to numpy. We'll need to see the whole traceback to be sure |
thank you. |
When using apply_ufunc, broadcasting vector functions on several axes will result in the following error:
Implicit conversion to a NumPy array is not allowed. Please use
.get()
to construct a NumPy array explicitly.The text was updated successfully, but these errors were encountered: