-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: swap meshgrid dimension ordering in xarray grid creation #249
Conversation
Can you re-fork datasets and republish the PR? I cannot merge. |
Do you have an example of each type of mesh that I could add to the tests? |
4f1b9ba
to
b458ff8
Compare
@b8raoult I just rebased the branch for the PR and resolved conflicts, so it should be able to be merged. Also I generalized it to work with the case where lat/lon need to be renamed. As for test datasets, if you want something that has the exact same data, then the scripts and datasets I provided in #245 could work. Otherwise, here are two out in the wild: 1. Here's a recipe to pull in an ERA5 dataset with dimensions
|
Description
A solution (that feels somewhat hacky) to #245
Type of Change
Issue Number
Closes #245
Code Compatibility
Code Performance and Testing
Dependencies
Documentation
N/A
Additional Notes
When running the test case provided in #245, I get what I'd expect: that the latitudes and longitudes are different due to the different ordering of the arrays. Here's what I see now in the output:
And I'm printing the first 10 values of longitudes and latitudes to show that the difference is not just because of something wacky, but because of the dimension ordering.