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

Use xarray.apply_ufunc for the pcmin routine call #1

Open
wcarthur opened this issue Jul 18, 2021 · 0 comments
Open

Use xarray.apply_ufunc for the pcmin routine call #1

wcarthur opened this issue Jul 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@wcarthur
Copy link
Owner

Currently the pcmin code iterates through each grid point in multiply-nested for loops, which is somewhat inefficient.

Update the code to make use of xarray’s apply_ufunc for unvectorized functions: http://xarray.pydata.org/en/stable/examples/apply_ufunc_vectorize_1d.html

@wcarthur wcarthur added the enhancement New feature or request label Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant