CWatM Model Guide#
Overview#
CWatM (Community Water Model) is a distributed hydrological model developed at IIASA for regional to global water availability studies. The SYMFLUENCE integration provides initial support for preparing forcing, writing a CWatM settings file, launching the model, and extracting standard discharge outputs.
Key Capabilities:
Distributed gridded hydrological simulation
NetCDF and TSS discharge output extraction
Optional PET calculation controlled through CWatM settings
Installation through
symfluence binary install cwatm
Note
The 0.8.3 integration generates forcing files and settings.ini but still
relies on an installed CWatM checkout and its static CWatM-Earth parameter
dataset.
Model Selection#
Use CWatM as the hydrological model:
HYDROLOGICAL_MODEL: CWATM
CWATM_INSTALL_PATH: default
CWATM_EXE: run_cwatm.py
SETTINGS_CWATM_PATH: default
CWATM_CONFIG_FILE: settings.ini
CWATM_SPATIAL_MODE: distributed
Installation#
Install CWatM through the binary/tool installer:
symfluence binary install cwatm
By default, SYMFLUENCE installs CWatM under:
$SYMFLUENCE_DATA_DIR/installs/cwatm
You can point to an existing checkout instead:
CWATM_INSTALL_PATH: /path/to/CWatM
CWATM_EXE: run_cwatm.py
Configuration Parameters#
Parameter |
Default |
Description |
|---|---|---|
|
|
CWatM install directory. |
|
|
CWatM runner script. |
|
|
Project settings directory for CWatM files. |
|
|
Main CWatM INI file. |
|
|
Nominal grid resolution label. |
|
|
Spatial mode for the model adapter. |
|
|
Output path override. |
|
|
CWatM output directory override. |
|
|
Number of spinup years. |
|
|
Whether CWatM should calculate evaporation internally. |
|
|
PET method used when evaporation is calculated internally. |
|
|
Comma-separated calibration parameter names. |
|
|
Maximum runtime in seconds. |
Expected Layout#
The preprocessor writes, and the runner reads, the INI file here:
<project_dir>/settings/CWATM/settings.ini
It executes:
python run_cwatm.py settings.ini -q
Outputs are read from:
<project_dir>/simulations/<EXPERIMENT_ID>/CWATM/
Result Extraction#
The result extractor searches for standard CWatM discharge files first:
discharge_daily.tssdischarge_daily.ncdischarge*.nc*discharge*.nc
For NetCDF discharge outputs, SYMFLUENCE looks for discharge, Qsim, or
Q variables. Distributed discharge grids are reduced with a maximum
aggregation for streamflow.
Minimal Example#
DOMAIN_NAME: example_basin
EXPERIMENT_ID: run_1
HYDROLOGICAL_MODEL: CWATM
ROUTING_MODEL: none
CWATM_INSTALL_PATH: default
CWATM_EXE: run_cwatm.py
CWATM_CONFIG_FILE: settings.ini
CWATM_TIMEOUT: 14400
Run the model step once the CWatM settings file exists:
symfluence workflow step run_model --config config_example_basin.yaml