These python notebooks will guide the use through creating an instance of the FloodAdapt backend. This includes setting up a SFINCS compound flooding model and a Delft-FIAT impact assesment model using the HydroMT model builder. The notebooks also include creating the configuration files for various types of scenarios.
For Windows users, first install Windows Subsystem for Linux (WSL) and Docker desktop, then activate WSL and follow the steps below: To run the notebook, first install the environment by executing
git clone git@github.com:interTwin-eu/DT-flood.git
cd DT-flood
conda env create -f environment.yml
pip install .
This will create a conda environment called DT-Flood
There is a particular order in which to run the notebooks:
- SetupSFINCS
- SetupFIAT, SetupWFLOW (no particular order)
- SetupSite
- ConfigureFullScenario
- VisualizeScenario (WIP) The ConfigureFullScenario notebook will setup a particular run of the model chain and execute the run in the final cell. The output of the scenario can be visualized in the VisualizeScenario notebook.
Currently the interface to data is a HydroMT DataCatalog (see here for more details). What data it should contain is indicated in the notebooks. This will change later.
The WFLOW and SFINCS models are executed using docker containers, please make sure docker is installed.
This repository is to be used as a repository template for creating a new interTwin repository, and is aiming at being a clean basis promoting currently accepted good practices.
It includes:
- License information
- Copyright and author information
- Code of conduct and contribution guidelines
- Templates for PR and issues
- Code owners file for automatic assignment of PR reviewers
- GitHub actions workflows for linting and checking links
Content is based on:
All changes should go through Pull Requests.
- Only squash should be enforced in the repository settings.
- Update commit message for the squashed commits as needed.
To be configured on the repository settings.
- Require pull request reviews before merging
- Dismiss stale pull request approvals when new commits are pushed
- Require review from Code Owners
- Require status checks to pass before merging
- GitHub actions if available
- Other checks as available and relevant
- Require branches to be up to date before merging
- Include administrators