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

Respecting cube dimension metadata can cause unexpected missing 'bands' dimension

Đang mở
#959 3 bình luận 0 reaction 1 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 21/10/2026.

Đánh giá

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

Mô tả

bug STAC and load_stac

See:
https://forum.dataspace.copernicus.eu/t/cannot-access-gfm-band/5639

Loading a collection with this cube metadata:

"cube:dimensions": {
    "x": {
      "axis": "x",
      "type": "spatial",
      "extent": [
        -180,
        180
      ]
    },
    "y": {
      "axis": "y",
      "type": "spatial",
      "extent": [
        -90,
        90
      ]
    },
    "time": {
      "type": "temporal",
      "extent": [
        "2015-01-01T00:00:00Z",
        null
      ]
    }
  },

Contradicting with item_assets metadata, from which we can clearly derive that there's multiple data assets, and thus multiple 'bands':

"item_assets": {
   "advisory_flags": {
     "type": "image/tiff; application=geotiff; profile=cloud-optimized",
     "roles": [
       "data"
     ],
     "title": "GFM Advisory Flags",
     "description": "GFM Advisory Flags"
   },
   "dlr_likelihood": {
     "type": "image/tiff; application=geotiff; profile=cloud-optimized",
     "roles": [
       "data"
     ],
     "title": "GFM Likelihood (Intermediate output - DLR algorithm)",
     "description": "GFM Likelihood (Intermediate output - DLR algorithm)"
   },
   "exclusion_mask": {
     "type": "image/tiff; application=geotiff; profile=cloud-optimized",
     "roles": [
       "data"
     ],
     "title": "GFM Exclusion Mask (Final output - Ensemble algorithm)",
     "description": "GFM Exclusion Mask (Final output - Ensemble algorithm)"
   },
   "tuw_likelihood": {
     "type": "image/tiff; application=geotiff; profile=cloud-optimized",
     "roles": [
       "data"
     ],
     "title": "GFM Uncertainties (Intermediate output - TUW algorithm)",
     "description": "GFM Uncertainties (Intermediate output - TUW algorithm)"
   },

This is caused by this recently merged PR:
https://github.com/Open-EO/openeo-python-client/pull/867
@suriyahgit @clausmichele : in general, even if you could argue that the metadata is 'wrong', it would be better if the python client is smart enough to detect such contradictions, and avoid breaking. Is a short term solution possible?

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

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.