CaMa-Flood (Catchment-based Macro-scale Floodplain) is a river hydrodynamics model for regional, continental, and global river and flood simulations. It routes runoff through a river network and represents river channels and floodplain storage using sub-grid topography. The v4 model computes river discharge and flow velocity using the local inertial equation, and diagnoses water level and inundated area from water storage.
The v4 code includes adaptive time stepping, river bifurcations, reservoir and levee options, and upstream-inflow and sea-level boundary workflows. Optional extensions have their own data and build requirements; consult the corresponding v4 documentation before enabling them.
This repository is maintained for using and maintaining CaMa-Flood v4, accessing its source and documentation, and referring to its development history. The v4 source is under src/; existing build and run workflows remain under adm/ and gosh/.
CaMa-Flood v5 development has moved to the independent repository global-hydrodynamics/cmf_v5_beta. v5 is under active beta development and is not yet an official stable release. Its goals include improving source maintainability, reproducible experiments, tutorials and visualizations, package creation, community contributions, and AI-assisted development.
Use the new repository for v5 development, feature work, and pull requests. The v5_dev/ directory in this repository is an archive of the v5 development files that were here before the move; it is not the current v5 work area. Users who need a stable, supported distribution should continue to use the official CaMa-Flood v4 package.
For a standard v4 installation, use the official CaMa-Flood website to find the current package and download instructions. Package access requires registration and acceptance of the license agreement. Submit the registration form; download credentials are sent by email, after which the package can be obtained from the website.
Start with the CaMa-Flood v4.20 manual and user guideline. The sample execution guide explains the legacy v4 build and run scripts. A source-code clone does not necessarily include all map and forcing datasets required for a simulation; use the official distribution or obtain required data separately, subject to its terms.
| Path | Purpose |
|---|---|
src/ |
CaMa-Flood v4 model source. |
adm/ |
v4 compiler and library build configuration. |
gosh/ |
v4 compilation and sample execution scripts. |
map/ |
River-map data, map preparation sources, and related tools. |
inp/ |
Runoff forcing preparation and input utilities. |
etc/ |
Optional schemes, specialized workflows, and analysis utilities. |
util/ |
Supporting utilities. |
out/ |
Local model-run output location; contents are generated and may be ignored by Git. |
doc/ |
User manuals, scientific notes, and package documentation. |
visualization/ |
Visualization examples retained from v5 development; not validated for v4. |
v5_dev/ |
Archived v5 development files from before the repository split; not the current v5 development location. |
archive_src.sh |
Source-archive helper retained with the v4 repository. |
Versions.md |
Recorded v4 source changes. |
The map/README.md describes map data and preparation resources. Map and forcing data may have separate download requirements and licenses; check the documentation supplied with each dataset.
| Topic | Documentation |
|---|---|
| Model formulation, setup, inputs, and standard execution | v4.20 manual; CaMa-Flood guideline |
| Build and sample runs | gosh sample execution guide |
| River maps and map preparation | map guide |
| Reservoir operation | v4.20 reservoir manual; reservoir preparation guide |
| Levee parameters | levee guide; parameter manual |
| Upstream inflow | upstream inflow manual |
| HPC, MPI, and OpenMP | HPC note; example workflows |
| Gauge allocation | gauge allocation manual |
| Flood-depth downscaling | workflow guide; method note |
| Validation examples | validation guide |
| Distribution package preparation | package guide |
The visualization/ directory contains reference examples produced during v5 development. Their scripts and data assumptions are not a v4 visualization support guarantee. Consult the v5 repository for the current visualization implementation.
This repository accepts maintenance and bug-fix work for v4. Preserve existing v4 interfaces, data formats, and supported workflows unless a compatibility change has been explicitly agreed. Read AGENTS.md before making changes, and use the component documentation and current v4 source as the authority for behavior.
New v5 development, features, and pull requests belong in cmf_v5_beta. Historical v5 files in v5_dev/ are retained for reference only and may depend on their former directory layout.
See Versions.md for recorded changes. The official website provides the current downloadable package information. A GitHub branch should not be assumed to match a particular package release; record the source revision and datasets used for reproducibility.
Please cite the model description and numerical-method papers when using CaMa-Flood:
- Yamazaki, D. (2025). Advancing global river hydrodynamics simulations by catchment-based macro-scale floodplain modeling approach. Geoscience Letters, 12, 72. doi:10.1186/s40562-025-00452-z.
- Yamazaki, D., Kanae, S., Kim, H., & Oki, T. (2011). A physically based description of floodplain inundation dynamics in a global river routing model. Water Resources Research, 47, W04501. doi:10.1029/2010WR009726.
- Yamazaki, D., de Almeida, G. A., & Bates, P. D. (2013). Improving computational efficiency in global river models by implementing the local inertial flow equation and a vector-based river network map. Water Resources Research, 49(11), 7221–7235. doi:10.1002/wrcr.20552.
When using the river water temperature model, also cite Tokuda, D., Kim, H., Yamazaki, D., & Oki, T. (2019). Development of a global river water temperature model considering fluvial dynamics and seasonal freeze-thaw cycle. Water Resources Research, 55(2), 1366–1383. doi:10.1029/2018WR023083.
Use the CaMa-Flood Zenodo archive to find and cite the specific archived software version used. The official references provide additional model, scheme, and dataset publications.
The model source code is distributed under the Apache License 2.0. Separately distributed river maps, forcing, and other datasets have their own licensing terms. Consult the terms supplied with each dataset and the official licensing information; the software license does not grant rights to all accompanying data.
For package access and project inquiries, contact Dai Yamazaki at yamadai [at] iis.u-tokyo.ac.jp. Community discussion is available through the CaMa-Flood user group. Report reproducible v4 bugs through GitHub Issues, including the source revision, configuration, environment, reproduction steps, and relevant diagnostics.