Import sections and cross profiles in text format

It is possible to import sections from text files containing tables with values separated by tabs, on several lines. This file can be at the formats described bellow, or be a Mascaret geo file.

In the case of a text file, all formats managed by SIC are available:

  • L or 1 = Section of type Width - Cote
  • A or 2 = Section of type Abscissa - Cote
  • C or 3 = Section of type Circular
  • D or 4 = Section of type Culvert
  • P or 5 = Section of type Power
  • R or 6 = Section of type Rectangular
  • T or 7 = Section of type Trapezium

To access the Import window sections of a reach, there are two possibilities:

  • Select a reach, make a right-click and choose "Import sections" in the context menu;
  • In the description window of a reach, click the "Import" button at the top of the window.

These tables can be quite varied in format (see below).

Before each abscissa-elevation table, a line allows to import the general data of the section, separated by the characters $ (dollar).

  1. Section name
  2. Abscissa
  3. Minor-Medium elevation overflow (for minor-medium bed section) or distance for the major bed (for a major bed section)
  4. Section type : 1 for major bed section, 0 for minor bed section or minor-medium bed section if the minor-medium elevation overflow is filled
  5. Format of the section with a letter of number code (L or 1, A or 2, C or 3, D or 4, P or 5, R or 6, T or 7)
  • # Latitude in decimal degrees or in metric unit (option)
  • # Longitude in decimal degrees or in metric unit (option)
  • # Geolocation reference of the section (option, soon)
  • # Lateral offset of the geolocation reference (option, soon)
  • # Angle of the section with respect to a reference (option, soon)

The abscissa and the overflow elevation are optional. In the absence of values??, the abscissa default will be 0 and the section will be considered as a minor bed section (without elevation overflow minor-medium). If the section format is not given the Abscissa- Elevation format will be supposed (therefore corresponding to the A or 2 code)

Format accepted for tables abscissa-elevation

Normal table

On one column:

Abs1 <tab> Cote1
Abs2 <tab> Cote2
Abs3 <tab> Cote3
Abs4 <tab> Cote4

On several columns:

Abs1 <tab> Cote1<tab>Abs2 <tab> Cote2
Abs3 <tab> Cote3<Tab>Abs4 <tab> Cote4

Transposed table

On a row:

Abs1 <tab> Abs2 <tab> Abs3 <tab> <Abs4>
Cote1 <tab> Cote 2 <tab> Cote 3 <tab> < Cote 4>

On several rows:

Abs1 <tab> Abs2
Cote1 <tab> Cote 2
Abs3 <tab> <Abs4>
Cote 3 <tab> < Cote 4>

Example of imported file

Section 1 $ 1000 $ 1
-27.5        3.77
-15        2.45
-10        2
-5        0.37
0        -0.17
5        -0.03
10        0
15        -0.38
20        2.42
25        3.83
Section2 $ 2000
-28.73        3.14
-25.8        3.34
-23.99        3.74
-19.03        3.39
-15        2.08
-10        0.27
-5        -1.21
0        -1.11
5        -0.96
10        -0.63
15        -1.09
18        2.06
19.83        2.78
21.13        2.75
23.3        2.59
24.97        1.9
Section 3$ 3000
-29.38        2.25
-28.26        2.68
-26.68        2.74
-25        2.14
-20        -0.52
-15        0.16
-10        -1.2
-5        -1.12
0        -0.16
5        0.38
10        -0.22
15        -0.39
20        -0.86
24.62        2.54
28.39        2.97
30.27        3.52

For the format Width - Elevation (code L or 1) we also have access to 2 possibilities : normal or transposed, with the same idea as above but with Width instead Abscissas.

For the parametered formats the transposed mode does not exist. Data must be given under the following format:

C or 3 = Section of type Circular:

Radius
Bank Elevation <tab> Bed Elevation

D or 4 = Section of type Culvert:

Width<tab> Side slope
Bank Elevation <tab> Bed Elevation

P or 5 = Section of type Power:

Width<tab> Coeff Power
Bank Elevation <tab> Bed Elevation

R or 6 = Section of type Rectangular:

Width
Bank Elevation <tab> Bed Elevation

T or 7 = Section of type Trapezium:

Width<tab> Side slope
Bank Elevation <tab> Bed Elevation

Example with different formats:

section1  $         0.0  $ $ $ A
  -99.547              25.486
  -84.567              16.489
   84.567              16.489
   99.547              25.486
section2  $       800.0  $ $ $ L
  149.536              15.432
  189.072              25.419
section3  $       875.0  $ $ $ C
  111.111
   25.409              15.603
section4  $      1185.0  $ $ $ D
  222.222               0.5
   25.379              15.661
section5  $      1525.0  $ $ $ P
  127.411               0.536
   25.333              15.274
section6  $      2050.0  $ $ $ R
  171.086              
   25.226              17.043
section7  $      2725.0  $ $ $ T
  176.586               0.536
   25.096              17.318

Import command line

If large numbers of reaches must be created, it is possible to automate this import by calling the software from the command line with multiple profile files as parameters. For more information, see dedicated chapter.