Convert from/to `xarray`
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Read the linked issue #935 for the existing conversion direction and inspect the package-level API and current to_xarray methods. Determine how conversion from xarray datasets should construct cf.Field and cf.Domain objects, including how lists should be handled; done means both conversion directions are available through the unified package-level API. A linked pull request (#980) is already open.
Written by the indexing model from the issue text.
Description
It would be nice to be able to convert from xarray datasets to cf.Field and cf.Domain constructs in memory.
See #935 (convert to xarray)
It would make sense to have a unified package-level API for this:
cf.from_xarray
cf.to_xarray
as opposed to to_xarray being a method on various classes. This new approach would also make it really easy to convert lists of fields/domains to xarray.
- Dominant language
- Python
- Stars
- 151
- Forks
- 23
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NCAS-CMS/cf-python
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Convert to/from iris cubesPossibly taken @davidhassell claimed this 3 days ago. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
installation
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Attempt at unsupported conservative 3D mesh regriddingMay be free again @sadielbartholomew claimed this 74 days ago, and no pull request is open. Openbug?
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in NCAS-CMS/cf-python
Similar issues
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vllm-project/vllm-sail#398 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DiamondLightSource/sm-bluesky#476 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100