Skip to content

store.open_data results in KeyError: 'grid:code' #46

@jzvolensky

Description

@jzvolensky

Hello everyone,

I have encountered an issue when trying to load some of the new eopf Zarr products required for the water level monitoring notebook here EOPF-Sample-Service/eopf-sample-notebooks#164

Using xcube_eopf 0.3.0

The query results in KeyError: 'grid:code' and I was wondering why this is the case.

Here is sample code to reproduce the issue:

from xcube.core.store import new_data_store
from xcube_eopf.utils import reproject_bbox

store = new_data_store("eopf-zarr")

bbox=[11.003288060439315, 46.34055268553584, 11.10369555555596, 46.40183319621778]
crs_utm = "EPSG:32632"
bbox_utm = reproject_bbox(bbox, "EPSG:4326", crs_utm)
ds = store.open_data(
    data_id="sentinel-2-l2a",
    bbox=bbox_utm,
    time_range=["2020-12-31", "2024-01-01"],
    spatial_res=10,
    crs=crs_utm,
    variables=[
        "b04",
        "b03",
        "b02",
        "b08",
    ],  
)

print(ds)

Thank you for your help!

CC @clausmichele @konstntokas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions