coincident.io.xarray.to_dataset#
- coincident.io.xarray.to_dataset(gf, bands=None, aoi=None, mask=False, **kwargs)[source]#
Convert a GeoDataFrame to an xarray DataArray using odc.stac
- Parameters:
gf (
GeoDataFrame) – The GeoDataFrame containing the geospatial data.aoi (
GeoDataFrame|None) – GeoDataFrame containing area of interest (e.g. search polygon)bands (
list[str] |None) – The asset keys to extract from the STAC items, by default [“data”].mask (
bool) – Whether to clip the resulting Dataset to the AOI geometry extent.kwargs (
Any) – Additional keyword arguments passed to odc.stac.load.
- Return type:
- Returns:
The resulting stacked xarray Dataset backed by dask arrays