Convert from/to `xarray`

未关闭
#978 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@davidhassell 已经在做这个了。

开始于 2026年11月20日。

  • #980 来自 @davidhassell —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

enhancement xarray

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.

主要语言
Python
星标
151
派生
23
平均合并
3 天 9 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NCAS-CMS/cf-python 的其他 Issue

查看 NCAS-CMS/cf-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。