Support CF Aggregation Variables

未关闭
#11,072 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先阅读 issue 中链接的 CF 1.13 aggregation-variables 规范,然后检查现有的 xr.open_dataset 和 combine_by_coords 行为。当 aggregation variables 可以在不要求单独的面向用户的函数的情况下,以正确组合外部数据的方式透明地打开时,即表示完成。

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

描述

enhancement topic-backends
Is your feature request related to a problem?

New and fresh from the 1.13 CF conventions released in December 2025 : the « Aggregation variable », a new syntax for creating ncml-like aggregation within valid files (mostly netCDF).

https://cfconventions.org/Data/cf-conventions/cf-conventions-1.13/cf-conventions.html#aggregation-variables

The idea is to explicitly map external variables (i.e. in another file) to section of a "virtual" variable in the main file.

Describe the solution you'd like

Would be nice if xarray was able to open these transparently, with the correct combination of combine_by_coords and such.

Describe alternatives you've considered

As this is a I/O thing, I thought it would be best to be done here, instead of cf-xarray which concerns itself with more advance/high-level stuff. And making xr.open_dataset transparent to this seems a more user-friendly idea than having an extra function from an external package handle this.

Additional context

This new thing was a standalone extension to the CF conventions (under the name CFA) since 2023 (at least) and is already implemented by package cf-python.

主要语言
Python
星标
4.2k
派生
1.5k
平均合并
2 天 20 小时
30 天内合并 PR
70

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

pydata/xarray 的其他 Issue

查看 pydata/xarray 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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