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_rasterioinside the read environment.- Parameters:
url – Local path,
https://URL orzip+https://…!/memberpath.aoi – When given and
clip=Truethe raster is clipped (rio.clip_box) to the AOI bounds;clip=Falsereturns 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
banddimension.