get_window
get_window#
- get_window(ds: Union[str, tuple, rasterio.io.DatasetReader], window: Any)[source]#
Get a window from any type of input :param ds: Path to the raster, its dataset, its
xarray
or a tuple containing its array and metadata :type ds: PATH_ARR_DS :param window: Anything that can be returned as a window. In case of iterable, assumption is made it’s geographic bounds. For pixel, please provide a Window directly. :type window: Any- Returns
Rasterio window
- Return type
Window