Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for the grid mapping attribute and variable #449

Merged
merged 6 commits into from
Apr 20, 2022

Conversation

RondeauG
Copy link
Contributor

The grid_mapping attribute is used in CF Conventions to link a variable to its grid properties in the case of non-regular grids. These grids are very common for regional climate models. However, the current behaviour of _open_dataset() drops the grid_mapping variable (e.g. rotated_pole), since it is not recognized as a requested_variables

This small modification searches for the grid_mapping attribute within the requested_variables and if found, adds the related variable to the output.

@RondeauG RondeauG requested a review from andersy005 as a code owner February 22, 2022 20:45
@RondeauG RondeauG changed the title Grid mapping Support for the grid mapping attribute and variable Feb 22, 2022
@andersy005 andersy005 added the enhancement Issues that are found to be a reasonable candidate feature additions label Mar 7, 2022
Copy link
Member

@andersy005 andersy005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your patience, and contribution, @RondeauG! This looks good to me 👍🏽

@andersy005
Copy link
Member

@RondeauG, I also noticed this is your first PR here. Welcome to intake-esm!

intake_esm/source.py Outdated Show resolved Hide resolved
@RondeauG
Copy link
Contributor Author

@andersy005 Sorry to tag you with this, but I just wanted to know if you have an ETA on this PR? Is there something missing and/or anything that I could do to help you with it? Thanks!

intake_esm/source.py Outdated Show resolved Hide resolved
RondeauG and others added 3 commits April 20, 2022 09:22
More general detection of informational variables

Co-authored-by: Anderson Banihirwe <axbanihirwe@ualr.edu>
@andersy005
Copy link
Member

Thank you for this contribution and your patience, @RondeauG!

@andersy005 andersy005 merged commit 50881b5 into intake:main Apr 20, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Issues that are found to be a reasonable candidate feature additions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants