Outlet Assertion Error

53 views
Skip to first unread message

Paige B

unread,
Sep 23, 2025, 10:51:37 AMSep 23
to SWAT+
Hi Everyone,

When I try to move on after delineating my watershed this error appears:

2025-09-23T10:26:44     WARNING    Traceback (most recent call last):
              File "C:\Users/paige/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\delineation.py", line 4670, in runLandscape
              self.makeDistancesToOutlets()
              File "C:\Users/paige/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\delineation.py", line 1437, in makeDistancesToOutlets
              threshold = self._gv.topo.makeOutletThresholds(self._gv, root)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "C:\Users/paige/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\QSWATTopology.py", line 3732, in makeOutletThresholds
              assert len(self.outlets) > 0
              ^^^^^^^^^^^^^^^^^^^^^
             AssertionError


I used the draw outlets feature and adjusted the snap threshold to 1000m to account that the points snap to streams. Does anyone know how I may solve this issue?


Thank you!

Chris George

unread,
Sep 23, 2025, 11:49:00 AMSep 23
to Paige B, SWAT+
Do you have at east one outlet (INLET attribute is zero and RES
attribute is zero) in your inlets/outlets file?

Did delineation report that all points were snapped?

If both these are true, send me your project folder and I will investigate.

Chris

On 9/23/2025 3:29 PM, Paige B wrote:
> Hi Everyone, When I try to move on after delineating my watershed this
> error appears: 2025-09-23T10: 26: 44     WARNING    Traceback (most
> recent call last):               File "C: \Users/paige/AppData/Roaming/
> QGIS/QGIS3\profiles\default/python/
> plugins\QSWATPlus\QSWATPlus\delineation. py",
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatplus+u...@googlegroups.com
> <mailto:swatplus+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatplus/caebf011-5d98-475a-a7db-1aa26ff243c8n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/swatplus/
> caebf011-5d98-475a-a7db-1aa26ff243c8n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> FZnjBv3oRgR5udQMY7R89Dgyy-190SfNdlXanLHqeekl-2EX1FcPgFyONkvT0cu8J_EBWYB2ZvUflHZsbjXsTy6GDg$>.

Paige B

unread,
Sep 27, 2025, 10:20:19 PMSep 27
to SWAT+
I checked both of these, the RES and INLET are both zero and all outlet points were successfully snapped. I attached my project folder for you to review. Thank you so much for your help.

Chris George

unread,
Sep 30, 2025, 5:33:05 AM (12 days ago) Sep 30
to Paige B, SWAT+
Your DEM cell size is 0.00009 x 0.00009 metres. Your whole watershed is
apparently about 92 square cm. I suspect you started with a latlong
raster and changed its projection to UTM instead of reprojecting it.

Chris
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatplus+u...@googlegroups.com
> <mailto:swatplus+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatplus/396b1ec0-1ae7-4664-b374-ec4d2c921ba4n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> swatplus/396b1ec0-1ae7-4664-b374-ec4d2c921ba4n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> CAYN_ZvkssA5GDsFEPRW2k5YfQVgJA3RVaAnXUT7okLvN5tlREQwPL_M4S12ilCOrSS11oDsUsanDhIQR6SpnZxXUQ$>.

Reply all
Reply to author
Forward
0 new messages