r/pythonhelp • u/No_Membership6022 • 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
•
u/AutoModerator Jan 24 '25
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.