Skip to content

Commit

Permalink
run the water_demands notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
hboisgon committed Nov 8, 2024
1 parent c73432e commit cdebd5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/getting_started/example_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ For a static (non-interactive) view of the examples follow one of the links belo
* `Update Wflow model: landuse <../_examples/update_model_landuse.ipynb>`_
* `Update Wflow model: forcing <../_examples/update_model_forcing.ipynb>`_
* `Update Wflow model: gauges <../_examples/update_model_gauges.ipynb>`_
* `Update Wflow model (pyhton): connect to a 1D river model <../_examples/connect_to_1d_model.ipynb>`_
* `Update Wflow model: water demands <../_examples/update_model_water_demand.ipynb>`_
* `Update Wflow model (python): connect to a 1D river model <../_examples/connect_to_1d_model.ipynb>`_

**Clip model from command line interface**

Expand Down
6 changes: 3 additions & 3 deletions examples/update_model_water_demand.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"outputs": [],
"source": [
"# NOTE: copy this line (without !) to your shell for more direct feedback\n",
"! hydromt build wflow \"./wflow_piave_water_demand\" -r \"{'basin': [12.2051, 45.8331], 'bounds': [11.70, 45.35, 12.95, 46.70]}\" -i wflow_build.yml -d artifact_data -vv"
"! hydromt build wflow \"./wflow_piave_water_demand\" -r \"{'basin': [12.2051, 45.8331], 'bounds': [11.70, 45.35, 12.95, 46.70]}\" -i wflow_build.yml -d artifact_data --fo -vv"
]
},
{
Expand All @@ -90,7 +90,7 @@
"metadata": {},
"outputs": [],
"source": [
"! hydromt update wflow wflow_piave_water_demand -i wflow_update_water_demand.yml -d artifact_data -d \"https://github.com/Deltares/hydromt_wflow/releases/download/v0.5.0/wflow_artifacts.yml\" -d ../tests/data/demand/data_catalog.yml -v"
"! hydromt update wflow wflow_piave_water_demand -i wflow_update_water_demand.yml -d artifact_data -d \"https://github.com/Deltares/hydromt_wflow/releases/download/v0.5.0/wflow_artifacts.yml\" -d ../tests/data/demand/data_catalog.yml --fo -v"
]
},
{
Expand All @@ -111,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down
9 changes: 7 additions & 2 deletions hydromt_wflow/workflows/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def prepare_cold_states(
Prepare cold states for Wflow.
Compute cold states variables:
* **satwaterdepth**: saturated store [mm]
* **snow**: snow storage [mm]
* **tsoil**: top soil temperature [°C]
Expand All @@ -35,19 +36,23 @@ def prepare_cold_states(
* **h_land**: land water level [m]
* **h_av_land**: land average water level[m]
* **q_land** or **qx_land**+**qy_land**: overland flow for kinwave [m3/s] or
overland flow in x/y directions for local-inertial [m3/s]
overland flow in x/y directions for local-inertial [m3/s]
If lakes, also adds:
* **waterlevel_lake**: lake water level [m]
If reservoirs, also adds:
* **volume_reservoir**: reservoir volume [m3]
If glaciers, also adds:
* **glacierstore**: water within the glacier [mm]
If paddy, also adds:
* **h_paddy**: water on the paddy fields [mm]
* **h_paddy**: water on the paddy fields [mm]
Parameters
----------
Expand Down

0 comments on commit cdebd5b

Please sign in to comment.