Child pages
  • Chapter 4: How to run a flood impact model

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A flood impact model can be easily run by Delft-FIAT in several ways. Some convenient examples are given below.

 

4.1.

...

2       Macro (button) in the excel configuration file

In the excel configuration file its possible to specify the location of Delft-FIAT.exe. After that Delft-FIAT can run with a simple button that triggers a macro.

4.1.2       Single run using python command window[1]

 

Open your command window (like you did in section 2.2).

...

C:/Python27/python.exe C:/FIAT/FIAT_rekenhart/run_FIAT.py C:/FIAT/config.xls –rn modeltest –hf C:/FIAT/waterdepth.tif –od c:/FIAT/output/modeltest

4.1.

...

3       Multiple run using batch file

 

Create an empty batch file (.bat). Put the above command(s) in the batch file and do this multiple times if needed on new lines. Multiple config files can be run in sequence. Save the batch file and run that batch file in a command prompt by simply calling its location.

4.1.

...

4       Multiple run within other python script

 

Open a new python file in the FIAT_rekenhart installation folder. Save the file as runFIATin batch.py.

...

When a location with .csv is specified in cell B4 and several waterdepth maps are used as input, Delft-FIAT, makes for each waterdepth a subfolder and calculates a total risk value and total risk map.

Image Added

Example of a csv file for a risk calculation.



[1] As described in Chapter 2: one can also utilize an executable without the need to install a proper Python; the commands remain te same, except do not call python and change the .py to .exe

...