lusos.LassoGrid.from_raster#

classmethod LassoGrid.from_raster(raster: str | Path, bbox: tuple = None)[source]#

Initialize a LassoGrid instance from a raster file.

Parameters:
  • raster (str | Path) – Path to the raster file to base the grid extent on.

  • bbox (tuple, optional) – Tuple (xmin, ymin, xmax, ymax) to return a LassoGrid for a selected area.