Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Should there be thin wrappers like read_netcdf, read_zarr, etc?

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

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

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

Từ ngày 20/3/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

I was semi-surprised that there are only methods to read from tables:

Image

And to read gridded formats, I needed to open with xarray first, then convert to XarrayContext using from_dataset

import xarray as xr
from metpy.cbook import get_test_data
from xarray_sql import XarrayContext

ds = xr.open_dataset(get_test_data('irma_gfs_example.nc', False))
XarrayContext().from_dataset(ds)

Desired:

from metpy.cbook import get_test_data
from xarray_sql import XarrayContext

XarrayContext.read_netcdf(get_test_data('irma_gfs_example.nc', False))

If desired, I can help contribute a PR.

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

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 xqlsystems/xarray-sql

Tất cả issue của xqlsystems/xarray-sql

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.