- read(path: Union[str, CloudPath, Path], resolution: Optional[Union[tuple, list, float]] = None, size: Optional[Union[list, tuple]] = None, resampling: Resampling = Resampling.nearest, masked: bool = True, indexes: Optional[Union[int, list]] = None, **kwargs) DataArray #
sertit.rasters.read()managing DASK in EOReader’s way.
>>> raster_path = "path/to/raster.tif" >>> xds1 = read(raster_path) >>> # or >>> with rasterio.open(raster_path) as dst: >>> xds2 = read(dst) >>> xds1 == xds2 True
path (Union[str, CloudPath, Path]) – Path to the raster
resampling (Resampling) – Resampling method
masked (bool) – Get a masked array
**kwargs – Optional keyword arguments to pass into rioxarray.open_rasterio().
Masked xarray corresponding to the raster data and its metadata
- Return type: