Solution to soil value error in step create HRUs swat+gwflow

21 views
Skip to first unread message

Benthe

unread,
Jul 2, 2025, 9:23:57 AM7/2/25
to SWAT+ Editor

Hi all,

Just sharing a quick fix in case it helps someone else. I was getting an error during HRU creation of my SWAT+gwflow module — “unknown soil value: 1233” — even though 1233 was present in my soil raster and the main usersoil file.

The issue turned out to be that soil ID 1233 wasn’t included in the soil lookup table (CSV) that links raster values to soil names/labels.

Fix:
I manually added a row for soil 1233 in the lookup CSV file, gave it the name "DPSIR|_1233" like the rest, and pointed it to the right soil data. After that, HRU creation worked fine.

Hope this is a correct way of doing it and helps anyone facing the same error

Cheers, 

Benthe

Reply all
Reply to author
Forward
0 new messages