HecrasInputBuilder¶
HecrasInputBuilder writes the sections of RiverSectionsExtractor as a geometry file for the GIS import of HEC-RAS, the 1D and 2D hydraulic model of the US Army Corps of Engineers. The file follows the spatial data format of the import (the .sdf files of HEC-GeoRAS): a single reach, with its centerline and its cross sections, in metric units.
The river stations of the sections are numbers that grow upstream, and the reach lengths are the distances to the next section along the river and along the ends of the sections. The whole section is the main channel, with a Manning coefficient of 0.0333, the Gauckler-Strickler coefficient of 30. The banks and the roughness are meant to be refined in HEC-RAS after the import.
Warning
Each section gets two levees at its ends, with the length of the section as their elevation: in a mountain valley they are far below the terrain and have no effect, but where the terrain is lower than the length of the sections in meters they act as walls. Remove or correct them in HEC-RAS.
Details¶
The file follows the spatial data format of the GIS import of HEC-RAS (the .sdf files of HEC-GeoRAS): a single reach, with its centerline and its cross sections, in metric units.
The river stations of the sections are numbers that grow upstream, the reach lengths are the distances between the sections along the river and along their ends. The whole section is the main channel, between the bank positions 0 and 1, with a Manning coefficient of 0.0333 (a Gauckler-Strickler coefficient of 30). Two levees are written at the ends of each section, with the length of the section as their elevation: they have no effect where the terrain is higher than that, but have to be removed or corrected in HEC-RAS elsewhere.
The banks, the levees and the roughness are meant to be refined in HEC-RAS after the import.
Parameters¶
Writes the sections of RiverSectionsExtractor as a geometry file for the GIS import of HEC-RAS.
Toolbox folder: Hydro-Geomorphology
Status: Experimental
Keywords: Hecras, Raster, Vector, Hydraulic
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.modules.HecrasInputBuilder
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
vector file |
The points of the river between the sections, from RiverSectionsExtractor. |
||
|
vector file |
The section lines, from RiverSectionsExtractor. |
||
|
vector file |
The points of the sections, with their elevation, from RiverSectionsExtractor. |
||
|
String |
|
The id of the river in HEC-RAS. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The output file for HEC-RAS (.sdf). |
Example¶
The example writes the sections of the example of RiverSectionsExtractor, on the main valley of the sample area:
import org.hortonmachine.modules.HecrasInputBuilder
// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"
// the sections of RiverSectionsExtractor, written for the GIS import of HEC-RAS
var hecras = new HecrasInputBuilder()
hecras.inRiverPoints = folder + "river_points.shp"
hecras.inSections = folder + "sections.shp"
hecras.inSectionPoints = folder + "section_points.shp"
hecras.pTitle = "flanginec"
hecras.outHecras = folder + "flanginec.sdf"
hecras.process()
The beginning of the file, with the reach from its upstream end, and the first cross section:
# Header must contain a record to identify the unit system used in the imported data set
BEGIN HEADER:
# Number of reaches
NUMBER OF REACHES: 1
# Number of cross sections
NUMBER OF CROSS-SECTIONS:
35
# Unit system used
UNITS: METRIC
END HEADER:
BEGIN STREAM NETWORK:
# List of all endpoint of the multiline that represents the river
ENDPOINT: 1639985.0,5113775.0,1955.1600341796875, 1
ENDPOINT: 1638705.0,5112805.0,1375.737060546875, 2
# Description of the river reach
REACH:
STREAM ID: flanginec
REACH ID: headwaters
# Upsteam endpoint
FROM POINT: 1
# Downsteam endpoint
TO POINT: 2
# Coordinates and floating point station value to draw the river network:
CENTERLINE:
1639985.0, 5113775.0, 1955.1600341796875, 209
1639979.0, 5113767.0, 1950.1689453125, 208
...
BEGIN CROSS-SECTIONS:
# New Cross Section
# Cross section must include records identifying the stream, reach and station value of cross section
CROSS-SECTION:
STREAM ID: flanginec
REACH ID: headwaters
STATION: 210
BANK POSITIONS: 0.0, 1.0
REACH LENGTHS: 70.74648682614566, 50.0, 29.576641453276633
NVALUES:
0.00, 0.0333
LEVEE POSITIONS:
1,0.0,0.0
2,1.0,120.0
CUT LINE:
1640033.0, 5113739.0
1639937.0, 5113811.0
SURFACE LINE:
1640033.0, 5113739.0, 1960.803955078125
1640025.0, 5113745.0, 1957.1629638671875
...