Skip to contents

R-implementation of a simple water balance model for urban areas,

  • based on “Wasserhaushaltsmodell Berlin ABIMO 3.2” (see Documentation below) and
  • further developed by KWB within BMBF-funded research project AMAREX.

For our Tutorial, click here (see also Documentation below).

Installation

# Install package "remotes" from CRAN
install.packages("remotes", repos = "https://cloud.r-project.org")

# Install package "kwb.rabimo" (latest "release") from GitHub
remotes::install_github("KWB-R/kwb.rabimo", build_vignettes = TRUE)

Basic Usage

Provide input data and configuration

For Berlin, the capital of Germany, we provide input data and model parameters in the package:

# Load Berlin data in the original Abimo format
abimo_inputs <- kwb.rabimo::rabimo_inputs_2025

Run R-Abimo for the status quo

# Run R-Abimo, the R-implementation of Abimo
rabimo_result <- kwb.rabimo::run_rabimo(
  data = abimo_inputs$data, 
  config = abimo_inputs$config
)

# Have a look at the first lines of the result data frame
head(rabimo_result)

Run R-Abimo for a natural state scenario

rabimo_result_natural <- kwb.rabimo::run_rabimo(
  data = kwb.rabimo::data_to_natural(abimo_inputs$data), 
  config = new_inputs$config
)

Calculate “Delta-W”

For the first ten blocks, calculate the deviation from the natural state:

kwb.rabimo::calculate_delta_w(
  urban = rabimo_result[1:10, ],
  natural = rabimo_result_natural
)

Documentation

Original software “Wasserhaushaltsmodell Berlin ABIMO 3.2”