get_window

Contents

get_window#

get_window(ds: str | tuple | DatasetReader, window: Any)[source]#

Get a window from any type of input

Parameters:
  • ds (PATH_ARR_DS) – Path to the raster, its dataset, its xarray or a tuple containing its array and metadata

  • window (Any) – 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.

Returns:

Rasterio window

Return type:

Window