Gettin error when extracting files to SWAT+ Editor from QGIS

42 views
Skip to first unread message

wiston robert

unread,
Aug 25, 2024, 11:12:39 AM8/25/24
to SWAT+ Editor
Hi Memmbers I am getting the below highlighted in blue, I was extracting input files to SWAT+ Editor. I applied the same land used data and lookup table i used in SWAT2012, can this be reason for an error ? How can i prepare my land use data required in SWAT+, because I am analysing the impact of land use/cover on stream flow using SWAT+

Traceback (most recent call last):
  File "peewee.py", line 7253, in get
  File "peewee.py", line 4553, 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 121, in insert_default
  File "actions\import_gis.py", line 1254, in insert_hru_ltes
  File "actions\import_gis.py", line 282, in get_cn2
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, 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: ['None_lum', 1, 0]

Jaclyn Tech

unread,
Aug 26, 2024, 1:18:37 PM8/26/24
to SWAT+ Editor
Hi, there was an issue for SWAT+ lte imports in the editor looking up default curve number values for plants not in the default SWAT+ plant table. I am hoping this is fixed now in version 3.0.4, available here: https://github.com/swat-model/swatplus-editor/releases/tag/v3.0.4
Reply all
Reply to author
Forward
0 new messages