interTwin-eu / DT-flood

Deltares bits and pieces to use in flood modeling
MIT License
1 stars 2 forks source link

Notebooks for FloodAdapt backend setup

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.

Installation

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

Running the notebooks

Order of the notebooks

There is a particular order in which to run the notebooks:

  1. SetupSFINCS
  2. SetupFIAT, SetupWFLOW (no particular order)
  3. SetupSite
  4. ConfigureFullScenario
  5. 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.

Necessary input data

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.

Running scenarios

The WFLOW and SFINCS models are executed using docker containers, please make sure docker is installed.

Template for interTwin repositories

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:

Content is based on:

GitHub repository management rules

All changes should go through Pull Requests.

Merge management

Protection on main branch

To be configured on the repository settings.