get_window(ds: Union[str, tuple, 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


Rasterio window

Return type: