creating geometry variables from bounds
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
- 25/100
Hướng nghiên cứu
Start at the xvec accessor and evaluate the proposed bounds_to_shapely entry point using the examples in the issue. Compare the unstacked and stacked lat/lon cases, including the requirement to broadcast or stack bounds and the possibility of 2D geometry variables. Done means the supported input shape and conversion behavior are specified and implemented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I wonder if it would be in scope for the xvec accessor to have a method that can be used to convert two bounds coordinates to shapely geometry columns?
I'd imagine something like this:
import xarray as xr
import cf_xarray
import xvec
ds = (
xr.tutorial.open_dataset("air_temperature", chunks={})
.cf.add_bounds(["lat", "lon"])
.xvec.bounds_to_shapely(["lat_bounds", "lon_bounds"])
)
That would require xvec to broadcast or stack lat and lon, so we might also require doing that first (but ideally, we'd support 2D geometry variables):
ds = (
xr.tutorial.open_dataset("air_temperature", chunks={})
.cf.add_bounds(["lat", "lon"])
.stack(cells=["lat", "lon"])
.xvec.bounds_to_shapely(["lat_bounds", "lon_bounds"])
)
- Ngôn ngữ chính
- Python
- Star
- 139
- Fork
- 14
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xarray-contrib/xvec
-
CI
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
xarray-contrib/xvec#145 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
xarray-contrib/xvec#141 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
xarray-contrib/xvec#129 · 1 bình luận ·
-
update fixtures in future Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
xarray-contrib/xvec#113 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xarray-contrib/xvec#100 ·
Tất cả issue của xarray-contrib/xvec
Issue tương tự
-
agent-ready documentation needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Add https://search.jeremyh.xyz/ Đang mởinstance instance add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
searxng/searx-instances#939 · 1 bình luận ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100