hydromt_wflow.workflows.surfacewaterfrac_used#

hydromt_wflow.workflows.surfacewaterfrac_used(gwfrac_raw: DataArray, da_like: DataArray, waterareas: DataArray, gwbodies: DataArray | None = None, ncfrac: DataArray | None = None, interpolate: bool = False, mask_and_scale_gwfrac: bool = True) DataArray[source]#

Create surface water fraction map.

Parameters:
  • gwfrac_raw (xr.DataArray) – Raw groundwater fraction data map.

  • da_like (xr.DataArray) – Wflow model like grid.

  • waterareas (xr.DataArray) – Water source areas.

  • gwbodies (xr.DataArray, optional) – Groundwater bodies map. Either 0 or 1. If None, assumes 1.

  • ncfrac (xr.DataArray, optional) – Non-conventional water fraction. If None, assumes 0.

  • interpolate (bool) – Interpolate missing data values within wflow model domain.

  • mask_and_scale_gwfrac (bool, optional) – If True, gwfrac will be masked for areas with no groundwater bodies. To keep the average gwfrac used over waterareas similar after the masking, gwfrac for areas with groundwater bodies can increase. If False, gwfrac will be used as is. By default True.

Returns:

Surface water fraction.

Return type:

xr.DataArray