Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Flood Modeling

Flood Modeling

The flood model can be imported using the following command. The flood model has been build using the following literature resources

Sánchez-Muñoz et al. (2020)

/opt/homebrew/Caskroom/miniconda/base/envs/erad/lib/python3.12/site-packages/kaleido/__init__.py:14: UserWarning:



Warning: You have Plotly version 6.0.1, which is not compatible with this version of Kaleido (1.0.0).

This means that static image generation (e.g. `fig.write_image()`) will not work.

Please upgrade Plotly to version 6.1.1 or greater, or downgrade Kaleido to version 0.2.1.


An instance of FloodModel requires to pieces of information,

  • timestamp: The timestamp for the flood event

  • affected_areas: list of area affected the flood represented by FloodModelArea

Each area affected by flooding is represented by polygon with water level and flowrate.

This enables users to define mutiple areas affected by a given flodd with uniwue parameters.

Loading...

An example of the FloodModel can be built using the example() methods for testing purposes.

Loading...

Plotting the Flood Model

Loading...
References
  1. Sánchez-Muñoz, D., Domı́nguez-Garcı́a, J. L., Martı́nez-Gomariz, E., Russo, B., Stevens, J., & Pardo, M. (2020). Electrical grid risk assessment against flooding in Barcelona and Bristol cities. Sustainability, 12(4), 1527.