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

Converting field(s) to & from CF-compliant xarray.Dataset #773

Open
sadielbartholomew opened this issue May 22, 2024 · 0 comments
Open

Converting field(s) to & from CF-compliant xarray.Dataset #773

sadielbartholomew opened this issue May 22, 2024 · 0 comments
Labels
API review (4.0.0) documentation Improvements or additions to documentation enhancement New feature or request question General question

Comments

@sadielbartholomew
Copy link
Member

A common way to work with weather and climate datasets is of course the xarray library, so it would be nice to have a means to convert to and from an xarray.Dataset if it has sufficient and conformant-enough CF metadata and suitable structure, for which the xarray.decode_cf function may be able to assist on the xarray-side.

Ideally we can have a method for such a conversion and/or at least a recipe in the documentation showing how this can be done, for both a trivially-convertible case and for a case of a field and/or Dataset that needs some tweaks to get the right structure before the conversion can be made.

Note in #706 we considered and supported input of xarray arrays, so that helps towards this.

@sadielbartholomew sadielbartholomew added documentation Improvements or additions to documentation enhancement New feature or request question General question labels May 22, 2024
@sadielbartholomew sadielbartholomew changed the title Best way to convert field(s) to and from CF-compliant xarray.Dataset Best way to convert field(s) to & from CF-compliant xarray.Dataset May 22, 2024
@sadielbartholomew sadielbartholomew changed the title Best way to convert field(s) to & from CF-compliant xarray.Dataset Converting field(s) to & from CF-compliant xarray.Dataset May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API review (4.0.0) documentation Improvements or additions to documentation enhancement New feature or request question General question
Projects
None yet
Development

No branches or pull requests

1 participant