Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#959 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@soxofaan ci sta già lavorando.

Dal 21/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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?

Lingua principale
Python
Stelle
219
Fork
58
Merge medio
1g 2h
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Open-EO/openeo-python-client

Tutte le issue di Open-EO/openeo-python-client

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.