easysnowdata.providers.stac.load#

easysnowdata.providers.stac.load(items: Any, aoi: Any = None, *, bands: str | Sequence[str] | None = None, resolution: float | None = None, crs: Any = None, chunks: dict[str, Any] | None = None, groupby: str | None = 'time', stac_cfg: dict[str, Any] | None = None, catalog: str | None = None, requires: Iterable[str] = (), **kwargs: Any) Any[source]#

Lazily load STAC items into an xarray.Dataset with odc-stac.

Parameters:
  • items – A pystac.ItemCollection, list of items, ItemSearch or a GeoDataFrame from items_to_geodataframe() (filtered as you like).

  • aoi – Spatial subset. With clip=True (default) the grid is cut to the footprint (geopolygon); with clip=False the covering tiles are returned whole.

  • bands – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • resolution – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • crs – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • chunks – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • groupby – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • stac_cfg – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • **kwargs – Passed to odc.stac.load. crs="utm" picks the AOI’s UTM zone; chunks defaults to {} (Dask, native chunking).

  • catalog – Which catalog the items came from (sets signing/GDAL options) and any extra auth providers whose env() the reads need.

  • requires – Which catalog the items came from (sets signing/GDAL options) and any extra auth providers whose env() the reads need.