[general]
name=HydroTorrens
qgisMinimumVersion=4.0
qgisMaximumVersion=4.99
supportsQt6=True
hasProcessingProvider=yes
description=Integrated watershed hydrology, DEM morphometry, land cover (CN/C), IDF frequency analysis, design flood hydrographs, and automated QgsPrintLayout cartography for QGIS 4.
about=HydroTorrens is a native PyQGIS 4 (Qt6) plugin that automates end-to-end surface water hydrology workflows from Digital Elevation Models (DEM):
    1. DEM Conditioning and Drainage Network: Wang & Liu Fill Sinks, D8/MFD/D-Infinity flow accumulation, Strahler stream ordering, topology-preserving Chaikin channel smoothing, GDAL percent slope, and baked RGBA shaded relief.
    2. Watershed Delineation: Upslope Area delineation with guided anti-confluence pour-point snapping and Strahler order verification.
    3. Land Cover, Curve Number (CN) and Runoff Coefficient C(Tr): Hybrid high-resolution ESA WorldCover 10 m + OpenStreetMap, custom CLC vector layers, or IDEAM WFS (1:100,000), with USDA-NRCS TR-55 CN (AMC-I/II/III) and spatial CLC x Slope runoff coefficients C(Tr) (Suarez, 2001 / Chow et al., 1988).
    4. Quantitative Geomorphometry: 55 basin parameters across 7 groups, hypsometric curve, Taylor-Schwarz vs. OLS channel profile, width function, bi-logarithmic Slope-Area (S-A) threshold curve (Flint's Law + Dd sensitivity elbow), and multi-equation Time of Concentration (Tc) comparison.
    5. Hydrometeorology, QA/QC, Extreme Rainfall Frequency and Dual IDF Curves (Colombia-focused): IDEAM CNE station spatial selection, Thiessen polygons with strict <=15 percent missing-data QA/QC and automatic post-QC reweighting, MGBT (USGS Bulletin 17C), Pettitt homogeneity, Double Mass, 11 extreme-value distributions (upper-tail Anderson-Darling and L-moments), WMO-168 ARF, IDW/RBF isohyets, and dual IDF curves (Campos/Bell 60-min transition and INVIAS R1-R4).
    6. Design Floods and Synthetic Unit Hydrographs (Colombia regulatory criteria in Steps 5-6): Rational, Burkli-Ziegler (SI), and Alternating Blocks + SCS-CN synthetic unit hydrographs (adaptive-PRF SCS, Snyder, and DEM-derived time-area Clark IUH) with HEC-RAS/Iber CSV export.
    All modules export self-contained HTML5 technical reports with embedded high-DPI QgsPrintLayout maps (3 selectable styles: Consultancy, Academic Q1, Normative IGAC/ANLA) and optional standalone 400 DPI PNG/PDF plates.
    Geographic scope: Steps 1, 2, 4, Step 3 (Hybrid 10 m + OSM / custom vector), and Step 6 hydrograph synthesis work globally on any projected DEM; Steps 5 and 6 regulatory/hydrometeorological presets (IDEAM catalog, DHIME, INVIAS R1-R4, RAS) are specifically tailored to Colombia.
version=1.0.2

author=Edison Osvaldo Olaya Cortes
email=edison.olaya.ing@gmail.com

homepage=https://github.com/valdocortes1/hydro_torrens
repository=https://github.com/valdocortes1/hydro_torrens
tracker=https://github.com/valdocortes1/hydro_torrens/issues

category=Raster
tags=hydrology, watershed, dem, drainage-network, morphometry, concentration-time, land-cover, curve-number, idf, unit-hydrograph, flood, cartography, qgis4, qt6

icon=icon.png
license=GPL-2.0-or-later
experimental=False
deprecated=False

changelog=1.0.2 - Full Qt6 enum compliance and 100 percent repository scan pass:
    - Qualified all remaining Qt6/QGIS 4 scoped enums in gui/main_dialog.py, core/symbology.py, and core/processing_algorithm.py (14/14 Qt6 Check items resolved).
    - Resolved Flake8 E741 ambiguous variable name in core/report_maps.py.
    1.0.1 - Security hardening and repository compliance:
    - Zero Bandit security issues across the entire codebase (0 High, 0 Medium, 0 Low, 0 nosec suppressions).
    - Migrated all external HTTP requests to strict HTTPS via requests with explicit timeouts, replaced subprocess usage with native Qt6 QProcess for SAGA execution, and replaced silent exception blocks with structured debug logging.
    1.0.0 - Initial public release for QGIS 4 (Qt6):
    - Full 6-step hydrology workflow (DEM/Network, Watershed, Land Cover/CN/C, Morphometry/S-A/Tc, IDEAM Frequency/IDF, Design Floods/Unit Hydrographs) plus Processing Provider.
    - Native QgsPrintLayout high-DPI cartographic engine (3 styles, 8 adaptive map plates, VersaTiles Muted basemap for station networks, optional 400 DPI PNG/PDF export).
    - Zero external xlrd dependency via compressed CNE_IDEAM.csv.gz catalog with live sync from Datos Abiertos Colombia (hp9r-jxuu), IDEAM/partner entity filter, automatic Thiessen reconciliation upon CSV/API ingestion, and multi-DEM/multi-basin layer synchronization.
