SWAT+ version 2.0 released

655 views
Skip to first unread message

Jaclyn Tech

unread,
Feb 25, 2021, 3:00:18 PM2/25/21
to SWAT+
We are pleased to announce the release of SWAT+ 2.0. The windows installer includes QSWAT+ 2.0.4, SWAT+ Editor 2.0.0, and SWAT+ model rev. 60.5.2.

Download the installer at: https://swat.tamu.edu/software/plus/

We recommend installing QGIS version 3.16 for use with the tools. Be sure to read the release notes to see what has changed. If you have trouble installing, check out our installation troubleshooting guide.

Linux and Mac releases coming soon.

Jaclyn Tech

unread,
Mar 11, 2021, 1:21:56 PM3/11/21
to SWAT+
SWAT+ version 2.0.1 has been released for Linux and MacOS.

There is a small patch including QSWAT+ 2.0.5 and SWAT+ Editor 2.0.1 for Windows as well. 

ehak

unread,
Mar 26, 2021, 7:13:53 PM3/26/21
to SWAT+
Hello all

I am excited about QSWAT+ released for linux recently but encountered an error on my first try:
"/usr/local/share/SWATPlus/TauDEM5Bin/pitremove: error while loading shared libraries: libgdal.so.26: cannot open shared object file: No such file or directory."

I'm running QGIS 3.16.5-Hannover Compiled against GDAL/OGR 3.1.3 in Ubuntu

It appears that the QGIS 3.16.X ltr release for Ubuntu changed from libgdal26 to libgdal27 with the change from Ubuntu Focal Fossa (https://qgis.org/ubuntu-ltr/dists/focal/main/binary-amd64/Packages) to Groovey Gorilla (https://qgis.org/ubuntu-ltr/dists/groovy/main/binary-amd64/Packages).

Any chance TauDEM5Bin will be upgraded in the near future - before I try and downgrade GDAL (to 3.0.4 I think) and all else that entails, Python, QGIS, GRASS?

Thank you all

Jaclyn Tech

unread,
Apr 7, 2021, 4:56:09 PM4/7/21
to SWAT+
SWAT+ version 2.0.3 has been released for Windows, Linux, and MacOS. Download at: https://swat.tamu.edu/software/plus/ 

This patch release includes a small update to QSWAT+ and SWAT+ Editor. The model version for this release is still 60.5.2.

QSWAT+ 2.0.6 revision notes:
  • Lake shapefiles can be used to define reservoirs, ponds, wetlands and playas.
  • Landuse WETW has been added. Existing projects will need to load plantWithWETW.csv using the plant pull-down menu on the CreateHRUs form. The file is located in your SWATPlus/Databases directory.
SWAT+ Editor 2.0.3 revision notes:
  • Added WETW and WETM land uses to swatplus_datasets.sqlite. WETW is for playas and WETM is not currently active. This requires you to update to QSWAT+ version 2.0.6.
  • Improved write time for .con (connect) files. This mostly affects larger projects or grid models.
  • Fix default location of WGN database for Linux/Mac.
General revision notes:
  • On MacOS only, the installation process has been updated. Please check the installation help page for instructions.

Mauricio Zambrano-Bigiarini

unread,
Apr 12, 2021, 7:00:39 AM4/12/21
to Jaclyn Tech, SWAT+
Dear Jaclyn,

Thank you very much for providing the first release of QSWAT+ for GNU/Linux.

I just tried to re-create a project using QSWAT+ 2.0.6 in Linux Mint 20 (Ulyana, based on Ubuntu Focal) with QGIS 3.16.5-Hannover

Everything was ok until Step 3 (Edit Inputs and Run SWAT+), when I got the following error message:

Traceback (most recent call last):
  File "peewee.py", line 6403, in get
  File "peewee.py", line 3987, in __getitem__
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "actions/import_gis.py", line 107, in insert_default
  File "actions/import_gis.py", line 1162, in insert_hru_ltes
  File "actions/import_gis.py", line 268, in get_cn2
  File "peewee.py", line 6001, in get
  File "peewee.py", line 6408, in get
database.datasets.lum.Landuse_lumDoesNotExist: <Model: Landuse_lum> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."cal_group", "t1"."plnt_com_id", "t1"."mgt_id", "t1"."cn2_id", "t1"."cons_prac_id", "t1"."urban_id", "t1"."urb_ro", "t1"."ov_mann_id", "t1"."tile_id", "t1"."sep_id", "t1"."vfs_id", "t1"."grww_id", "t1"."bmp_id", "t1"."description" FROM "landuse_lum" AS "t1" WHERE ("t1"."name" = ?) LIMIT ? OFFSET ?
Params: ['wetw_lum', 1, 0]


Trying to solve the issue I installed the following packages:

peewee
python3-peewee

but the error is still there.

Could you provide a hint about how to solve this problem?
Enclosed you will find the information about QGIS in my system.

Thanks in advance for any help,

Mauricio




Mauricio Zambrano-Bigiarini, PhD
Associate Professor, Universidad de La Frontera
Adjoint Researcher, (CR)2 FONDAP Center
Phone: +56 45 259 2812
e-mail: mauricio...@ufrontera.cl
webpage ORCID Github Linkedin

=======================================
"Focus is about saying No" (Steve Jobs)
=======================================
Linux user #454569 -- Linux Mint user


La información contenida en este correo electrónico y cualquier anexo o respuesta relacionada puede contener datos e información confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). Si usted no es el destinatario de esta comunicación, le informamos que cualquier divulgación, distribución o copia de esta información constituye un delito conforme a la ley chilena. Si lo ha recibido por error, por favor borre el mensaje y todos sus anexos y notifique al remitente.

Las opiniones vertidas en este correo, no contenidas en un documento oficial de la Universidad, son responsabilidad de quien las emite o de quien solicitó su envío, en el ejercicio de su libertad de opinión y de expresión que, como miembro de la comunidad universitaria se le reconoce, y no representan, necesariamente, el pensamiento de la Universidad de La Frontera y de sus directivos.

Qgis_About.png

Jaclyn Tech

unread,
Apr 12, 2021, 12:27:27 PM4/12/21
to SWAT+
Sorry about this! It is actually a problem with the swatplus_datasets.sqlite and the new wetw landuse. I forgot to add some default values in a table. 


Please download and copy to your project folder. Also, use this version as default from now on. Find your SWATPlus/Databases directory and replace the swatplus_datasets.sqlite with the one linked above.

This bug is applicable to all platforms: Linux, Windows, and MacOS.

Thanks,
Jaclyn

Mauricio Zambrano-Bigiarini

unread,
Apr 12, 2021, 7:25:18 PM4/12/21
to Jaclyn Tech, SWAT+
Dear Jaclyn,

Thank you very much for your quick and useful reply. I confirm that the error I previously described also occurred in a Windows machine.

The swatplus_datasets.sqlite file you provided worked fine, until I pressed the "Save Settings & Run Selected" button, where i got the following error message (in the same GNU/Linux machine previously described):


[54197] Failed to execute script swatplus_api

Traceback (most recent call last):
  File "peewee.py", line 6403, in get
  File "peewee.py", line 3987, in __getitem__
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 110, in <module>
  File "actions/write_files.py", line 77, in write
  File "actions/write_files.py", line 421, in write_routing_unit
  File "fileio/routing_unit.py", line 105, in write

  File "peewee.py", line 6001, in get
  File "peewee.py", line 6408, in get
database.project.connect.Rout_unit_eleDoesNotExist: <Model: Rout_unit_ele> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."rtu_id", "t1"."obj_typ", "t1"."obj_id", "t1"."frac", "t1"."dlr_id" FROM "rout_unit_ele" AS "t1" LIMIT ? OFFSET ?
Params: [1, 0]


Thank you in advance for any help about this problem.


Mauricio



Mauricio Zambrano-Bigiarini, PhD
Associate Professor, Universidad de La Frontera
Adjoint Researcher, (CR)2 FONDAP Center
Phone: +56 45 259 2812
e-mail: mauricio...@ufrontera.cl
webpage ORCID Github Linkedin

=======================================
"Focus is about saying No" (Steve Jobs)
=======================================
Linux user #454569 -- Linux Mint user


>> Mauricio Zambrano-Bigiarini, PhD
>> Associate Professor, Universidad de La Frontera
>> Adjoint Researcher, (CR)2 FONDAP Center
>> =======================================
>> "Focus is about saying No" (Steve Jobs)
>> =======================================
>> Linux user #454569 -- Linux Mint user
>>
>>

Tech, Jaclyn B

unread,
Apr 12, 2021, 7:30:00 PM4/12/21
to Mauricio Zambrano-Bigiarini, SWAT+
For this error, can you zip your project folder and send to me? Thanks!




From: Mauricio Zambrano-Bigiarini <mauricio...@ufrontera.cl>
Sent: Monday, April 12, 2021 6:24:40 PM
To: Jaclyn Tech <jac...@tamu.edu>
Cc: SWAT+ <swat...@googlegroups.com>
Subject: Re: [SWAT+ User Group] Re: SWAT+ version 2.0 released
 
Reply all
Reply to author
Forward
0 new messages