TOML parameters#
Every section of the configuration file, generated from the models. Each page reads like the file you write: one block per table, the keys you must write first, optional keys commented with their default, developer and expert keys behind a switch, one tab per shape when a table has several. Click a line for its card.
Two commands go from a block to a verdict:
hmp config template --modules flow > flow.toml # the keys of one section
hmp check my_run.toml # validate a file
source = "file"Data provider. required example value
- Path
data.hydrography.sources.source- More
Any source id this installation resolves and that serves river linework is accepted, so a third-party source registered on the 'hydromodpy.data.source' entry-point group is named here by its id.
- Accepted
- string
- Example
"file"
# url = ‹string›Remote URL of the one file this source reads.
- Path
data.hydrography.sources.url- Accepted
- string
# sha256 = ‹string›SHA256 checksum pinning the downloaded file, 64 hexadecimal digits.
- Path
data.hydrography.sources.sha256- Accepted
- string
# license = ‹string›Licence of the downloaded file, written to its sidecar.
- Path
data.hydrography.sources.license- More
Unset means undetermined.
- Accepted
- string
# path = ‹path›Path to a vector file (SHP/GPKG/GeoJSON), raster (TIF/TIFF), or directory containing one.
- Path
data.hydrography.sources.path- Accepted
- path
- Workspace file
workspace:<name>readsdata/hydrography/<name>of the workspace, andworkspace:.the folder itself
# rasterize_field = "FID"Attribute column whose values are written into the stream raster.
- Path
data.hydrography.sources.rasterize_field- More
A column the layer lacks, or a column of text, is replaced by a sequential number per feature.
- Accepted
- string
# force_refresh = falseDownload this source again instead of reading the cache.
- Path
data.hydrography.sources.force_refresh- Accepted
- true | false
# page_size = 50000WFS pagination page size (BD Topage), in features. - dev
- Path
data.hydrography.sources.page_size- Accepted
- integer
- Unit
- -
# group_name = "River_Net_lines"MapServer group name for EU-Hydro layer discovery. dev
- Path
data.hydrography.sources.group_name- Accepted
- string
# euhydro_page_size = 1000Pagination page size for EU-Hydro REST queries. - dev
- Path
data.hydrography.sources.euhydro_page_size- Accepted
- integer
- Unit
- -
# waterway_types = ["river", "stream"]OSM waterway tag values to fetch. dev
- Path
data.hydrography.sources.waterway_types- Accepted
- list of string
[[data.hydrography.sources]] source = "file" # url = <string> # sha256 = <string> # license = <string> # path = <path> # rasterize_field = "FID" # force_refresh = false
- written line a key you must write; the value shown is an example the field declares, if any
- # commented line optional: the value shown is the default
- ‹form› no default: the accepted form of the value
- the button on the right of a block shows the developer and expert keys; it switches them on every page
Every table and key, with a ranked search. The fastest way to find a key.
Lengths, durations, conductivities, dates, files: every user key grouped by its unit.
Every key a calibration can move, with its unit, search space and range.
The smallest file that holds one section, checked against the models.
Inheritance, quantities with units, dates, lists of tables.
Sections#
Required sections first, then the others in the order of the code.
[workspace]Where the shared input data of the project are read and cached.[geographic]Configuration block for geographic and watershed delineation parameters.[edition]The set of defaults the file is read with.[workflow]Workflow configuration: workflow.mode ('simulation', 'calibration' or 'overview'), the console verbosity and the profiler.[site]The catchment this project models: its name, label, gauge and registry URI.[sites]The catchments of a campaign and the recipes run on each of them: the plan is sites x recipes, one case <site>-<recipe> per pair.[metrics]Where and when a run is scored after it ends: the station (default [site] gauge) and the window.[publication]Licence, creators and attribution written into every copy hmp publish makes of a result. hmp publish --public refuses a project without a licence.[domain]Domain configuration: the depth of the aquifer ([domain.depth_model]), its layering ([domain.layers], read by every solver) and the spatial-support mode used for heterogeneous parameter mapping (none, geology, or zones).[data]Data-managers configuration.[flow]Flow process configuration with declared parameter ids in [flow].param_list and payloads validated from [flow.param.<id>] TOML sections.[transport]Transport process configuration, with one parameter table per transport, written [transport.<name>].[simulation]Optional simulation orchestration block loaded from [simulation] and [[simulation.process]].[solver]Global solver block loaded from [solver]: the flow solver in solver.backend, the settings of each flow solver under its name, and the backend-agnostic preprocessing switches (solver.sink_fill, solver.drain_band_depth_m).[display]The figures a run draws, loaded from the [display] section.[[export]]The exports written at the end of a run, one [[export]] block per request, in the order of the file.[observation]Observation points declared in [observation] and sampled while the run still holds its fields.[overview]Optional overview report settings loaded from the [overview] section.[mesh]Optional mesh settings loaded from the [mesh] section: which engine meshes the model ('regular', 'triangle', 'voronoi' or 'catchment') and how fine.[calibration]Optional calibration settings loaded from the [calibration] section.[spinup]Optional cyclic spin-up settings loaded from the [spinup] section.[recharge_estimates]Recharge estimated from the loaded weather, gauge and piezometers with the methods of ESPERE (BRGM), printed beside the run's own recharge and written as the table recharge_estimates.