TerraHidro Wiki Page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2023/06/20 16:30]
alexandre [Example 1: drainage network and minibasins]
start [2024/01/01 22:44] (current)
alexandre [Download]
Line 4: Line 4:
   * Last stable release:\\   * Last stable release:\\
  
-- Windows (01/06/2023): [[http://​www.dpi.inpe.br/​terrahidro/​download/​TerraHidro-5.2.0.exe|TerraHidro-5.2.0.exe]]\\+- Windows (01/01/2024): [[http://​www.dpi.inpe.br/​terrahidro/​download/​TerraHidro-5.2.0.exe|TerraHidro-5.2.0.exe]]\\
 - Linux (10/​05/​2023):​ [[http://​www.dpi.inpe.br/​terrahidro/​download/​terrahidro-5.2.0.tar.gz|terrahidro-5.2.0.tar.gz]] - Linux (10/​05/​2023):​ [[http://​www.dpi.inpe.br/​terrahidro/​download/​terrahidro-5.2.0.tar.gz|terrahidro-5.2.0.tar.gz]]
  
Line 64: Line 64:
 </​code>​ </​code>​
  
-Additional steps can be executed to produce high-quality vector data. The vectorized drainage network generated with the **d8drainagev** ​funcionality ​simply joins all the drainage network cells that are connected by the D8 flow directions. This procedure generates a vectorized drainage network that contains lines in a raster pattern, which can be improved with some tools from QGIS that smooth the lines for more natural drainage flows. Besides the drainage network, the minibasins raster can be also vectorized, and each polygon smoothed in order to improve the limits of the minibasins.+Additional steps can be executed to produce high-quality vector data. The vectorized drainage network generated with the **d8drainagev** ​functionality ​simply joins all the drainage network cells that are connected by the D8 flow directions. This procedure generates a vectorized drainage network that contains lines in a raster pattern, which can be improved with some tools from QGIS that smooth the lines for more natural drainage flows. Besides the drainage network, the minibasins raster can be also vectorized, and each polygon smoothed in order to improve the limits of the minibasins.
  
 The next commands use the tools available in QGIS 3.22.9 under Windows, where the directory //​C:​\Program Files\QGIS 3.22.9\apps\Python39\Scripts//​ contains the scripts **gdal_sieve.bat** and **gdal_polygonize.bat**,​ and the directory //​C:​\Program Files\QGIS 3.22.9\bin//​ contains the script **grass78.bat**. Both directories were added to the PATH environment variable before executing the scripts. In addition, the scripts **generalize_line.bat** ([[http://​www.dpi.inpe.br/​terrahidro/​download/​generalize_line.bat|generalize_line.bat]]) and **generalize_polygon.bat** ([[http://​www.dpi.inpe.br/​terrahidro/​download/​generalize_polygon.bat|generalize_polygon.bat]]) set the method and the parameters for smoothing the lines and polygons, respectively,​ writing the vector files tocantinsDrainageSmooth.gpkg and tocantinsMinibasinsSmooth.gpkg as output (if necessary, the correct path to the data and file names must be changed inside the scripts). The next commands use the tools available in QGIS 3.22.9 under Windows, where the directory //​C:​\Program Files\QGIS 3.22.9\apps\Python39\Scripts//​ contains the scripts **gdal_sieve.bat** and **gdal_polygonize.bat**,​ and the directory //​C:​\Program Files\QGIS 3.22.9\bin//​ contains the script **grass78.bat**. Both directories were added to the PATH environment variable before executing the scripts. In addition, the scripts **generalize_line.bat** ([[http://​www.dpi.inpe.br/​terrahidro/​download/​generalize_line.bat|generalize_line.bat]]) and **generalize_polygon.bat** ([[http://​www.dpi.inpe.br/​terrahidro/​download/​generalize_polygon.bat|generalize_polygon.bat]]) set the method and the parameters for smoothing the lines and polygons, respectively,​ writing the vector files tocantinsDrainageSmooth.gpkg and tocantinsMinibasinsSmooth.gpkg as output (if necessary, the correct path to the data and file names must be changed inside the scripts).

QR Code
QR Code start (generated for current page)