lusos.LassoGrid#

class lusos.LassoGrid(*args)[source]#

Containing definition of LASSO grid (25x25 m resolution?). This is the basic grid all the calculations will be performed in and the results will be generated for.

Parameters:
  • xmin (int | float) – Bounding box coordinates of the LASSO grid.

  • ymin (int | float) – Bounding box coordinates of the LASSO grid.

  • xmax (int | float) – Bounding box coordinates of the LASSO grid.

  • ymax (int | float) – Bounding box coordinates of the LASSO grid.

  • xsize (int) – Cellsize in x- and y-direction of the LASSO grid.

  • ysize (int) – Cellsize in x- and y-direction of the LASSO grid.

  • crs (str | int | CRS) – EPSG of the target crs. Takes anything that can be interpreted by pyproj.crs.CRS.from_user_input().

__init__(xmin: int | float, ymin: int | float, xmax: int | float, ymax: int | float, xsize: int, ysize: int, crs: str | int | CRS = 28992)[source]#

Methods

__init__(xmin, ymin, xmax, ymax, xsize, ysize)

dataarray([fill_value])

Return a 2D DataArray filled with a single value with the full extent of the LASSO grid.

empty_array(layer_coords[, dask, chunksize])

Create an empty 3D DataArray within the extent of the LASSO grid.

from_dataarray(da)

from_raster(raster[, bbox])

Initialize a LassoGrid instance from a raster file.

xcoordinates()

Return an array of increasing x-coordinates of the LASSO grid.

ycoordinates()

Return an array of decreasing y-coordinates of the LASSO grid.

Attributes