Child pages
  • Chapter 5: Delft-FIAT exercises
Skip to end of metadata
Go to start of metadata

5.1       Exercise 1: Run Delft-FIAT with a configuration file

 

a)     open the provided configuration excel file (‘dijkring22_ssm2000.xls’) and verify whether the Results file name (cell ‘B2’) is a logical reference for you, otherwise change it to a more convenient name (please avoid spaces and special characters in the naming)

The study area is the island of Dordrecht (dike ring 22) in the Netherlands. This island will be flooded after a breach of the primary defense. The provided waterdepth map gives an indication of the maximum waterdepth that can occur; it is the maximum waterdepth over 12 simulations (different breach locations) for design conditions.

b)     verify if the file location of the waterdepth map (‘B4’) is correctly referenced on your computer (if needed, unzip the files from zip-archive) and open the file in your favorite text editor or GIS; verify if there exists cells with a waterdepth value. Check out that the cell size is 100m (this can be varied in the model, but will not be practiced today)

c)     verify if the file location of the vulnerability maps (‘J4’) is correctly referenced on your computer; unzip the files in the same folder. Each vulnerability category is a provided as GeoTiff file and available for the extent of the Netherlands.

d)     change the output folder for the simulation results (‘J5’) to your convenient  choice;

e)     from the 6th row onwards, different damage categories are identified; do not give too much attention to column ‘D, E and G’ as these are special functions for a Dutch model and are not of interest for other cases; verify if you understand each of the columns.

f)       after these inspections of the configuration file, close the excel file and save it under the same name (or if you like another)

 

It is now time to run the Delft-FIAT model. There are many ways to start the model, but we provide you one basic option. Go back to your command prompt and type the following (changing the file locations to your local situation):

 

python.exe d:\Projecten\FIAT\course\code\run_FIAT.py  d:\Projecten\FIAT\course\dijkring22_ssm2000.xls

 

and press enter.

 

The model is run with the provided excel file as configuration file. After some seconds the model simulation is finished and the results can be found in the output folder you referred to in the excel file.

 

g)     in the output folder you will find a text report with the name of your run (total damage = 4.8 miljard euro) and several grids, like a totaalschade.tif. The last file can be viewed in the windows photo viewer (default windows viewer), but of course best inspected in a GIS-viewer (quantumGIS, ArcGIS etc.). In this way the user is informed about the spatial distribution of the damage.


 

5.2       Exercise 2: Adapt configuration file

 

In the course folder you find a pre-defined waterdepth map of dijkring 43 – Betuwe in the Netherlands. Again this is a maximum waterdepth map simulated for design conditions.

a)     open the configuration file dijkring22_ssm2000.xls of the previous assignment  and save it with a different name; e.g. betuwe.xls.

b)     change the name of the results file, waterdepth file and output folder accordingly; the vulnerability maps folder provides maps for the whole of the Netherlands; save the excel file

c)     configure your damage assessment by:

            - deleting rows (remove categories),

            - changing maximum damage values

- changing damage function (if you wish: adapt an existing function in the functions folder)

d)     save the configuration file and run the model (don’t forget to change the xls file name in your command prompt)!

e)     check the simulation results in the output folder


 

5.3       Exercise 3: Run Delft-FIAT with full configuration file

 

a)     In the course folder, you find in the subfolder Hazards additional files for the betuwe case to consider. Open the betuwe.xls, make a copy and include the locations to these files accordingly and save as a new method.

b)     The fls_h.inc file is actually an incremental file which can be used as input to generate the riserate and arrivaltime rasters first and then the specific casualties. It is best not to use them both in the same run.

c)     The shapefile can provide zonal statistics for the resulting damages and casualties. (this will increase calculation time with 2 minutes) The provided shapefile will give statistics per area (e.g.dikering).

d)     Run the model with the adapted method and verify the results.


 

5.4       Exercise 4: Run Delft-FIAT in batch mode

 

FIAT can be run with optional arguments.

-rn <result_name>                              : The name to use for the results (B2)

-hf <hazard_filepath>                          : Full path to the hazard file (B4)

-if <incremental_filepath>                   : Full path to the incremental file (D1)

-rf <rise rate filepath>                          : Full path to the rise rate file (D2)

-af <arrival time filepath>                    : Full path to the arrival time file (D3)

-sf <shapefile_path>                           : Full path to the shapefile (D5)

-fd <functions directory>                     : Full path to the functions dir (J3)

-ed <exposure directory>                    : Full path to the exposure grids dir (J4)

-od <output directory>                         : Full path to the output directory (J5)

-gc <grid per category>                       : Output a grid per category (0=no or 1=yes)

 

a)     Make sure that exercise1 is finished

b)     Add to the command line the following arguments (-rn, -hf and –od):

 

python.exe d:\Projecten\FIAT\course\code\run_FIAT.py d:\Projecten\FIAT\course\dijkring22_ssm2000.xls -rn dkrg22_test -hf d:\Projecten\FIAT\course\Waterdiepte\Dijkring22\dkrg22.asc -od d:\Projecten\FIAT\Output\dkrg22_test

 

Actually, you then run the same model again. Now, try to run the dijkring22_ssm2000.xls config file with the betuwe waterdepth grid as input. This can easily be done by changing the filepaths in the arguments and run the model again.

c)     Open a text editor and make a new textfile: e.g. run.bat and copy/paste the above command three times to the textfile.

d)     Change the result name, filenames and outputpaths to match with the betuwe waterdepth grid and the friesland grid (see waterdepth folder).

e)     Save the batch-file with three lines of commands and put a “pause” on the end of the file

f)       Double-click the batch-file to find out if Delft-FIAT runs (don’t forget to first clean the outputfolders)

g)     Try to change other parts of the configuration file header for each simulation using arguments

h)     You can also import run_FIAT.py and configure the header for a model run in an other python script. This is done in the following example using a python dictionary for the arguments:

     

import run_FIAT

argdict = {“excel_configuration”:”d:\Projecten\FIAT\course\dijkring22_ssm2000.xls”,

                 “B4”:”d:\Projecten\FIAT\course\Waterdiepte\Dijkring22\dkrg22.asc”,

                 “J5”:”d:\Projecten\FIAT\course\Output\dkrg22_test”}

run_FIAT.run(argdict)

  • No labels