Skip to content
InigobarbePublic

About

QGIS plugin to set up, run and analyse the AnnAGNPS/TopAGNPS watershed model (runoff, erosion, nutrients). Download qannagnps.zip from the latest Release and in QGIS use Plugins > Install from ZIP, or add https://github.com/Inigobarbe/QAnnAGNPS/releases/latest/download/plugins.xml as a plugin repository.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QAnnAGNPS

The AnnAGNPS watershed model inside QGIS
Build, run, calibrate and compare models of runoff, soil erosion and diffuse pollution.

Install in QGIS with automatic updates   Releases: download qannagnps.zip

Tip

Two ways to install. Recommended: connect QGIS once to the QAnnAGNPS repository (https://github.com/Inigobarbe/QAnnAGNPS/releases/latest/download/plugins.xml) and every new version appears in Plugins › Manage and Install Plugins › Upgradeable. Or download qannagnps.zip from Releases each time. Step by step · Pasos en español

Latest version QGIS 3.28+ and 4 Windows License CC BY-ND 4.0


QAnnAGNPS brings the USDA AnnAGNPS model (Annualized Agricultural Non-Point Source pollution model) and its terrain processor TopAGNPS into QGIS, so the whole workflow of a watershed study is done from one place, without editing the model input files by hand. AnnAGNPS is a continuous, daily simulation model that estimates how much runoff, sediment, nitrogen, phosphorus, organic carbon and pesticides leave agricultural watersheds, where they come from and how they respond to management.

QAnnAGNPS main window

Installation

You need Windows and QGIS 3.28 or later (QGIS 4 also works). The AnnAGNPS and TopAGNPS programs are included in the plugin, so there is nothing else to install.

The easiest way is to add the QAnnAGNPS repository to QGIS once. QGIS then installs the plugin and tells you about every new version, which you can install with one click.

  1. In QGIS, open Plugins › Manage and Install Plugins… and go to Settings.

  2. Under Plugin repositories, press Add… and fill in:

    • Name: QAnnAGNPS
    • URL: https://github.com/Inigobarbe/QAnnAGNPS/releases/latest/download/plugins.xml

    Press OK. The repository appears in the list as connected.

  3. Go to the All tab, search for QAnnAGNPS and press Install Plugin.

  4. Open QAnnAGNPS with its button in the toolbar, or from the Vector › QAnnAGNPS menu.

Updating: when a new version is published, QGIS shows it in the Upgradeable tab of the same window (and QAnnAGNPS also shows a small message at the top of the map). Press Upgrade Plugin. Your projects are kept.

Without the repository: install from ZIP
  1. Download qannagnps.zip. Do not unzip it.
  2. In QGIS, open Plugins › Manage and Install Plugins… › Install from ZIP, choose qannagnps.zip and press Install Plugin. QGIS may warn you that the plugin comes from outside its official repository: press Yes.
  3. To update, do the same with the new qannagnps.zip: it replaces the old version.

Don't use the green Code › Download ZIP button of this page: that zip is the source code with a folder called QAnnAGNPS-master, and QGIS can't load a plugin with that name.

The plugin checks for new versions at most once a day. It only asks GitHub which is the latest version and sends no information about you or your projects.

Instalación

Necesitas Windows y QGIS 3.28 o posterior (también funciona con QGIS 4). Los programas AnnAGNPS y TopAGNPS vienen dentro del complemento, así que no hay que instalar nada más.

Lo más cómodo es añadir una vez el repositorio de QAnnAGNPS a QGIS. Así QGIS instala el complemento y te avisa de cada versión nueva, que se instala con un clic.

  1. En QGIS, abre Complementos › Administrar e instalar complementos… y ve a Configuración.

  2. En Repositorios de complementos, pulsa Añadir… y rellena:

    • Nombre: QAnnAGNPS
    • URL: https://github.com/Inigobarbe/QAnnAGNPS/releases/latest/download/plugins.xml

    Pulsa Aceptar. El repositorio aparece en la lista como conectado.

  3. Ve a la pestaña Todos, busca QAnnAGNPS y pulsa Instalar complemento.

  4. Abre QAnnAGNPS con su botón de la barra de herramientas o desde el menú Vectorial › QAnnAGNPS.

Actualizar: cuando sale una versión nueva, QGIS la muestra en la pestaña Actualizables de la misma ventana (y QAnnAGNPS también muestra un pequeño aviso encima del mapa). Pulsa Actualizar complemento. Tus proyectos se conservan.

Sin el repositorio: instalar desde ZIP
  1. Descarga qannagnps.zip. No lo descomprimas.
  2. En QGIS, abre Complementos › Administrar e instalar complementos… › Instalar a partir de ZIP, elige qannagnps.zip y pulsa Instalar complemento. Si QGIS avisa de que el complemento no viene del repositorio oficial, pulsa Sí.
  3. Para actualizar, haz lo mismo con el qannagnps.zip nuevo: sustituye a la versión anterior.

No uses el botón verde Code › Download ZIP de esta página: ese zip es el código fuente, con una carpeta llamada QAnnAGNPS-master, y QGIS no puede cargar un complemento con ese nombre.

Getting started

In the About tab:

  • Getting Started explains the workflow in a few steps.
  • Guided tour walks you through every window of the plugin. Each window also has its own Tour button.
  • Start from example fills a project with an example watershed that is ready to run, so you can see the whole workflow before using your own data.

What it does

  • Preprocessing: watershed delineation, drainage network and cells with TopAGNPS from a DEM, and the soil and management maps of each cell.
  • Automatic data download, with no registration:
    • DEM: IGN for Spain, USGS 3DEP for the USA, and Copernicus GLO-30 worldwide.
    • Daily climate: NASA POWER and Open-Meteo.
    • Land cover: ESA WorldCover.
    • Soils: ISRIC SoilGrids.
    • In Spain, the crops declared to the CAP (FEGA SIGPAC), to build crop rotations field by field.
  • Processing: a guided editor for the AnnAGNPS input data, with sensible defaults and checks before running the model.
  • Results: maps and graphs of runoff, erosion and nutrient losses by cell and over time, and ephemeral gully erosion.
  • Sensitivity and uncertainty analysis: Sobol and Morris methods, run in parallel on all CPU cores.
  • Automatic calibration against observed data, using Bayesian optimisation with NSE, KGE, RMSE or PBIAS.
  • Scenario analysis: compare management practices, crops or climate against a baseline, with annual averages, percentage changes, seasonality, exceedance curves and a summary of every pollutant.

Problems and suggestions

If something doesn't work or you have an idea, please open an issue. Include the QGIS version, what you were doing, and the message that appeared, if there was one.

Citation

If you use QAnnAGNPS in your work, please cite the article that describes it.

Authors and license

© 2026 Iñigo Barberena Ruiz, Public University of Navarre (UPNA), Spain.

QAnnAGNPS is licensed under Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0). You can use it and share it as it is, also for commercial purposes, as long as you credit the author. You can't distribute modified versions.

AnnAGNPS and TopAGNPS are developed by the USDA Agricultural Research Service.

About

QGIS plugin to set up, run and analyse the AnnAGNPS/TopAGNPS watershed model (runoff, erosion, nutrients). Download qannagnps.zip from the latest Release and in QGIS use Plugins > Install from ZIP, or add https://github.com/Inigobarbe/QAnnAGNPS/releases/latest/download/plugins.xml as a plugin repository.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages