SAGA GIS Tool Finished with Errors? Read the Log, Check These Inputs

“The tool finished with errors” feels like a dead end, but in SAGA GIS it is usually the start of a short investigation. Most tool errors are not tool failures at all — they are the tool reporting, in its own blunt way, that something about the inputs was not what it needed: a DEM whose coordinates are in degrees fed to a slope calculation, two grids that do not line up, a surface with holes in it. This page gives you the order to work in: read what the tool actually said, then check the three input problems that account for the large majority of failed runs, before you blame the software.

Start with the log, not with a rerun

When a tool runs in SAGA, it reports its progress and its complaints in the output and message area of the interface — the execution log. Before changing anything, read the last lines of that log. Tools commonly name the failing input or the condition they hit: a grid they could not read, a parameter combination they rejected, an input that was empty where data was expected. The final lines matter most, because earlier lines are usually progress narration. Note exactly which tool failed and at what stage, and if you rerun, change one thing at a time — otherwise a successful rerun teaches you nothing about which change fixed it. Running the same job through saga_cmd is a good way to get the tool’s messages in a clean, copyable text form, which also helps if you end up describing the problem to someone else.

Input problem 1: A geographic-CRS DEM fed to terrain tools

This is the classic silent error — the tool completes, or half-completes, with values that make no sense. Slope, aspect and curvature are computed from elevation differences over horizontal distances, and the maths assumes both are in the same unit. A DEM in a geographic coordinate system measures horizontal position in degrees while elevation sits in metres; a degree of longitude is not a metre, and its ground length changes with latitude. The result is slope values that are misleading by orders of magnitude. This is standard GIS practice, not a SAGA quirk: project the DEM into a projected coordinate system with metre units appropriate for your region first, verify that the grid really carries that projection, and only then run the terrain tools. Our slope, aspect and curvature guide shows the workflow these inputs feed into.

Input problem 2: Grids that do not line up

Plenty of tools take two or more grids at once — a DEM plus a weights grid, a slope grid plus an area grid. Those inputs must describe the same piece of the earth in the same discretisation: same extent, same cell size, same alignment, cell for cell. When they do not — one grid clipped tighter, another resampled at some point in its history, a third exported from different software with a half-cell shift — a tool may refuse outright, or worse, produce a result that looks plausible and is not. Before running any multi-input tool, open each input and compare the basics: bounding coordinates, number of rows and columns, cell size. If they differ, align them deliberately — resample or clip everything to one reference grid — rather than letting the tool improvise.

Input problem 3: NoData holes in the DEM

Real-world DEMs arrive with gaps: cells marked NoData where the source had no measurement — along coasts, at tile seams, in patches the sensor missed. Hydrology tools are unforgiving of holes, because flow routing has to decide where water goes at every cell, and “no value” is not a direction. A run that dies partway, or a catchment that stops dead at a straight line, is often a hole announcing itself. Inspect the DEM before the chain, not after it: display the NoData cells in a contrasting colour and look at where they sit. Repair is workflow-dependent — filling small gaps by interpolation, merging a neighbouring tile, choosing a cleaner source — but the diagnosis is always the same, and sink-filling is not it: sink-filling handles depressions in real data, not missing data. The watershed delineation guide shows where DEM preparation sits in the full chain.

One more mundane check: the output side

Not every error is about inputs. A tool can do its whole computation and then fail at the finish line because the output cannot be written — a target folder that does not exist, a location the system will not let the program write to, or an output name colliding with a grid that is already loaded and locked into the workspace. When the log shows the failure arriving at the very end of a run rather than the beginning, redirect the output to a fresh file in a plain working folder and rerun. It is an unglamorous cause, which is exactly why it gets checked last and found so often.

Verify inputs before blaming the tool

The habit that prevents most of these failures costs two minutes: before any important run, open each input grid and confirm four things — it loads and displays sensibly; its coordinate system is the one you think it is; its extent and cell size match its partner grids; and its NoData pattern is understood rather than discovered mid-run. Test the tool on a small clipped subset of known-good data; if it succeeds there, your tool, version and parameters are fine, and the fault is in the full-size inputs, which you can then examine comparatively. If a clean, small, verified input still errors on the current release (9.14.0), you have something worth reporting to the official SourceForge tracker — with the log text, the tool name, and a description of the input, which is exactly what the steps above have collected for you. The troubleshooting hub gathers the companion guides, including what to do when SAGA crashes outright.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *