Skip to content

Commit

Permalink
Release 1.4.3 preparation
Browse files Browse the repository at this point in the history
- Slope calculation is now available for each HRU by uploading a DEM
- Update of docs
  • Loading branch information
lorenz3tla committed Aug 9, 2024
1 parent 5585aea commit 6a58db6
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 85 deletions.
6 changes: 6 additions & 0 deletions QTalsim/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.4.3] - 2024-08-09
- Enhancements
- Land use mapping has been improved to match the process of soil mapping (CSV upload is no longer required)
- Slope calculation is now available for each HRU by uploading a DEM
- HRU creation now allows for the omission of parameters, requiring only a unique identifier

## [1.4.2] - 2024-07-18
- Minor Bug fix
- Fixes ordering issue for ASCII outputs to ensure they are ordered by ID columns.
Expand Down
2 changes: 1 addition & 1 deletion QTalsim/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name=QTalsim
qgisMinimumVersion=3.34
description=This plugin creates hydrological response units (HRUs) suitable for Talsim (http://www.talsim.de/) and allows users to connect to a Talsim DB.
version=1.4.2
version=1.4.3
author=SYDRO Consult GmbH
email=l.treitler@sydro.de

Expand Down
147 changes: 89 additions & 58 deletions QTalsim/qtalsim.py

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions QTalsim/qtalsim_dialog_base.ui
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-718</y>
<y>0</y>
<width>948</width>
<height>1497</height>
</rect>
Expand Down Expand Up @@ -138,20 +138,6 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QLabel" name="labelSlopeField">
<property name="text">
<string>Slope Field</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboboxSlopeField"/>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="onEZG">
<property name="minimumSize">
Expand Down Expand Up @@ -720,7 +706,21 @@
<property name="title">
<string>Intersection of Layers</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_18">
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="labelDEM">
<property name="text">
<string>Select Digital Elevation Model (DEM)</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboboxDEMLayer"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'QTalsim'
copyright = '2024, Sydro Consult GmbH'
author = 'Sydro Consult GmbH'
release = '1.4.2'
release = '1.4.3'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
16 changes: 7 additions & 9 deletions docs/hrus_step_by_step.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ Select Sub-basin Layer

First, select the layer containing the sub-basins from the
drop-down-menu that lists all polygon layers in your current QGIS
project. Confirm your selection by clicking on the ‘Confirm
project. After selecting the layer, the sub-basin layer's fields containing the
unique identifier must be selected from
the drop-down menu. Confirm your selection by clicking on the ‘Confirm
Sub-basins’-Button. Upon clicking this button the Sub-basin layer
is selected, and overlapping features and duplicates are removed.
You can inspect the result in your QGIS project (layer
'Sub-basins').

After selecting the sub-basin layer's fields containing 1) the
unique identifier and 2) the slope values must be selected from
the drop-down menu. These fields are utilized in the final
EFL-layer and serve as input parameters to Talsim.

|Select Sub-basin|

Elimination of Hydrologic Response Units (HRUs)/small polygons
Expand Down Expand Up @@ -222,11 +219,12 @@ Intersection of Layers
.. _intersection-layers:

This step results in the creation of the files: BOD, BOA, LNZ and
EFL, which can be used as input files for Talsim. To generate the
HRUs, the three layers (sub-basins, soil and land use) are
EFL, which can be used as input files for Talsim. To calculate the slope of each HRU, the user
must input a digital elevation model. This is used to calculated the mean slope for each of created HRUS.
To generate the HRUs, the three layers (sub-basins, soil and land use) are
intersected in a first step. The user can set a minimum size of
the HRUs [m²] and a minimum percentage of HRUs relative to the
sub-basin's area. Please note, that the sum of the areas of all HRUs with the same parameters is
sub-basin's area (see above). Please note, that the sum of the areas of all HRUs with the same parameters is
compared with the area of the corresponding sub-basin. HRUs that fall below the specified size or
percentage share are deleted and filled using the
‘Eliminate’-tool. You can select the elimination-mode from the
Expand Down
Binary file modified docs/qtalsim_screenshots/Intersection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/qtalsim_screenshots/SelectSubBasin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a58db6

Please sign in to comment.