[geographic]#
Geographic configuration for watershed delineation.
geographic[table] · required in every file · 43 user keys, 10 dev or expert- Start a file:
hmp config template --modules geographic(download it), thenhmp check file.toml. Minimal file
# source_mode = "standard"Where the model domain comes from.
- Path
geographic.source_mode- More
'standard' delineates it from a DEM, an outlet or a polygon ([geographic.catchment]). 'synthetic' builds one analytical support from [geographic.synthetic].
- Values
"standard""synthetic"
- Accepted
- "standard" | "synthetic"
# crs_project = ‹string›Target projected CRS for all outputs (e.g. 'EPSG:2154').
- Path
geographic.crs_project- More
If not set, derived from the input DEM.
- Accepted
- string
# dem_correc_type = "fill"How the DEM is conditioned before the catchment is delineated.
- Path
geographic.dem_correc_type- More
'fill' (default) only raises cells: each closed depression is raised to its spill level, then a small gradient on the flats lets every cell drain. 'breach' mostly lowers cells: it carves a path through the barrier that closes a depression, after raising single-cell pits to their lowest neighbour, with no limit on length or depth and no fill afterwards (least-cost breaching, Lindsay 2016); it changes far fewer cells than 'fill' and can dig deep. 'capped_breach' lowers and raises: it breaches only within the limits of [geographic.capped_breach] (a maximum cumulative lowering and a maximum length, in metres), then fills every depression the limits refused (the hybrid of Lindsay 2016). The depth limit is a sum over the cells of a path, so it does not give the same landscape at every grid resolution. 'fill' is the default because it is the tool of the paper behind the network criterion (FillDepressions, Abherve et al. 2023), and the criterion itself fills the model top on the mesh by a priority flood: one conditioning rule from the DEM to the score. A DEM declared state = "conditioned" on its [[data.dem.sources]] entry is already conditioned, so this key is ignored and the run records 'provided'.
- Values
"breach""fill""capped_breach"
- Accepted
- "breach" | "fill" | "capped_breach"
# terrain_engine = ‹string›Flow-routing engine that conditions the DEM and delineates the catchment.
- Path
geographic.terrain_engine- More
Unset uses the engine this build defaults to. A string and not an enumeration: the values that resolve depend on what is installed beside HydroModPy, which is how a third-party engine is named without a patch.
- Accepted
- string
# domain_extent = "box"Selects the DEM surface used for the domain. experimental
- Path
geographic.domain_extent- More
'box' (default) keeps the full buffered rectangular support. 'watershed' / 'watershed_buff' select the catchment (optionally with a buffer ring) surface. Note: the MODFLOW 6 mesh still covers the buffered box (the buffer stays active for inter-basin exchange); out-of-watershed drainage is kept out of the catchment discharge by the DRN watershed-routing, not by an idomain mask.
- Values
"box""watershed_buff""watershed"
- Accepted
- "box" | "watershed_buff" | "watershed"
# write_intermediates = falseKeep intermediate rasters and shapefiles on disk after geographic preprocessing. dev
- Path
geographic.write_intermediates- More
When false (default), .hmp/scratch/<run>/_preprocessing/ is removed after ingestion into the run field store.
- Accepted
- true | false
[geographic] # source_mode = "standard" # crs_project = <string> # dem_correc_type = "fill" # terrain_engine = <string> # domain_extent = "box"
geographic.source_mode source_mode “standard” standard synthetic Where the model domain comes from. ‘standard’ delineates it from a DEM, an outlet or a polygon ([geographic.catchment]). ‘synthetic’ builds one analytical support from [geographic.synthetic]. geographic.crs_project crs_project not set Target projected CRS for all outputs (e.g. ‘EPSG:2154’). If not set, derived from the input DEM. geographic.dem_correc_type dem_correc_type “fill” breach fill capped_breach How the DEM is conditioned before the catchment is delineated. ‘fill’ (default) only raises cells: each closed depression is raised to its spill level, then a small gradient on the flats lets every cell drain. ‘breach’ mostly lowers cells: it carves a path through the barrier that closes a depression, after raising single-cell pits to their lowest neighbour, with no limit on length or depth and no fill afterwards (least-cost breaching, Lindsay 2016); it changes far fewer cells than ‘fill’ and can dig deep. ‘capped_breach’ lowers and raises: it breaches only within the limits of [geographic.capped_breach] (a maximum cumulative lowering and a maximum length, in metres), then fills every depression the limits refused (the hybrid of Lindsay 2016). The depth limit is a sum over the cells of a path, so it does not give the same landscape at every grid resolution. ‘fill’ is the default because it is the tool of the paper behind the network criterion (FillDepressions, Abherve et al. 2023), and the criterion itself fills the model top on the mesh by a priority flood: one conditioning rule from the DEM to the score. A DEM declared state = “conditioned” on its [[data.dem.sources]] entry is already conditioned, so this key is ignored and the run records ‘provided’. geographic.terrain_engine terrain_engine not set Flow-routing engine that conditions the DEM and delineates the catchment. Unset uses the engine this build defaults to. A string and not an enumeration: the values that resolve depend on what is installed beside HydroModPy, which is how a third-party engine is named without a patch. geographic.domain_extent domain_extent “box” box watershed_buff watershed Selects the DEM surface used for the domain. ‘box’ (default) keeps the full buffered rectangular support. ‘watershed’ / ‘watershed_buff’ select the catchment (optionally with a buffer ring) surface. Note: the MODFLOW 6 mesh still covers the buffered box (the buffer stays active for inter-basin exchange); out-of-watershed drainage is kept out of the catchment discharge by the DRN watershed-routing, not by an idomain mask. geographic.write_intermediates write_intermediates false Keep intermediate rasters and shapefiles on disk after geographic preprocessing. When false (default), .hmp/scratch/<run>/_preprocessing/ is removed after ingestion into the run field store.
[geographic.catchment]#
How the model domain is defined.
Connections found in the code (2)
- The code says
data.dem:[data.dem] source ... downloads a DEM and has no data folder to put it in. Run it from a workspace or a project, whose data/ folder holds the cache.
- The code says
geographic.crossings.path:A crossings API source can only feed the notch when geographic.catchment.x_outlet / y_outlet are declared, since the watershed that would otherwise give the download box is not delineated yet. Declare geographic.crossings.path explicitly instead.
kind selects the shape of this table. One tab per shape, the default first.
kind = "dem"Model domain defined directly from a DEM raster. chosen shape
- Path
geographic.catchment.kind- Values
"dem": Model domain defined directly from a DEM raster."txt": Model domain defined from an XYZ text grid plus a cell size."from_outlet_coord": Watershed delineated from an outlet coordinate."from_polyg_shp": Watershed delineated from a polygon shapefile.
- Accepted
- "dem" | "txt" | "from_outlet_coord" | "from_polyg_shp"
# dem_resolution = "75 m"Cell size the DEM is aggregated to before anything is delineated, a length ('75 m', a bare number in metres). m example value
- Path
geographic.catchment.dem_resolution- More
The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM's own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Example
"75 m"
[geographic.catchment] kind = "dem" # dem_resolution = "75 m"
geographic.catchment.dem_resolution dem_resolution not set “75 m” m Cell size the DEM is aggregated to before anything is delineated, a length (‘75 m’, a bare number in metres). The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM’s own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run. geographic.catchment.kind kind “dem” dem txt from_outlet_coord from_polyg_shp dem Model domain defined directly from a DEM raster. txt Model domain defined from an XYZ text grid plus a cell size. from_outlet_coord Watershed delineated from an outlet coordinate. from_polyg_shp Watershed delineated from a polygon shapefile. Catchment defined by the DEM raster extent.
kind = "txt"Model domain defined from an XYZ text grid plus a cell size. chosen shape
- Path
geographic.catchment.kind- Values
"dem": Model domain defined directly from a DEM raster."txt": Model domain defined from an XYZ text grid plus a cell size."from_outlet_coord": Watershed delineated from an outlet coordinate."from_polyg_shp": Watershed delineated from a polygon shapefile.
- Accepted
- "dem" | "txt" | "from_outlet_coord" | "from_polyg_shp"
cell_size = "25 m"Grid cell size in metres used to rasterise the XYZ point cloud. required m > 0 example value
- Path
geographic.catchment.cell_size- More
Accepts inline units (e.g. '25 m', '0.025 km').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
- Example
"25 m"- Only if
- kind = "txt"
# dem_resolution = "75 m"Cell size the DEM is aggregated to before anything is delineated, a length ('75 m', a bare number in metres). m example value
- Path
geographic.catchment.dem_resolution- More
The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM's own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Example
"75 m"
[geographic.catchment] kind = "txt" cell_size = "25 m" # dem_resolution = "75 m"
geographic.catchment.dem_resolution dem_resolution not set “75 m” m Cell size the DEM is aggregated to before anything is delineated, a length (‘75 m’, a bare number in metres). The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM’s own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run. geographic.catchment.kind kind “dem” dem txt from_outlet_coord from_polyg_shp dem Model domain defined directly from a DEM raster. txt Model domain defined from an XYZ text grid plus a cell size. from_outlet_coord Watershed delineated from an outlet coordinate. from_polyg_shp Watershed delineated from a polygon shapefile. Catchment defined by the DEM raster extent. geographic.catchment.cell_size cell_size “25 m” m Grid cell size in metres used to rasterise the XYZ point cloud. Accepts inline units (e.g. ‘25 m’, ‘0.025 km’).
kind = "from_outlet_coord"Watershed delineated from an outlet coordinate. chosen shape
- Path
geographic.catchment.kind- Values
"dem": Model domain defined directly from a DEM raster."txt": Model domain defined from an XYZ text grid plus a cell size."from_outlet_coord": Watershed delineated from an outlet coordinate."from_polyg_shp": Watershed delineated from a polygon shapefile.
- Accepted
- "dem" | "txt" | "from_outlet_coord" | "from_polyg_shp"
x_outlet = 352400.0Easting of the watershed outlet in the projected CRS of the project, in meters. required m varies by site example value
- Path
geographic.catchment.x_outlet- Accepted
- number
- Unit
- m
- Example
352400.0- Only if
- kind = "from_outlet_coord"
- Varies by site
- yes: in a project of many sites, bind it to a column with
sites.bindor set it in a per-site overlay; a literal value is refused
y_outlet = 6788300.0Northing of the watershed outlet in the projected CRS of the project, in meters. required m varies by site example value
- Path
geographic.catchment.y_outlet- Accepted
- number
- Unit
- m
- Example
6788300.0- Only if
- kind = "from_outlet_coord"
- Varies by site
- yes: in a project of many sites, bind it to a column with
sites.bindor set it in a per-site overlay; a literal value is refused
snap_dist = "150 m"Width (metres) of the square window the outlet is moved inside, centred on the declared coordinate. required m > 0 example value
- Path
geographic.catchment.snap_dist- More
Not a maximum displacement: the window reaches floor(snap_dist / (2 * cell size)) cells on each side, so a value equal to the cell size moves nothing, and 150 m on a 25 m grid reaches 3 cells, 75 m. snap_method says where the outlet lands in the window. Accepts inline units (e.g. 50, '50 m', '0.05 km').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
- Example
"150 m"- Only if
- kind = "from_outlet_coord"
buff_area = "10%"Margin around the watershed polygon. required example value
- Path
geographic.catchment.buff_area- More
A percentage ('10%') enlarges the catchment AREA by that share, the rule of Abherve et al. (2023): the distance is solved on the real polygon, then snapped to the DEM grid. A length ('500 m', '2 km') is an explicit distance, snapped to the DEM grid like the percentage. '10% of sqrt(area)' is the rule of version 1 written out, 10 per cent of the square root of the catchment area, about 50 per cent more area on a real catchment. A bare number (5) still reads as that rule, so a sealed run replays its domain; the explicit form with the same distance says the same thing.
- Accepted
- number or string
- Example
"10%"- Only if
- kind = "from_outlet_coord" | "from_polyg_shp"
# dem_resolution = "75 m"Cell size the DEM is aggregated to before anything is delineated, a length ('75 m', a bare number in metres). m example value
- Path
geographic.catchment.dem_resolution- More
The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM's own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Example
"75 m"
# snap_method = "window"Where the outlet lands inside the window of snap_dist.
- Path
geographic.catchment.snap_method- More
'window' (default) takes the cell with the largest flow accumulation, so it can land on a larger stream that lies in the window beside the one the outlet was declared on. 'jenson' takes the nearest cell of the stream network drawn from the DEM (Jenson and Domingue 1988, as used by Lindsay, Rothwell and Davies 2008), so it stays on the nearest stream, and it refuses an outlet with no stream cell in its window. The network is the cells that drain more than the threshold of [geographic.river_network] (threshold_area_km2 in km^2, or threshold_cells), which 'jenson' needs even when that section is not enabled. It is computed from the DEM: no observed network is read.
- Values
"window""jenson"
- Accepted
- "window" | "jenson"
- Only if
- kind = "from_outlet_coord"
[geographic.catchment] kind = "from_outlet_coord" x_outlet = 352400.0 y_outlet = 6788300.0 snap_dist = "150 m" buff_area = "10%" # dem_resolution = "75 m" # snap_method = "window"
geographic.catchment.dem_resolution dem_resolution not set “75 m” m Cell size the DEM is aggregated to before anything is delineated, a length (‘75 m’, a bare number in metres). The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM’s own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run. geographic.catchment.kind kind “dem” dem txt from_outlet_coord from_polyg_shp dem Model domain defined directly from a DEM raster. txt Model domain defined from an XYZ text grid plus a cell size. from_outlet_coord Watershed delineated from an outlet coordinate. from_polyg_shp Watershed delineated from a polygon shapefile. Catchment defined by the DEM raster extent. geographic.catchment.x_outlet x_outlet 352400.0 m Easting of the watershed outlet in the projected CRS of the project, in meters. geographic.catchment.y_outlet y_outlet 6788300.0 m Northing of the watershed outlet in the projected CRS of the project, in meters. geographic.catchment.snap_dist snap_dist “150 m” m Width (metres) of the square window the outlet is moved inside, centred on the declared coordinate. Not a maximum displacement: the window reaches floor(snap_dist / (2 * cell size)) cells on each side, so a value equal to the cell size moves nothing, and 150 m on a 25 m grid reaches 3 cells, 75 m. snap_method says where the outlet lands in the window. Accepts inline units (e.g. 50, ‘50 m’, ‘0.05 km’). geographic.catchment.snap_method snap_method “window” window jenson Where the outlet lands inside the window of snap_dist. ‘window’ (default) takes the cell with the largest flow accumulation, so it can land on a larger stream that lies in the window beside the one the outlet was declared on. ‘jenson’ takes the nearest cell of the stream network drawn from the DEM (Jenson and Domingue 1988, as used by Lindsay, Rothwell and Davies 2008), so it stays on the nearest stream, and it refuses an outlet with no stream cell in its window. The network is the cells that drain more than the threshold of [geographic.river_network] (threshold_area_km2 in km^2, or threshold_cells), which ‘jenson’ needs even when that section is not enabled. It is computed from the DEM: no observed network is read. geographic.catchment.buff_area buff_area “10%” Margin around the watershed polygon. A percentage (‘10%’) enlarges the catchment AREA by that share, the rule of Abherve et al. (2023): the distance is solved on the real polygon, then snapped to the DEM grid. A length (‘500 m’, ‘2 km’) is an explicit distance, snapped to the DEM grid like the percentage. ‘10% of sqrt(area)’ is the rule of version 1 written out, 10 per cent of the square root of the catchment area, about 50 per cent more area on a real catchment. A bare number (5) still reads as that rule, so a sealed run replays its domain; the explicit form with the same distance says the same thing.
kind = "from_polyg_shp"Watershed delineated from a polygon shapefile. chosen shape
- Path
geographic.catchment.kind- Values
"dem": Model domain defined directly from a DEM raster."txt": Model domain defined from an XYZ text grid plus a cell size."from_outlet_coord": Watershed delineated from an outlet coordinate."from_polyg_shp": Watershed delineated from a polygon shapefile.
- Accepted
- "dem" | "txt" | "from_outlet_coord" | "from_polyg_shp"
buff_area = "10%"Margin around the watershed polygon. required example value
- Path
geographic.catchment.buff_area- More
A percentage ('10%') enlarges the catchment AREA by that share, the rule of Abherve et al. (2023): the distance is solved on the real polygon, then snapped to the DEM grid. A length ('500 m', '2 km') is an explicit distance, snapped to the DEM grid like the percentage. '10% of sqrt(area)' is the rule of version 1 written out, 10 per cent of the square root of the catchment area, about 50 per cent more area on a real catchment. A bare number (5) still reads as that rule, so a sealed run replays its domain; the explicit form with the same distance says the same thing.
- Accepted
- number or string
- Example
"10%"- Only if
- kind = "from_outlet_coord" | "from_polyg_shp"
polyg_shp_path = "watershed.shp"Path to the watershed polygon shapefile. required varies by site example value
- Path
geographic.catchment.polyg_shp_path- Accepted
- path
- Example
"watershed.shp"- Only if
- kind = "from_polyg_shp"
- Varies by site
- yes: in a project of many sites, bind it to a column with
sites.bindor set it in a per-site overlay; a literal value is refused - Workspace file
workspace:<name>readsdata/watershed_polygon/<name>of the workspace, andworkspace:.the folder itself
# dem_resolution = "75 m"Cell size the DEM is aggregated to before anything is delineated, a length ('75 m', a bare number in metres). m example value
- Path
geographic.catchment.dem_resolution- More
The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM's own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Example
"75 m"
[geographic.catchment] kind = "from_polyg_shp" buff_area = "10%" polyg_shp_path = "watershed.shp" # dem_resolution = "75 m"
geographic.catchment.dem_resolution dem_resolution not set “75 m” m Cell size the DEM is aggregated to before anything is delineated, a length (‘75 m’, a bare number in metres). The routing surface, the catchment, the mesh and the model top all take it. Unset keeps the pixel of the DEM file, which is what the mesh follows otherwise: 25 m for a BD ALTI download. Second of three sizes, each read from the one before: data.dem.sources.resolution_m says what a provider serves, this key what the run works on, and mesh.cell_size what the model solves on. Aggregation only: each coarse cell is the mean of the fine pixels it covers, nodata left out, on a grid aligned on the upper-left corner of the DEM; a value finer than the DEM’s own pixel is refused when the run starts. The DEM file is not changed, the aggregated copy lives in the geographic products of the run. geographic.catchment.kind kind “dem” dem txt from_outlet_coord from_polyg_shp dem Model domain defined directly from a DEM raster. txt Model domain defined from an XYZ text grid plus a cell size. from_outlet_coord Watershed delineated from an outlet coordinate. from_polyg_shp Watershed delineated from a polygon shapefile. Catchment defined by the DEM raster extent. geographic.catchment.buff_area buff_area “10%” Margin around the watershed polygon. A percentage (‘10%’) enlarges the catchment AREA by that share, the rule of Abherve et al. (2023): the distance is solved on the real polygon, then snapped to the DEM grid. A length (‘500 m’, ‘2 km’) is an explicit distance, snapped to the DEM grid like the percentage. ‘10% of sqrt(area)’ is the rule of version 1 written out, 10 per cent of the square root of the catchment area, about 50 per cent more area on a real catchment. A bare number (5) still reads as that rule, so a sealed run replays its domain; the explicit form with the same distance says the same thing. geographic.catchment.polyg_shp_path polyg_shp_path “watershed.shp” Path to the watershed polygon shapefile.
[geographic.capped_breach]#
Limits of the capped_breach DEM conditioning, in meters.
# max_depth = 0.5Largest cumulative lowering, in metres, of one breach path (the 'max_cost' of Whitebox): the lowering summed over the cells of the path, not the depth of one cell. m > 0
- Path
geographic.capped_breach.max_depth- More
With short paths the realised maximum lowering of a cell stays close to it. On a finer grid a thick embankment spreads the cost over more cells, so it is filled instead of dug: the same value does not give the same landscape at every resolution. A depression whose cheapest breach costs more is filled. Paths overlap, so the lowering of a cell can exceed it (0.56 m for a value of 0.5 m, on a 75 m grid). The realised depth is measured after the call, logged, and warned about when it exceeds this value. Accepts inline units (e.g. 0.5, '0.5 m').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# max_distance = 200.0Longest breach path, in metres. m > 0
- Path
geographic.capped_breach.max_distance- More
Translated to the DEM grid as ceil(max_distance / cell size) cells, at least one, and counted in cells along the path: a diagonal step counts one cell, so a diagonal breach can be up to 1.41 times longer than max_distance. A depression with no way out within this length is filled. Accepts inline units (e.g. 200, '0.2 km').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
[geographic.capped_breach] # max_depth = 0.5 # max_distance = 200.0
geographic.capped_breach.max_depth max_depth 0.5 m Largest cumulative lowering, in metres, of one breach path (the ‘max_cost’ of Whitebox): the lowering summed over the cells of the path, not the depth of one cell. With short paths the realised maximum lowering of a cell stays close to it. On a finer grid a thick embankment spreads the cost over more cells, so it is filled instead of dug: the same value does not give the same landscape at every resolution. A depression whose cheapest breach costs more is filled. Paths overlap, so the lowering of a cell can exceed it (0.56 m for a value of 0.5 m, on a 75 m grid). The realised depth is measured after the call, logged, and warned about when it exceeds this value. Accepts inline units (e.g. 0.5, ‘0.5 m’). geographic.capped_breach.max_distance max_distance 200.0 m Longest breach path, in metres. Translated to the DEM grid as ceil(max_distance / cell size) cells, at least one, and counted in cells along the path: a diagonal step counts one cell, so a diagonal breach can be up to 1.41 times longer than max_distance. A depression with no way out within this length is filled. Accepts inline units (e.g. 200, ‘0.2 km’).
[geographic.synthetic]#
Top-level config for one synthetic geographic build.
# case_id = "flat20"Identifier used by local case runners and outputs.
- Path
geographic.synthetic.case_id- Accepted
- string
[geographic.synthetic] # case_id = "flat20"
geographic.synthetic.case_id case_id “flat20” Identifier used by local case runners and outputs.
[geographic.synthetic.grid]#
Structured-grid support used to generate one synthetic DEM.
# length_x = 100.0Total domain length along x (meters). m > 0
- Path
geographic.synthetic.grid.length_x- More
Accepts inline units, e.g. '0.1 km'.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# length_y = 1.0Total domain length along y (meters). m > 0
- Path
geographic.synthetic.grid.length_y- More
Accepts inline units, e.g. '1 m'.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# nx = 100Number of grid cells along x, over length_x. - > 0
- Path
geographic.synthetic.grid.nx- Accepted
- integer
- Valid range
- > 0 (refused outside)
- Unit
- -
# ny = 1Number of grid cells along y, over length_y. - > 0
- Path
geographic.synthetic.grid.ny- More
1 makes a cross-section.
- Accepted
- integer
- Valid range
- > 0 (refused outside)
- Unit
- -
# xmin = 0.0Lower x coordinate of the support extent. dev
- Path
geographic.synthetic.grid.xmin- Accepted
- number
# ymin = 0.0Lower y coordinate of the support extent. dev
- Path
geographic.synthetic.grid.ymin- Accepted
- number
# crs = "EPSG:2154"Projected CRS attached to synthetic outputs. dev
- Path
geographic.synthetic.grid.crs- Accepted
- string
# nodata = -9999.0Nodata sentinel exported to raster artifacts. dev
- Path
geographic.synthetic.grid.nodata- Accepted
- number
[geographic.synthetic.grid] # length_x = 100.0 # length_y = 1.0 # nx = 100 # ny = 1
geographic.synthetic.grid.length_x length_x 100.0 m Total domain length along x (meters). Accepts inline units, e.g. ‘0.1 km’. geographic.synthetic.grid.length_y length_y 1.0 m Total domain length along y (meters). Accepts inline units, e.g. ‘1 m’. geographic.synthetic.grid.nx nx 100 - Number of grid cells along x, over length_x. geographic.synthetic.grid.ny ny 1 - Number of grid cells along y, over length_y. 1 makes a cross-section. geographic.synthetic.grid.xmin xmin 0.0 Lower x coordinate of the support extent. geographic.synthetic.grid.ymin ymin 0.0 Lower y coordinate of the support extent. geographic.synthetic.grid.crs crs “EPSG:2154” Projected CRS attached to synthetic outputs. geographic.synthetic.grid.nodata nodata -9999.0 Nodata sentinel exported to raster artifacts.
[geographic.synthetic.topography]#
Synthetic topography definition (shape, elevations, slope).
kind selects the shape of this table. One tab per shape, the default first.
kind = "flat"Constant-elevation analytical topography. chosen shape
- Path
geographic.synthetic.topography.kind- Values
"flat": Constant-elevation analytical topography."linear": Linear analytical topography rising from right to left."radial_island": Circular emerged island surrounded by submerged ocean cells.
- Accepted
- "flat" | "linear" | "radial_island"
# base_elevation = 20.0Elevation of the flat ground surface, in meters. m
- Path
geographic.synthetic.topography.base_elevation- Accepted
- number
- Unit
- m
[geographic.synthetic.topography] kind = "flat" # base_elevation = 20.0
geographic.synthetic.topography.kind kind “flat” flat linear radial_island flat Constant-elevation analytical topography. linear Linear analytical topography rising from right to left. radial_island Circular emerged island surrounded by submerged ocean cells. Analytical topography law: ‘flat’ keeps one constant elevation. geographic.synthetic.topography.base_elevation base_elevation 20.0 m Elevation of the flat ground surface, in meters.
kind = "linear"Linear analytical topography rising from right to left. chosen shape
- Path
geographic.synthetic.topography.kind- Values
"flat": Constant-elevation analytical topography."linear": Linear analytical topography rising from right to left."radial_island": Circular emerged island surrounded by submerged ocean cells.
- Accepted
- "flat" | "linear" | "radial_island"
# base_elevation = 20.0Elevation of the flat ground surface, in meters. m
- Path
geographic.synthetic.topography.base_elevation- Accepted
- number
- Unit
- m
# right_to_left_amplitude = 0.0Additional elevation reached on the left boundary relative to the right boundary. dev
- Path
geographic.synthetic.topography.right_to_left_amplitude- More
Positive values make the surface rise from right to left.
- Accepted
- number
- Only if
- kind = "linear"
[geographic.synthetic.topography] kind = "linear" # base_elevation = 20.0
geographic.synthetic.topography.kind kind “flat” flat linear radial_island flat Constant-elevation analytical topography. linear Linear analytical topography rising from right to left. radial_island Circular emerged island surrounded by submerged ocean cells. Analytical topography law: ‘flat’ keeps one constant elevation. geographic.synthetic.topography.base_elevation base_elevation 20.0 m Elevation of the flat ground surface, in meters. geographic.synthetic.topography.right_to_left_amplitude right_to_left_amplitude 0.0 Additional elevation reached on the left boundary relative to the right boundary. Positive values make the surface rise from right to left.
kind = "radial_island"Circular emerged island surrounded by submerged ocean cells. chosen shape
- Path
geographic.synthetic.topography.kind- Values
"flat": Constant-elevation analytical topography."linear": Linear analytical topography rising from right to left."radial_island": Circular emerged island surrounded by submerged ocean cells.
- Accepted
- "flat" | "linear" | "radial_island"
# base_elevation = 20.0Elevation of the flat ground surface, in meters. m
- Path
geographic.synthetic.topography.base_elevation- Accepted
- number
- Unit
- m
# island_radius = ‹number or "<n> m"›Circular shoreline radius (metres). m dev
- Path
geographic.synthetic.topography.island_radius- More
Defaults to 35% of the smallest domain length. Accepts inline units.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Only if
- kind = "radial_island"
# crest_elevation = 10.0Central island elevation (m). m dev
- Path
geographic.synthetic.topography.crest_elevation- More
The land surface decays nonlinearly to sea level at the shoreline.
- Accepted
- number
- Unit
- m
- Only if
- kind = "radial_island"
# center_x = ‹number or "<n> m"›Optional x coordinate (metres) of the island center. m dev
- Path
geographic.synthetic.topography.center_x- More
Defaults to the grid midpoint.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Only if
- kind = "radial_island"
# center_y = ‹number or "<n> m"›Optional y coordinate (metres) of the island center. m dev
- Path
geographic.synthetic.topography.center_y- More
Defaults to the grid midpoint.
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Unit
- m
- Only if
- kind = "radial_island"
[geographic.synthetic.topography] kind = "radial_island" # base_elevation = 20.0
geographic.synthetic.topography.kind kind “flat” flat linear radial_island flat Constant-elevation analytical topography. linear Linear analytical topography rising from right to left. radial_island Circular emerged island surrounded by submerged ocean cells. Analytical topography law: ‘flat’ keeps one constant elevation. geographic.synthetic.topography.base_elevation base_elevation 20.0 m Elevation of the flat ground surface, in meters. geographic.synthetic.topography.island_radius island_radius not set m Circular shoreline radius (metres). Defaults to 35% of the smallest domain length. Accepts inline units. geographic.synthetic.topography.crest_elevation crest_elevation 10.0 m Central island elevation (m). The land surface decays nonlinearly to sea level at the shoreline. geographic.synthetic.topography.center_x center_x not set m Optional x coordinate (metres) of the island center. Defaults to the grid midpoint. geographic.synthetic.topography.center_y center_y not set m Optional y coordinate (metres) of the island center. Defaults to the grid midpoint.
[geographic.river_network]#
Optional DEM-based river network extraction settings.
Connections found in the code (4)
- The code says
flow.sinks_sources.sfr:flow.sinks_sources.sfr needs the river-network products; set [geographic.river_network] enabled = true.
- The code says
geographic.crossings:[geographic.crossings] enabled = true needs [geographic.river_network] enabled = true: the notch follows the channel tree the DEM generates, so without it there is no channel to cut.
- The code says
geographic.bed_regularization:[geographic.bed_regularization] enabled = true needs [geographic.river_network] enabled = true: the bed is fitted along the channel tree the DEM generates, so without it there is no bed.
- The code says
mesh.refinement_zone:[[mesh.refinement_zone]] where = 'height_above_stream' measures the ground against the river network traced from the DEM, and none was traced. Enable [geographic.river_network] with a threshold.
# enabled = falseEnable DEM-based river-network extraction from flow accumulation during geographic preprocessing.
- Path
geographic.river_network.enabled- More
Written whenever the table writes another key, so the table never switches the step by itself.
- Accepted
- true | false
# threshold_mode = "area_km2"Stream-initiation threshold selector.
- Path
geographic.river_network.threshold_mode- More
'area_km2' uses contributing area in km^2. 'cells' uses contributing-cell count directly.
- Values
"area_km2""cells"
- Accepted
- "area_km2" | "cells"
# threshold_area_km2 = ‹number›Contributing area threshold (km^2), required when threshold_mode='area_km2'. km2 only if threshold_mode = "area_km2"
- Path
geographic.river_network.threshold_area_km2- Accepted
- number
- Unit
- km2
- Only if
- threshold_mode = "area_km2"
# threshold_cells = ‹number›Number of upstream cells a cell must drain to start a stream. - only if threshold_mode = "cells"
- Path
geographic.river_network.threshold_cells- More
A count of DEM cells.
- Accepted
- number
- Unit
- -
- Only if
- threshold_mode = "cells"
# prune_short_streams = falseIf true, remove short stream segments after extraction.
- Path
geographic.river_network.prune_short_streams- Accepted
- true | false
# min_stream_length_m = 0.0Minimum stream length (metres) used by short-segment pruning. m >= 0
- Path
geographic.river_network.min_stream_length_m- More
Accepts inline units (e.g. 0, 250, '250 m', '0.5 km').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- >= 0 (refused outside)
- Unit
- m
# compute_strahler_order = trueCompute Strahler order raster from extracted streams.
- Path
geographic.river_network.compute_strahler_order- Accepted
- true | false
# compute_stream_links = trueCompute stream-link identifier raster from extracted streams.
- Path
geographic.river_network.compute_stream_links- Accepted
- true | false
# all_vertices = falseForwarded to Whitebox raster_streams_to_vector.
- Path
geographic.river_network.all_vertices- More
False keeps a lighter vector geometry.
- Accepted
- true | false
[geographic.river_network] # enabled = false # threshold_mode = "area_km2" # threshold_area_km2 = <number> # threshold_cells = <number> # prune_short_streams = false # min_stream_length_m = 0.0 # compute_strahler_order = true # compute_stream_links = true # all_vertices = false
geographic.river_network.enabled enabled false Enable DEM-based river-network extraction from flow accumulation during geographic preprocessing. Written whenever the table writes another key, so the table never switches the step by itself. geographic.river_network.threshold_mode threshold_mode “area_km2” area_km2 cells Stream-initiation threshold selector. ‘area_km2’ uses contributing area in km^2. ‘cells’ uses contributing-cell count directly. geographic.river_network.threshold_area_km2 threshold_area_km2 not set km2 Contributing area threshold (km^2), required when threshold_mode=’area_km2’. geographic.river_network.threshold_cells threshold_cells not set - Number of upstream cells a cell must drain to start a stream. A count of DEM cells. geographic.river_network.prune_short_streams prune_short_streams false If true, remove short stream segments after extraction. geographic.river_network.min_stream_length_m min_stream_length_m 0.0 m Minimum stream length (metres) used by short-segment pruning. Accepts inline units (e.g. 0, 250, ‘250 m’, ‘0.5 km’). geographic.river_network.compute_strahler_order compute_strahler_order true Compute Strahler order raster from extracted streams. geographic.river_network.compute_stream_links compute_stream_links true Compute stream-link identifier raster from extracted streams. geographic.river_network.all_vertices all_vertices false Forwarded to Whitebox raster_streams_to_vector. False keeps a lighter vector geometry.
[geographic.enforce_lakes]#
Lake footprint polygons that the ground corrections leave alone.
# enabled = falseRead the lake footprint polygons of lake_geometry_path as lakes of the ground, so the crossing notch and the bed regularisation leave them alone.
- Path
geographic.enforce_lakes.enabled- More
Written whenever the table writes another key, so the table never switches the step by itself.
- Accepted
- true | false
# lake_geometry_path = ‹path›Lake footprint polygons (gpkg/shp). only if enabled = true
- Path
geographic.enforce_lakes.lake_geometry_path- More
A bare filename resolves against <workspace>/data/lake_geometry/. Required when enabled.
- Accepted
- path
- Only if
- enabled = true
- Workspace file
workspace:<name>readsdata/lake_enforcement_geometry/<name>of the workspace, andworkspace:.the folder itself
[geographic.enforce_lakes] # enabled = false # lake_geometry_path = <path>
geographic.enforce_lakes.enabled enabled false Read the lake footprint polygons of lake_geometry_path as lakes of the ground, so the crossing notch and the bed regularisation leave them alone. Written whenever the table writes another key, so the table never switches the step by itself. geographic.enforce_lakes.lake_geometry_path lake_geometry_path not set Lake footprint polygons (gpkg/shp). A bare filename resolves against <workspace>/data/lake_geometry/. Required when enabled.
[geographic.crossings]#
Cut the embankments of roads, railways and bridges out of the ground.
Connections found in the code (5)
- Same name
[data.crossings]Crossings configuration (roads, railways, bridges, weirs and dams laid across the channels, read by [geographic.crossings]). Read whendata.typeslists"crossings".source="file"|"url"|"bdtopo"|"roe" - The code says
data.crossings.sources:geographic.crossings is enabled without a path, and no [[data.crossings.sources]] filled one in. Set geographic.crossings.path, or declare a crossings source.
- The code says
geographic.river_network:[geographic.crossings] enabled = true needs [geographic.river_network] enabled = true: the notch follows the channel tree the DEM generates, so without it there is no channel to cut.
- The code says
geographic.bed_regularization:[geographic.bed_regularization] enabled = true needs [geographic.river_network] enabled = true: the bed is fitted along the channel tree the DEM generates, so without it there is no bed.
- The code says
geographic.catchment.x_outlet:A crossings API source can only feed the notch when geographic.catchment.x_outlet / y_outlet are declared, since the watershed that would otherwise give the download box is not delineated yet. Declare geographic.crossings.path explicitly instead.
# enabled = falseNotch the ground at the crossings of the channel tree with the declared structures, then delineate again on the notched ground.
- Path
geographic.crossings.enabled- More
Needs [geographic.river_network] enabled. Written whenever the table writes another key, so the table never switches the step by itself.
- Accepted
- true | false
# path = ‹path›Vector file of the structures, with the columns 'kind', 'source', 'name' and 'drop_m' of the crossings data variable. only if enabled = true
- Path
geographic.crossings.path- More
When left empty and enabled, it is filled from [[data.crossings.sources]], so the structures are named once. Required when enabled, from one of the two.
- Accepted
- path
- Only if
- enabled = true
- Workspace file
workspace:<name>readsdata/crossings_notch/<name>of the workspace, andworkspace:.the folder itself
# kinds = ["road", "railway", "bridge"]Structure kinds to notch. at least 1 item
- Path
geographic.crossings.kinds- More
Weirs and dams are never notched.
- Accepted
- list of "road" | "railway" | "bridge"
- Valid range
- at least 1 item (refused outside)
# notch_width = 10.0Width of the notch across the embankment, in metres. m > 0
- Path
geographic.crossings.notch_width- More
The channel pixel itself is always lowered, so a width below the cell size cuts one pixel. The width is applied along the embankment only, the run of channel pixels that stand above the bed line, never to the two pixels where the bed is read. Accepts inline units (e.g. 10, '10 m').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# bed_reach = 50.0Distance along the channel, on each side of the crossing, where the bed level is read, in metres. m > 0
- Path
geographic.crossings.bed_reach- More
The embankment is assumed narrower than twice this. The notch is the straight line between the two bed levels. A bed end that falls on the embankment of another crossing is read further along the channel, beyond it. Accepts inline units (e.g. 50, '50 m').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# max_depth = 3.0Largest lowering of any pixel, in metres. m > 0
- Path
geographic.crossings.max_depth- More
A pixel that would be lowered more is lowered by this and counted as capped in the report: the embankment is then higher than the cap allows for, or the crossing sits on a ridge. Accepts inline units (e.g. 3, '3 m').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
# snap_radius = 30.0A point structure (a bridge of the ROE) farther than this from the channel tree is ignored, and so is a channel pixel farther than this from its crossing, in metres. m > 0
- Path
geographic.crossings.snap_radius- More
A dam or a weir of the file within this distance of a crossing stops its notch. Accepts inline units (e.g. 30, '30 m').
- Accepted
- number or "<n> m" (a bare number is read in the canonical unit)
- Valid range
- > 0 (refused outside)
- Unit
- m
[geographic.crossings] # enabled = false # path = <path> # kinds = ["road", "railway", "bridge"] # notch_width = 10.0 # bed_reach = 50.0 # max_depth = 3.0 # snap_radius = 30.0
geographic.crossings.enabled enabled false Notch the ground at the crossings of the channel tree with the declared structures, then delineate again on the notched ground. Needs [geographic.river_network] enabled. Written whenever the table writes another key, so the table never switches the step by itself. geographic.crossings.path path not set Vector file of the structures, with the columns ‘kind’, ‘source’, ‘name’ and ‘drop_m’ of the crossings data variable. When left empty and enabled, it is filled from [[data.crossings.sources]], so the structures are named once. Required when enabled, from one of the two. geographic.crossings.kinds kinds [“road”, “railway”, “bridge”] Structure kinds to notch. Weirs and dams are never notched. geographic.crossings.notch_width notch_width 10.0 m Width of the notch across the embankment, in metres. The channel pixel itself is always lowered, so a width below the cell size cuts one pixel. The width is applied along the embankment only, the run of channel pixels that stand above the bed line, never to the two pixels where the bed is read. Accepts inline units (e.g. 10, ‘10 m’). geographic.crossings.bed_reach bed_reach 50.0 m Distance along the channel, on each side of the crossing, where the bed level is read, in metres. The embankment is assumed narrower than twice this. The notch is the straight line between the two bed levels. A bed end that falls on the embankment of another crossing is read further along the channel, beyond it. Accepts inline units (e.g. 50, ‘50 m’). geographic.crossings.max_depth max_depth 3.0 m Largest lowering of any pixel, in metres. A pixel that would be lowered more is lowered by this and counted as capped in the report: the embankment is then higher than the cap allows for, or the crossing sits on a ridge. Accepts inline units (e.g. 3, ‘3 m’). geographic.crossings.snap_radius snap_radius 30.0 m A point structure (a bridge of the ROE) farther than this from the channel tree is ignored, and so is a channel pixel farther than this from its crossing, in metres. A dam or a weir of the file within this distance of a crossing stops its notch. Accepts inline units (e.g. 30, ‘30 m’).
[geographic.bed_regularization]#
Least-change regularization of the channel bed in the model top.
Connections found in the code (2)
- The code says
geographic.river_network:[geographic.bed_regularization] enabled = true needs [geographic.river_network] enabled = true: the bed is fitted along the channel tree the DEM generates, so without it there is no bed.
- The code says
geographic.crossings:[geographic.crossings] enabled = true needs [geographic.river_network] enabled = true: the notch follows the channel tree the DEM generates, so without it there is no channel to cut.
# enabled = falseRegularise the channel bed of the model top: the least-change fit of the ground that never rises downstream along the channel tree, with the crossing notches as gaps and the declared weirs and dams as drops.
- Path
geographic.bed_regularization.enabled- More
Needs [geographic.river_network] enabled. Written whenever the table writes another key, so the table never switches the step by itself.
- Accepted
- true | false
# min_slope = 0.0001Minimum drop of the fitted bed per metre along the channel (m/m), given to the flats the fit pools. - >= 0
- Path
geographic.bed_regularization.min_slope- More
The SFR default slope.
- Accepted
- number
- Valid range
- >= 0 (refused outside)
- Unit
- -
[geographic.bed_regularization] # enabled = false # min_slope = 0.0001
geographic.bed_regularization.enabled enabled false Regularise the channel bed of the model top: the least-change fit of the ground that never rises downstream along the channel tree, with the crossing notches as gaps and the declared weirs and dams as drops. Needs [geographic.river_network] enabled. Written whenever the table writes another key, so the table never switches the step by itself. geographic.bed_regularization.min_slope min_slope 0.0001 - Minimum drop of the fitted bed per metre along the channel (m/m), given to the flats the fit pools. The SFR default slope.