[general]
name=WetSpass-M Modern
description=Spatially distributed monthly water balance model for QGIS. Estimates groundwater recharge, evapotranspiration, surface runoff, and interception using GeoTIFF inputs. Adds a dynamic soil-water bucket to the original Wetspass-M 2016 physics, with automatic spin-up convergence detection.
about=WetSpass-M Modern is a modernized version of the original Wetspass-M 2016 model (Abdollahi, Bashir & Batelaan, Vrije Universiteit Brussel). It estimates diffuse and focused groundwater recharge, evapotranspiration, surface runoff, and interception at monthly, seasonal, and annual time steps.
    The modernization preserves the original physics but adds:
    - A dynamic soil-water bucket (soil moisture carried forward between months) replacing the original quasi-steady-state assumption. Essential for seasonally-concentrated rainfall regimes such as monsoonal, Mediterranean, and semi-arid climates.
    - An ET cap at (P - runoff) instead of P, ensuring the catchment-scale mass balance closes exactly.
    - Groundwater-fed ET reported separately as Cell_gw_discharge, outside the precipitation balance.
    - Nodata-preserving aggregation so annual rasters share the same valid-cell mask.
    - Automatic spin-up with convergence detection (mean |dS| compared to max(1 mm, 0.5%% of mean annual P)).
    - Automatic checkpointing after every completed month, so a power loss or drive disconnection resumes where it stopped.
    - A dedicated Water Balance tab with explicit dS and an acceptability verdict.
    - A Wetspass-M 2016 compatibility mode for validation against legacy results.
    - A Focused Recharge module for streambed infiltration along ephemeral stream networks.
    Inputs: 12 monthly climate rasters (rainfall, PET, temperature, wind, groundwater depth), a DEM, land use, soil, and optional slope. Outputs: monthly, seasonal, and annual GeoTIFFs of every flux, plus a per-month summary table.
    Original authors (Wetspass-M 2016):
    K. Abdollahi, I. Bashir, O. Batelaan - Vrije Universiteit Brussel
    Modernization:
    M. G. Gurmu
    Email: mggurmu@gmail.com
version=2.0.2
qgisMinimumVersion=3.28
qgisMaximumVersion=4.99
author=M. G. Gurmu
email=mggurmu@gmail.com
repository=https://github.com/Lafto/wetspass_modern
tracker=https://github.com/Lafto/wetspass_modern/issues
homepage=https://github.com/Lafto/wetspass_modern
category=Raster
icon=icon.png
experimental=False
deprecated=False
tags=water balance,groundwater recharge,evapotranspiration,runoff,hydrology,water resources,wetspass,recharge,soil moisture,modelling,raster,climate,spatial analysis,monthly,groundwater,streamflow
changelog=2.0.2 — Qt6 compatibility and code-quality fixes
    2026-10-01
    - Full Qt6 compatibility. All Qt enums now use their fully scoped
      names (Qt.AlignmentFlag.*, QMessageBox.StandardButton.*,
      QHeaderView.ResizeMode.*, QFont.Weight.*, QFrame.Shape.*,
      QEvent.Type.*, Qt.WindowType.*, QSizePolicy.Policy.*,
      QAbstractItemView.EditTrigger.*, QAbstractItemView.SelectionMode.*,
      QAbstractItemView.SelectionBehavior.*, Qt.FocusPolicy.*,
      Qt.ScrollBarPolicy.*, Qt.TextFormat.*). The plugin now loads
      cleanly in both Qt5 (QGIS 3.28–3.34) and Qt6 (QGIS 3.36+) without
      deprecation warnings.
    - Replaced all remaining try/except/pass and try/except/continue
      blocks with contextlib.suppress or a small helper function in
      wetspass_plugin.py, ui/main_dialog.py, ui/water_balance_tab.py,
      and ui/worker.py. Fixes Flake8 B110 and B112.
    - Renamed the ambiguous loop variable 'l' to 'line' in
      ui/water_balance_tab.py. Fixes Flake8 E741.
    - Replaced subprocess.Popen with QDesktopServices.openUrl for the
      "Show in folder" button. Fixes Bandit B603/B607 without needing
      suppression comments.
    - Fixed metadata.txt continuation-line indentation and escaped
      literal percent signs so the repository parser accepts the file.
    - No functional or numerical changes. Model results are identical
      to 2.0.1.

[extras]
hasProcessingProvider=yes

[author]
name=M. G. Gurmu
email=mggurmu@gmail.com