SlideShare a Scribd company logo
1 of 4
Download to read offline
Flood Risk Analysis:
scripts connecting OpenGIS with Hec-RAS
Ing. Davide Sponchiado 1
, Ing. Enrico Gallo 1
, Ing. Daniele Ganora 1,2
1
CINID – Consorzio Interuniversitario per l'Idrologia
2
DIATI – Politecnico di Torino
Abstract
A series of scripts are presented to use Grass GIS capabilities to support
hydraulic simulations with the Hec-RAS model version 4.1.0. Scripts are
intended to provide an open source alternative to the Hec-GEORAS plugin,
which runs only on proprietary GIS. This approach allows to process high
resolutions DEM to extract the necessary geometrical information required by
the model directly within the GIS environment; geometrical data is then
exported to the hydraulic model and simulated water levels can be returned to
the GIS to facilitate flood risk analysis (or any other water-related study).
Exchange of information is performed through a standard text file, which can
contain both geometrical and hydraulic data.
The code has been developed starting from a set of scripts already available
from the open source community and is still under development. Script, written
in Python, have been used on GRASS GIS 6.4.3, but they can be easily
integrated in the QGIS toolbox.
The case study is Belbo creek near Canelli district in the province of Asti.
Keywords
GRASS GIS, Hec-RAS, QGIS, Hydraulic Simulations, Flood Mapping
1 Introduction
Hydrologic and hydraulic analysis of a river reach is a fundamental step for
modern land and environmental management. One of the most important
activities is the flood risk mapping which is strictly related to people safety and
urban development. This kind of analysis is, for instance, strictly related to the
D.Lgs 49/2010 on the assessment and management of flood risks
(transposition Directive 2007/60/EC, which requires Member States to assess if
all watercourses are at risk of flooding, mapping them and reducing possible
risk for assets and humans).
A widely used model, able to perform such kind of analyses, is the Hec-RAS
model developed by the Hydrologic Engineering Center of the US Army Corp of
Engineers. Hec-RAS is freely available and it is well recognised to be a powerful
and reliable model; the source code is not promptly available, but it can
obtained upon request (see the Distribution Policy of the software for details).
Hec-Ras binaries runs only on Windows OSs. Currently version 4.1 is the most
1
up-to-date release that support 1D modelling only, although a 2D
implementation is already available as a beta version (release 5.0).
Hec-RAS itself has no GIS features to manage the necessary input data and the
results of simulations; however, an extension named Hec-GeoRAS has been
released as an ArcGIS plugin to allow the use GIS tools.
2 Hec-RAS features
Hec-RAS 4.1.0 is a widely used 1D hydraulic model (although a 2D version is
under testing). To perform standard hydraulic simulations, Hec-RAS requires
geometric data (section shape, distance between sections), hydrologic data
(flow values, roughness), and boundary conditions. Bridges, levees, storage
areas, etc. can be included as well, to create a more realistic model. Further
analyses can be performed, such as water quality or sediment transport; the
interested reader is referred to the official (and unofficial) documentation.
For any Hec-RAS project, geometric data can be introduced fundamentally in
two ways: the first is by manually input the data in the GUI geometry editor;
the second is to act on a particular file of the project, which is a text file with
g** extension (** stands for a progressive number as multiple geometries are
allowed). This latter can be modified by manually or automatically put the
desired information. A particular structure of the file is required.
A better solution to import/export model features is through the interchange
files .sdf. It is a plain text file in which there are all the information about the
geometry of all the elements (first of all, the riverbed and the sections and
their elevation). The same file can store (but it is an optional information)
hydraulic input data (like streamflow values, roughness) and the results of
simulations (such as the water levels, flow velocity). Working with the .sdf file is
thus preferable than directly operate on project files as one file.
3 GRASS to Hec-RAS script
To extract cross-sections, a high-resolution Digital Elevation Model (DEM) is
needed as the topographical base. Two additional vectorial layers are required
as well:
• a vector layer of lines or polylines representing the cut lines along with
to "cut" the DEM
• a vector layer with one polyline representing the riverbed.
The scripts uses the GRASS command r.profile to extract cross-sections along
the cut lines and properly writes the information in the .sdf file. Note that, to
fulfil the Hec-RAS rules, cut lines must be drawn from the left bank to the right
bank, otherwise manual editing is required to fix the polylines directions.
The riverbed layer should be oriented along the flow direction, but in this case,
the script automatically detects and corrects possible wrong direction.
Both vectors cannot have elements out of the DEM extents. Moreover, the
riverbed must intersect all the cut lines once, and cut lines must not intersect
themselves.
Hec-RAS requires unique section names; names must be numeric (although a
string label is also supported in addition to the number), sorted according the
2
location of the section along the stream, with increasing numbers moving from
the outlet towards the river source. The script automatically enumerates the
sections according to their distance from the river outlet.
Finally, distances between sections are required as input. For each section,
three distance values are necessary: along the main channel, on the left over
bank and on the right over bank. The former is calculated by the script along
the streambed polyline; the latters can be evaluated in an approximate way
(selecting an optional flag), but, in current implementation, a manual input is
still suggested.
Furthermore it is possible to add the levees (paying attention they don't cross
more times the same section) and the left and right banks (i.e. the points of
separation between main river and floodplains) drawn as unique line or just at
the intersections.
The first script creates the .sdf file according the Hec-RAS format; this file can
be loaded in Hec-RAS and used to support simulations. Hec-RAS allows for a
manual editing of the imported sections.
3 Hec-RAS to GRASS script
After the simulations have been performed, water levels can be exported
toward the GIS. Currently, only water elevation values from steady state
simulations can be exported, but many other variables can be considered in
future development. A new .sdf file is written which includes the geometric
data used in Hec-RAS and the hydraulic output.
The second script creates a vector layer in GRASS with the cut lines; each
cutline is characterized by one or more water elevation values (depending on
the number of simulated water profiles), stored in the attribute table. Note that,
the script is not able to account for the actual water extent along the section.
3
Domain of analysis in GRASS Domain of analysis in Hec-RAS
A third script allows the interpolation of water level between the sections to
create a raster map. This is a useful tool to map easily the water level in the
area of analysis, but it must be used carefully as the interpolation is not
performed by hydraulic modelling. For this reason, the script is developed
independetly and released separately.
REFERENCES
Chiraz, P., & Ricci, A. (2013) Studio Associato GfosServices, Terni (Italy).
V.grass2hec & v.hec2grass scripts (first version 2008, latest version 2013),
from http://www.gfosservices.it.
D.Lgs 49/2010 (http://www.camera.it/parlam/leggi/deleghe/10049dl.htm).
GRASS (http://grass.osgeo.org/).
Hec-RAS (http://www.hec.usace.army.mil/software/hec-ras/).
QGIS (http://www2.qgis.org/it/site/).
4
GRASS script GUI The .sdf file
Geometric data in Hec-RAS Example of inundated areas

More Related Content

Viewers also liked

Osallistuva budjetointi - Kontula 25.10.2012
Osallistuva budjetointi - Kontula 25.10.2012Osallistuva budjetointi - Kontula 25.10.2012
Osallistuva budjetointi - Kontula 25.10.2012avantoinsight
 
Downturn Management
Downturn ManagementDownturn Management
Downturn ManagementJohnCronin
 
Marketingplan
MarketingplanMarketingplan
Marketingplanspotterbg
 
Banking awareness 2014
Banking awareness 2014Banking awareness 2014
Banking awareness 2014sanu
 
Investment manager performance appraisal
Investment manager performance appraisalInvestment manager performance appraisal
Investment manager performance appraisallindacami643
 
E wthe littlleredhenandthperfectedeapplepie
E wthe littlleredhenandthperfectedeapplepieE wthe littlleredhenandthperfectedeapplepie
E wthe littlleredhenandthperfectedeapplepielnash1
 
Telling Stories
Telling StoriesTelling Stories
Telling Storieszoelingua
 
Evaluation Question 2
Evaluation Question 2Evaluation Question 2
Evaluation Question 2oliviagodd
 
โครงร างโครงงาน
โครงร างโครงงานโครงร างโครงงาน
โครงร างโครงงานSunrise Beach
 
Coho_Tech & Value_030115
Coho_Tech & Value_030115Coho_Tech & Value_030115
Coho_Tech & Value_030115Marius Tudor
 

Viewers also liked (13)

Osallistuva budjetointi - Kontula 25.10.2012
Osallistuva budjetointi - Kontula 25.10.2012Osallistuva budjetointi - Kontula 25.10.2012
Osallistuva budjetointi - Kontula 25.10.2012
 
Downturn Management
Downturn ManagementDownturn Management
Downturn Management
 
My project
My projectMy project
My project
 
Marketingplan
MarketingplanMarketingplan
Marketingplan
 
Banking awareness 2014
Banking awareness 2014Banking awareness 2014
Banking awareness 2014
 
Investment manager performance appraisal
Investment manager performance appraisalInvestment manager performance appraisal
Investment manager performance appraisal
 
E wthe littlleredhenandthperfectedeapplepie
E wthe littlleredhenandthperfectedeapplepieE wthe littlleredhenandthperfectedeapplepie
E wthe littlleredhenandthperfectedeapplepie
 
Telling Stories
Telling StoriesTelling Stories
Telling Stories
 
Evaluation Question 2
Evaluation Question 2Evaluation Question 2
Evaluation Question 2
 
โครงร างโครงงาน
โครงร างโครงงานโครงร างโครงงาน
โครงร างโครงงาน
 
пояснительная записка
пояснительная запискапояснительная записка
пояснительная записка
 
Evaluation question 4
Evaluation question 4Evaluation question 4
Evaluation question 4
 
Coho_Tech & Value_030115
Coho_Tech & Value_030115Coho_Tech & Value_030115
Coho_Tech & Value_030115
 

Similar to SponchiadoDavide_Pubblication

water-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfwater-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfEnriqueBonet3
 
water-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfwater-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfEnriqueBonet3
 
hec-ras_modeling_handout_15391166852036076181.v8.docx
hec-ras_modeling_handout_15391166852036076181.v8.docxhec-ras_modeling_handout_15391166852036076181.v8.docx
hec-ras_modeling_handout_15391166852036076181.v8.docxjijiji9
 
seminar report of " Introduction to HEC RAS "
seminar report  of " Introduction  to HEC RAS "seminar report  of " Introduction  to HEC RAS "
seminar report of " Introduction to HEC RAS "ankit jain
 
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...CDM Smith
 
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...Sikandar Ali
 
Automating HEC-RAS with Excel
Automating HEC-RAS with ExcelAutomating HEC-RAS with Excel
Automating HEC-RAS with ExcelThomas Williams
 
JHydro - an implementation of the digital watershed
JHydro - an implementation of the digital watershedJHydro - an implementation of the digital watershed
JHydro - an implementation of the digital watershedsilli
 
Report Hadoop Map Reduce
Report Hadoop Map ReduceReport Hadoop Map Reduce
Report Hadoop Map ReduceUrvashi Kataria
 
Taylor bosc2010
Taylor bosc2010Taylor bosc2010
Taylor bosc2010BOSC 2010
 
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURE
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURESOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURE
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTUREEminent Planners
 
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...Safe Software
 
Stratosphere with big_data_analytics
Stratosphere with big_data_analyticsStratosphere with big_data_analytics
Stratosphere with big_data_analyticsAvinash Pandu
 

Similar to SponchiadoDavide_Pubblication (20)

water-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfwater-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdf
 
water-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdfwater-10-01382-v2 (2).pdf
water-10-01382-v2 (2).pdf
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
HEC-RAS 5.0.5 Release Notes
HEC-RAS 5.0.5 Release NotesHEC-RAS 5.0.5 Release Notes
HEC-RAS 5.0.5 Release Notes
 
Hec ras
Hec rasHec ras
Hec ras
 
hec-ras_modeling_handout_15391166852036076181.v8.docx
hec-ras_modeling_handout_15391166852036076181.v8.docxhec-ras_modeling_handout_15391166852036076181.v8.docx
hec-ras_modeling_handout_15391166852036076181.v8.docx
 
seminar report of " Introduction to HEC RAS "
seminar report  of " Introduction  to HEC RAS "seminar report  of " Introduction  to HEC RAS "
seminar report of " Introduction to HEC RAS "
 
Georastutorial
GeorastutorialGeorastutorial
Georastutorial
 
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...
ASFPM 2016: Applications of 2D Surface flow Modeling in the New HEC-RAS Versi...
 
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...
Gis based-hydrological-modeling.-a-comparative-study-of-hec-hms-and-the-xinan...
 
Automating HEC-RAS with Excel
Automating HEC-RAS with ExcelAutomating HEC-RAS with Excel
Automating HEC-RAS with Excel
 
Hadoop ppt2
Hadoop ppt2Hadoop ppt2
Hadoop ppt2
 
E031201032036
E031201032036E031201032036
E031201032036
 
JHydro - an implementation of the digital watershed
JHydro - an implementation of the digital watershedJHydro - an implementation of the digital watershed
JHydro - an implementation of the digital watershed
 
Report Hadoop Map Reduce
Report Hadoop Map ReduceReport Hadoop Map Reduce
Report Hadoop Map Reduce
 
Taylor bosc2010
Taylor bosc2010Taylor bosc2010
Taylor bosc2010
 
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURE
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURESOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURE
SOFTWARE APPLICATION FOR SERVICE INFRASTRUCTURE
 
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...
Reporting Summary Information of Spatial Datasets and Non-Compliance Issues U...
 
Flood plain mapping
Flood plain mappingFlood plain mapping
Flood plain mapping
 
Stratosphere with big_data_analytics
Stratosphere with big_data_analyticsStratosphere with big_data_analytics
Stratosphere with big_data_analytics
 

SponchiadoDavide_Pubblication

  • 1. Flood Risk Analysis: scripts connecting OpenGIS with Hec-RAS Ing. Davide Sponchiado 1 , Ing. Enrico Gallo 1 , Ing. Daniele Ganora 1,2 1 CINID – Consorzio Interuniversitario per l'Idrologia 2 DIATI – Politecnico di Torino Abstract A series of scripts are presented to use Grass GIS capabilities to support hydraulic simulations with the Hec-RAS model version 4.1.0. Scripts are intended to provide an open source alternative to the Hec-GEORAS plugin, which runs only on proprietary GIS. This approach allows to process high resolutions DEM to extract the necessary geometrical information required by the model directly within the GIS environment; geometrical data is then exported to the hydraulic model and simulated water levels can be returned to the GIS to facilitate flood risk analysis (or any other water-related study). Exchange of information is performed through a standard text file, which can contain both geometrical and hydraulic data. The code has been developed starting from a set of scripts already available from the open source community and is still under development. Script, written in Python, have been used on GRASS GIS 6.4.3, but they can be easily integrated in the QGIS toolbox. The case study is Belbo creek near Canelli district in the province of Asti. Keywords GRASS GIS, Hec-RAS, QGIS, Hydraulic Simulations, Flood Mapping 1 Introduction Hydrologic and hydraulic analysis of a river reach is a fundamental step for modern land and environmental management. One of the most important activities is the flood risk mapping which is strictly related to people safety and urban development. This kind of analysis is, for instance, strictly related to the D.Lgs 49/2010 on the assessment and management of flood risks (transposition Directive 2007/60/EC, which requires Member States to assess if all watercourses are at risk of flooding, mapping them and reducing possible risk for assets and humans). A widely used model, able to perform such kind of analyses, is the Hec-RAS model developed by the Hydrologic Engineering Center of the US Army Corp of Engineers. Hec-RAS is freely available and it is well recognised to be a powerful and reliable model; the source code is not promptly available, but it can obtained upon request (see the Distribution Policy of the software for details). Hec-Ras binaries runs only on Windows OSs. Currently version 4.1 is the most 1
  • 2. up-to-date release that support 1D modelling only, although a 2D implementation is already available as a beta version (release 5.0). Hec-RAS itself has no GIS features to manage the necessary input data and the results of simulations; however, an extension named Hec-GeoRAS has been released as an ArcGIS plugin to allow the use GIS tools. 2 Hec-RAS features Hec-RAS 4.1.0 is a widely used 1D hydraulic model (although a 2D version is under testing). To perform standard hydraulic simulations, Hec-RAS requires geometric data (section shape, distance between sections), hydrologic data (flow values, roughness), and boundary conditions. Bridges, levees, storage areas, etc. can be included as well, to create a more realistic model. Further analyses can be performed, such as water quality or sediment transport; the interested reader is referred to the official (and unofficial) documentation. For any Hec-RAS project, geometric data can be introduced fundamentally in two ways: the first is by manually input the data in the GUI geometry editor; the second is to act on a particular file of the project, which is a text file with g** extension (** stands for a progressive number as multiple geometries are allowed). This latter can be modified by manually or automatically put the desired information. A particular structure of the file is required. A better solution to import/export model features is through the interchange files .sdf. It is a plain text file in which there are all the information about the geometry of all the elements (first of all, the riverbed and the sections and their elevation). The same file can store (but it is an optional information) hydraulic input data (like streamflow values, roughness) and the results of simulations (such as the water levels, flow velocity). Working with the .sdf file is thus preferable than directly operate on project files as one file. 3 GRASS to Hec-RAS script To extract cross-sections, a high-resolution Digital Elevation Model (DEM) is needed as the topographical base. Two additional vectorial layers are required as well: • a vector layer of lines or polylines representing the cut lines along with to "cut" the DEM • a vector layer with one polyline representing the riverbed. The scripts uses the GRASS command r.profile to extract cross-sections along the cut lines and properly writes the information in the .sdf file. Note that, to fulfil the Hec-RAS rules, cut lines must be drawn from the left bank to the right bank, otherwise manual editing is required to fix the polylines directions. The riverbed layer should be oriented along the flow direction, but in this case, the script automatically detects and corrects possible wrong direction. Both vectors cannot have elements out of the DEM extents. Moreover, the riverbed must intersect all the cut lines once, and cut lines must not intersect themselves. Hec-RAS requires unique section names; names must be numeric (although a string label is also supported in addition to the number), sorted according the 2
  • 3. location of the section along the stream, with increasing numbers moving from the outlet towards the river source. The script automatically enumerates the sections according to their distance from the river outlet. Finally, distances between sections are required as input. For each section, three distance values are necessary: along the main channel, on the left over bank and on the right over bank. The former is calculated by the script along the streambed polyline; the latters can be evaluated in an approximate way (selecting an optional flag), but, in current implementation, a manual input is still suggested. Furthermore it is possible to add the levees (paying attention they don't cross more times the same section) and the left and right banks (i.e. the points of separation between main river and floodplains) drawn as unique line or just at the intersections. The first script creates the .sdf file according the Hec-RAS format; this file can be loaded in Hec-RAS and used to support simulations. Hec-RAS allows for a manual editing of the imported sections. 3 Hec-RAS to GRASS script After the simulations have been performed, water levels can be exported toward the GIS. Currently, only water elevation values from steady state simulations can be exported, but many other variables can be considered in future development. A new .sdf file is written which includes the geometric data used in Hec-RAS and the hydraulic output. The second script creates a vector layer in GRASS with the cut lines; each cutline is characterized by one or more water elevation values (depending on the number of simulated water profiles), stored in the attribute table. Note that, the script is not able to account for the actual water extent along the section. 3 Domain of analysis in GRASS Domain of analysis in Hec-RAS
  • 4. A third script allows the interpolation of water level between the sections to create a raster map. This is a useful tool to map easily the water level in the area of analysis, but it must be used carefully as the interpolation is not performed by hydraulic modelling. For this reason, the script is developed independetly and released separately. REFERENCES Chiraz, P., & Ricci, A. (2013) Studio Associato GfosServices, Terni (Italy). V.grass2hec & v.hec2grass scripts (first version 2008, latest version 2013), from http://www.gfosservices.it. D.Lgs 49/2010 (http://www.camera.it/parlam/leggi/deleghe/10049dl.htm). GRASS (http://grass.osgeo.org/). Hec-RAS (http://www.hec.usace.army.mil/software/hec-ras/). QGIS (http://www2.qgis.org/it/site/). 4 GRASS script GUI The .sdf file Geometric data in Hec-RAS Example of inundated areas