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

Further decouple CubeMetadata from CollectionMetadata, and properly apply spatio-temporal filtering

Đang mở
#949 3 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

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

Từ ngày 6/10/2026.

  • #950 của @soxofaan — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, data

Hướng nghiên cứu

Start from how load_collection and load_stac attach metadata to a cube, and how CubeMetadata versus CollectionMetadata currently relate (including the inheritance CollectionMetadata(CubeMetadata)). Trace why cube.metadata still exposes full collection extents and bands in visualization while band_dimension already filters. Done means cubes get CubeMetadata as soon as possible so extents and default visualization match the loaded slice, without CollectionMetadata remaining sticky.

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

Mô tả

supporting issue for #827 and related

PR #541 (for issue #464) introduced CubeMetadata as a less confusing alternative to CollectionMetadata, to focus on the concrete metadata of a cube, instead of overall metadata of a whole collection.
But we're not there yet: CollectionMetadata is still too sticky/dominant.

for example:

cube = connection.load_collection(
    "SENTINEL2_L2A",
    spatial_extent={"west": 3, "south": 51, "east": 3.1, "north": 51.1},
    temporal_extent="2026-09",
    bands=["B03"]
)

While cube is a tiny slice of the whole SENTINEL2_L2A data set, cube.metadata still point directly to SENTINEL2_L2A metadata, e.g. visualizing cube.metadata will show the full metadata of SENTINEL2_L2A: all bands, whole world, whole time converage.

e.g.

>>> cube.metadata.temporal_dimension.extent
['2015-06-27T10:25:31Z', None]
>>> cube.metadata.spatial_dimensions[0].extent
[-180, 180]

Band handling works better however: cube.metadata.band_dimension.band_names shows just the selected band ['B03'], but the default visualization of the whole metadata object will show all bands

Next steps: further decouple CubeMetadata and CollectionMetadata

  • at least: load_collection and load_stac should zone in on CubeMetadata as soon as possible, instead of confusingly still attaching CollectionMetadata
  • possible/necessary to eliminate the inheritance relation (class CollectionMetadata(CubeMetadata))?
Ngôn ngữ chính
Python
Star
219
Fork
58
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
10

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Open-EO/openeo-python-client

Tất cả issue của Open-EO/openeo-python-client

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.