pywasp.lincom.roughness_to_landmask
- pywasp.lincom.roughness_to_landmask(lc_map, lctable)[source]
Convert a roughness map to a landmask map
All classes with z0 = 0.0 will be converted to water (0) points, while all other roughness lengths will be considered land.
Warning
This function is experimental and its signature may change.
- Parameters:
lc_map (
xarray.DataArray) – Landcover raster maplctable (
LandCoverTable) – Map from LandCoverID to roughnesses
- Returns:
raster_mask (
pw.RasterMap) – RasterMap of water (0) and land (1) maskvector_mask (
pw.VectorMap) – VectorMap of water (0) and land (1) mask