Support CF Aggregation Variables

Đang mở
#11,072 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Bắt đầu bằng cách đọc đặc tả CF 1.13 về aggregation variables được liên kết trong issue, sau đó kiểm tra hành vi hiện có của xr.open_dataset và combine_by_coords. Công việc được hoàn thành khi aggregation variables có thể được mở một cách minh bạch với việc kết hợp đúng các dữ liệu bên ngoài, mà không yêu cầu một hàm riêng hướng tới người dùng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
4.2k
Fork
1.5k
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pydata/xarray

Tất cả issue của pydata/xarray

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.