lusos.bgt_soilmap_coverage#
- lusos.bgt_soilmap_coverage(bgt: GeoDataFrame, soilmap: GeoDataFrame, grid: LassoGrid) DataArray [source]#
Calculate per cell in a grid for each combination of BGT and Soil Map polygons what percentage of a cell is covered by the combination. This returns a 3D DataArray with dimensions (‘y’, ‘x’, ‘layer’) where the dimension ‘layer’ contains ordered BGT-Soilmap layer combinations.
- Parameters:
grid (
LassoGrid
) – LassoGrid instance containing the raster grid to calculate the percentages for.bgt (gpd.GeoDataFrame) – GeoDataFrame containing the BGT data polygons.
soilmap (gpd.GeoDataFrame) – GeoDataFrame containing the BGT data polygons.
- Returns:
3D DataArray with the areal percentages.
- Return type:
xr.DataArray