easysnowdata.providers.raster_http.open#

easysnowdata.providers.raster_http.open(url: str | Path, aoi: Any = None, *, chunks: Any = True, mask_and_scale: bool = False, requires: tuple[str, ...] = (), gdal: dict[str, Any] | None = None, squeeze: bool = True, **kwargs: Any) Any[source]#

Open a raster with rioxarray.open_rasterio inside the read environment.

Parameters:
  • url – Local path, https:// URL or zip+https://…!/member path.

  • aoi – When given and clip=True the raster is clipped (rio.clip_box) to the AOI bounds; clip=False returns the whole raster.

  • chunks – Passed to rioxarray.open_rasterio (chunks=True → Dask).

  • mask_and_scale – Passed to rioxarray.open_rasterio (chunks=True → Dask).

  • **kwargs – Passed to rioxarray.open_rasterio (chunks=True → Dask).

  • requires – Auth providers whose env() the read needs, and extra GDAL options.

  • gdal – Auth providers whose env() the read needs, and extra GDAL options.

  • squeeze – Drop the length-one band dimension.