Table of Contents

From a TELEMAC 2D model

Preamble

The objective of this tutorial is to model the habitat of the adult barbel from several TELEMAC 2D hydraulic simulations. The results will be visualised in interactive figures, in GIS output and in 3D. The main steps are as follows:

  1. TELEMAC data will be read by the software to create a hydraulic .hyd file.
  2. The substrate data will be read by the software to create a .sub substrate file.
  3. The .hyd and .sub files will be merged into a .hab file from which HABBY can perform habitat calculations.
  4. The biological model of the adult barbel will be selected.
  5. The habitat calculation will be performed.
  6. The results will then be visualised and exported.

Prerequisites

Description of input files

Hydraulics

:!: These files are EDF data and can only be used for HABBY tutorials. :!:

File(s) used Description
d1.slf, d2.slf, d3.slf, d4.slf, d5.slf, d6.slf d7.slf, d8.slf, d9.slf 2D TELEMAC modelling of a multi-flow braided river. These files are permanent discharge simulation result files. Each file represents a simulated constant discharge. Each file contains a single time step.
indexHYDRAU.txt To use multiple hydraulic input files at the same time in HABBY, it is necessary to have previously created a indexHYDRAU.txt file to assign a discharge value to each input file.
discharge_chronicle.txt This file is used with the HABBY interpolation tool (optional for habitat calculation).

Here are the contents of the indexHYDRAU.txt file:

EPSG=unknown
filename Q[m3/s]
d1.slf 9.2
d2.slf 21.2
d3.slf 35
d4.slf 48.4
d5.slf 74.7
d6.slf 110
d7.slf 150
d8.slf 175
d9.slf 259

*User guide: Creating a .hyd file.

Substrate

:!: These files are fictitious data and are used only for the tutorial. :!:

File(s) used Description
sub_PolygonSandreCoarser-dom.shp (and associated files .shx, dbf, ..) This GIS data is of type Shapefile and represents polygons of homogeneous substrate. Mapping method : Polygon (Polygon). Classification code : Sandre (Malavoi and Souchon 1989). Classification method: coarser-dominant (PlusGros-Dominant).
sub_PolygonSandreCoarser-dom.txt It is necessary to have previously created a file with the same name as the Shapefile, i.e. 'sub_PolygonSandreCoarser-dom.txt' in order to indicate to HABBY the classification code and the classification method of the substrate as well as the default substrate values (in case of not complete superposition of the substrate on the hydraulic). The latter is provided with the example data set.

Here are the contents of the file 'sub_PolygonSandreCoarser-dom.txt':

substrate_classification_code=Sandre
substrate_classification_method=coarser-dominant
default_values=12, 12

*User guide: Detailed description of substrate files

Step by step

Create a new project

This opens the HABBY - New Project window.

The project is then created and gives you access to new tabs.

*User guide : Project creation

Creating a .hyd file

This opens the input file manager for TELEMAC.

Once the process is complete, a file 'd1_to_d9.hyd' is created.

*User guide: Creating a .hyd file

Creating a .sub file

Once the process is finished, a file 'sub_PolygonSandreCoarser-dom.sub' is created.

*User guide: Creating a .sub file

Creating a .hab file

Once the process is finished, a 'd1_to_d9_sub_PolygonSandreCoarser-dom.hab' file is created.

*User guide: Merging Hydraulics and Substrate

Habitat calculation

This opens the biological model explorer.

The model 'Barbus barbus - adult - BAF01' has been added to the list of models to be calculated.

Once the process is finished, the result of the model 'BAF01_adult_HV_Dominant' has been added to the file 'd1_to_d9_sub_PolygonSandreCoarser-dom.hab'. By default, at each calculation, the text habitat calculation result file is created: 'd1_to_d9_sub_PolygonSandreCoarser-dom_spu.txt' describing the habitat values and the weighted usable area of adult barbel for each simulated discharge.

You can view the results in detail, either via the figures or via exports from the explorateur de données.

The *User guide: Calculating habitat from a .hab file explains in more detail the possibilities offered by HABBY.

Visualising habitat results

Preamble

In this tutorial, for the adult barbel, we will :

  1. Create figures to visualise:
    1. an interactive habitat map for a discharge of 74.7 m3/s.
    2. an interactive habitat record for all discharges.
  2. Create GIS, 3D and TXT file exports.
  3. View the exported files:
    1. GIS representing the mesh for all discharges (.gpkg).
    2. 3D representing the topography of the river bottom (.stl).
    3. 3D representing the water level for all discharges (.pvd representing several .vtu).
    4. TXT describing the state of the mesh for all discharges.

To view the data in detail as a figure and as a file export:

*User guide: Data Explorer

Figures

Interactive map

An interactive habitat map is then displayed.

NB: To close all interactive figure windows, use the button in the main window's quick menu.

Interactive Chronicle

An interactive habitat chronicle is then displayed.

NB: To close all interactive figure windows, use the button in the main window's quick menu.

Exports

In the Data Explorer tab, for file types, check that 'habitat' is selected.

At the end of the process, all the requested files have been exported.

NB: All exported files are located in the project's output directory. To access them, use the button in the main window's quick menu.

SIG

First, we will look at the exports Geopackage (.gpkg) Mesh units, which is the file 'd1_to_d9_sub_PolygonSandreCoarser-dom_Troncon D_mesh.gpkg'.

This Geopackage file contains several layers (each equivalent to a Shapefile) of triangular polygons (mesh data) for each discharge.

The attribute tables of these layers contain all the mesh data including the habitat data of the adult barbel.

3D

In a second step, we will look at the exports 3D (.stl) Mesh whole profile, i.e. the file 'd1_to_d9_sub_PolygonSandreCoarser-dom_Troncon D_unit_all_wholeprofile_mesh.stl'. This 3D .stl (stereolithography) file represents the digital terrain model of the watercourse in 3 dimensions.

In a third step, we will look at the exports 3D (.pvd, .vtu) Mesh units, namely:

Together, these 3D .pvd and .vtu files represent the water level in 3 dimensions for each unit.

TXT

Finally, we will look at the TXT exports in the '…\Tuto_TELEMAC\outputtext' project directory, i.e. :

These can be directly used in a spreadsheet by drag and drop.

Using the interpolation tool

Preamble

The objective of this last part of the tutorial is to find out the habitat values for a discharge time series using the Interpolation tool.

*User guide: Interpolation

Available data

The Desired data group is then ready to choose the data to be interpolated.

Desired data

The interpolated results are then displayed in the Interpolated results group.

Interpolated results