hydromt_wflow.WflowSbmModel.setup_subbasins#
- WflowSbmModel.setup_subbasins(method: str, threshold: int, output_name: str | None = None, add_outlets_map: bool = False)#
Create a subbasin map based on the specified method and threshold.
The subbasin map is derived using the selected method:
‘streamorder’: creates subbasins at all confluences where each branch has a minimal stream order
‘pfafstetter’: creates subbasins with the hierarchical pfafstetter coding system.
‘area’: creates subbasins with a minimal area [km2].
To also save Wflow output for the subbasins, use the
setup_config_output_timeseries()method after this step.Adds model layer:
output_name map: output subbasins map
output_name geom: output subbasins polygons
output_name_outlets map (optional): output subbasins outlets map
output_name_outlets geom (optional): output subbasins outlets points
Required setup methods:
- Parameters:
method (str) – Method to derive subbasins. One of [‘streamorder’, ‘pfafstetter’, ‘area’].
threshold (int) – Threshold value for the selected method. For ‘streamorder’, minimum Strahler order of the streams to delineate subbasins. For ‘pfafstetter’, the Pfafstetter level to delineate subbasins. For ‘area’, the minimum upstream area [km2] to delineate subbasins.
output_name (str, optional) – The name of the output map. If None (default), the name will be set to the name of subbasins_{method}_{threshold}.
add_outlets_map (bool, optional) – If True, also derive an outlets map for the subbasins, by default False.
See also
workflows.subbasin_map