hydromt_delwaq.workflows.geometry.compute_geometry#
- hydromt_delwaq.workflows.geometry.compute_geometry(ds: Dataset, mask: DataArray, fpaved_name: str = 'soil_compacted_fraction', fopenwater_name: str = 'land_water_fraction') ndarray[source]#
Compute geometry data for demission.
- Parameters:
ds (xr.Dataset) –
Dataset containing the geometry data.
Required variables: fraction of paved area “soil_compacted_fraction”, fraction of open water “land_water_fraction”
mask (xr.DataArray) – Mask to select the active cells (segments) in ds.
fpaved_name (str) – Name of the variable in ds representing the fraction of paved area. By default ‘soil_compacted_fraction’.
fopenwater_name (str) – Name of the variable in ds representing the fraction of open water area. By default ‘land_water_fraction’.
- Returns:
geometry – Array containing the geometry data.
- Return type:
np.ndarray