-
Notifications
You must be signed in to change notification settings - Fork 82
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
Adding target_dim
as parameter to .transform()
#642
base: master
Are you sure you want to change the base?
Conversation
- Insert autoparse_metadata=False into Grid() to avoid error messages - Correct dictionary keys for pangeo cloud data library - Remove non-existing xc coordinate from Grid object to avoid existing ValueError - Insert a .squeeze() for plotting AMOC to avoid error
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
target_dim
as parameter to .transform()
Just realized that there is overlap between this PR and PR #627 |
Hey @NoraLoose, thank you so much for working on this and sorry for the delay. I think I got the CI issues #644 and #648 under control now. Once #649 is merged can you try to rebase this one?
Feel free to absorb and close this if needed. |
- Adapt construction of test data to multi-dimensional data - Add linear multidimensional test cases to dictionary - Add new test that tests that transforming onto spatially varying vertical target coordinate works as expected
Also I have restructured the linting and setup in #650, please let me know if it is ok to merge this ahead of time. I think this should not cause too big of a conflict? |
Transforming onto a spatially varying vertical coordinate (e.g., terrain-following) works with the linear interpolation method, see newly added tests and the example in the documentation. I tested this also for the conservative interpolation method by adding the following test case to the
However, it fails because of this line: Line 160 in 2de04bf
|
@jbusecke I'm not sure when I have time to look into generalizing the conservative method to multiple dimensions. We could merge this PR, and open a feature request issue? If we do this, should we include more warnings (where?) to clarify that the conservative method is not yet supported for multi-dimensional vertical target coordinates? |
Thank you so much @NoraLoose! This is awesome. I am pretty busy today, but will try to take some time next week to review and maybe also enable conservative interpolation. |
Still WIP
pre-commit run --all-files
whats-new.rst
I added a section to the existing
doc/transform.ipynb
notebook to document the new capability. While working on this notebook, I also fixed pre-existing issues with this notebook including:autoparse_metadata=False
intoGrid()
to avoid error messagesxc
coordinate from Grid object to avoid existingValueError
.squeeze()
for plotting AMOC to avoid error