-
Notifications
You must be signed in to change notification settings - Fork 79
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
Direction of integration for cumint? #609
Comments
Hi @chrisb13, thanks for raising this issue. I think this is related to #337 and earlier #184. I agree this is a needed feature, but currently you would have to flip your values (not the coordinates see #605) apply the cumsum and flip them back (which is not ideal). Would you be interested in working on this feature at all? |
Here is an easy and temporary solution using grid_ufunc feature:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For aesthetic reasons I'd like to plot a barotropic streamfunction using an integral starting at the top rather than the bottom. (For an idealised southern ocean channel model.) Looking at the method-object-docs, I couldn't see a way to do this with cumint..? I briefly played with reindexing via strides but that feels un-xgcm like (and I didn't see how to make it work!)
Thanks for a handy package!
The text was updated successfully, but these errors were encountered: