Convert from/to `xarray`

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

@davidhassell đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #980 của @davidhassell — đang mở

Đá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
25/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

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.

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

Mô tả

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.

Ngôn ngữ chính
Python
Star
151
Fork
23
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
2

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

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 NCAS-CMS/cf-python

Tất cả issue của NCAS-CMS/cf-python

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.