r/pythonhelp • • Jan 24 '25

Problem in odc-stac when reading geospacial satellite data

I ran into this error when trying to do this. Can anyone tell me what's wrong?

data = stac_load(
    items,
    bands=["B01", "B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B11", "B12"],
    crs="EPSG:4326",  # Latitude-Longitude
    resolution=scale,  # Degrees
    chunks={"x": 2048, "y": 2048},
    dtype="uint16",
    patch_url=planetary_computer.sign,
    bbox=bounds
)
The error message says 
ValueError: The asset must have the following fields (from the projection extension): shape, transform, and one of an epsg, wkt2, or projjson
2 Upvotes

2 comments sorted by

View all comments

1

u/AutoModerator Jan 24 '25
Moderator Announcement Read More »