-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
We've noticed that when using odc-stac
with e.g.
query = stac_client.search(collections=["sentinel-2-l2a"],
bbox=wgs_bbox, datetime=[start_time, end_time],
limit=20)
items = query.item_collection()
stack = stac_load(items, bands=bands,
resolution=resolution, crs=f"EPSG:{epsg}", groupby="solar_day",
bbox=wgs_bbox, chunks={"x": -1, "y": -1}, stac_cfg=STAC_CFG,
fail_on_error=fail_on_errors)
We end up getting a slightly larger bounding box then the original bounding box (after converting from WGS to the desired CRS).
I wonder if this is intentional, and/or if there are explicit buffers in how STAC works? Or is it simply due to inaccuracies in WGS84 vs local projection?
When we later stitch several geotiffs together, this is not a particular concern, since the pixels overlap anyway and their values are identical. But when we ingest this data to an indexed database, we end up with duplicate errors that need to be handled 🤔
Metadata
Metadata
Assignees
Labels
No labels