hydromodpy.data.variables.dem.resolver#

Bridge between [[data.dem.sources]] and [geographic].dem_init_path.

The geographic delineation pipeline needs a concrete DEM file path before any data manager runs. Historically users had to provide it via [geographic].dem_init_path even when their DEM was already declared under [[data.dem.sources]]. This resolver removes that duplication by populating dem_init_path from the data-manager declaration when the geographic field is left empty.

Resolution order for a single source:

  • source = "custom" resolves path against the TOML directory.

  • source = "ign_geoplateforme_dem" uses the IGN Geoplateforme DEM client with an outlet-buffer bootstrap bbox.

The first source that yields a usable path wins.

Functions

resolve_dem_path_from_data_sources(cfg, *, ...)

Return a concrete DEM path derived from [[data.dem.sources]].