Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [saga]

SAGA (System for Automated Geoscientific Analyses) is a GIS toolbox with many modules that can be used from the GUI, command line or accessed through R,python or directly using C++.

0
votes
1answer
30 views

Piping one SAGA Raster Calculator output into another chaining algorithms in QGIS processing script?

I am using QGIS 2.18.15. I want to streamline multiple SAGA raster calculator calculations using the output of one calculation (not loading it into the table of contents) as input raster for the ...
2
votes
1answer
34 views

SAGA Raster Calculator in QGIS Algorithm script produces 'NoneType' object has no attribute 'crs'

I would like to produce a new temporary raster after a calculation with the SAGA raster calculator using a custom python algorithm script. This is my code so far: ##MaechtigkeitunterhalbeinerHoehe=...
2
votes
1answer
53 views

Layers not correctly generated using saga algorithms within QGIS 3.4.4-Madeira

I am trying to use a few algorithms that may be useful for my work, that are part of the processing tools packaged with the latest LTR 64-bit version of QGIS in Windows 10 64 bit.. However, all of the ...
1
vote
1answer
23 views

SAGA Raster Calculator processing script give error “name 'Rasterout' is not defined”

I am trying to build a custom script using things I have learned from this post: Number inputs as raster calculator variables in QGIS Modeler This is my script so far: ##Maechtigkeit unterhalb einer ...
1
vote
0answers
26 views

How to write raster in saga format with python

I try to write a raster file in SAGA GIS format (sgrd). My script is work but some information is missing in the final file (i.e output.sgrd). Here is script : from osgeo import gdal, ogr, osr import ...
0
votes
0answers
17 views

Radiometric correction of Aster Level 1T

We have to mosaic 70+ ASTER Level 1T imageries. I've splitted hdf data into 14 different tif's (3 VNIR, 6 SWIR, 5 TIR). As shown in the image imageries are of different time period. Question is, is ...
0
votes
0answers
18 views

Making QGIS model that iteratively creates several constant grids at once?

I'm looking to calculate the volume of a virtual reservoir from a DEM. I would use a constant grid (SAGA) to represent the ceiling, and I want to see the change in volume for each 1 metre interval. So ...
1
vote
0answers
32 views

Calculating maximum extent of debris flow from point with mean slope value

At a very large scale I perform a spatial analysis for which I have to apply mean slope criteria. These criteria allow me to calculate the maximum extent of an event (debris flow). I know that below a ...
1
vote
1answer
52 views

Using SAGA GIS for TPI classification?

I processed one country with TPI, and I got a certain Landforms classification of terrain. (Topographic Position Index (TPI) calculation as proposed by Guisan et al. (1999)). When I processed only one ...
1
vote
1answer
37 views

SAGA hydrology toolbox errors

Hi I am having trouble getting the SAGA hydrology toolbox running. Here when I try to fill sinks in the DEM a series of errors are flagged in the log file. This includes for 'select a library', 'DEM' ...
2
votes
1answer
47 views

How to connect polygons to make a circle?

I created polygons from a raster on which I ran an edge detection filter. I turned the edges into a polygon layer (multipart splitted into single parts). The intention was to have circular polygons at ...
0
votes
0answers
14 views

SAGA_cmd crashes (using RSAGA)

I'm using SAGA-GIS to compute some terrain attributes with a DEM of file size 3.52 GB. I use Rsaga to operate on a 64 Bit operating system with an Intel(R) Core(TM) i5-2400 CPU @ 3.10 GHz Processor, ...
1
vote
1answer
26 views

How to add multiple layers to SAGA map view at the same time?

I need to visually interpret more than 50 grids, so I want to add them all to a SAGA map at the same time. If I right-click on a single layer, I can "Add to Map", but with multiple, this option is not ...
0
votes
0answers
76 views

Problems with SAGA on QGIS

I'm trying to perform an interpolation on SAGA in QGIS but every time I ran the tool (or any other SAGA tool for that matter) I got the following message: "The following layers were not correctly ...
1
vote
0answers
68 views

Error when running SAGA interpolation

I am running the nearest neighbour algorithm in QGIS 3.4.3. I have tried various parameters but the problem persists. I have also tried other algorithms (simple Kriging) and had the same problem. ...
2
votes
1answer
49 views

RSAGA error using rsaga.pisr2

I just downloaded SAGA and the RSAGA package for R. I would like to use the rsaga.pisr2 function to compute solar radiation for my region of interest. I am currently getting errors related to proj4 (...
1
vote
1answer
29 views

Adding two rasters in modeller

I'm trying to build a process model which uses a series of raster operations - Rasterize, Proximity, Raster Calculator. However, I couldn't seem to add two consecutive raster calculator processes. ...
0
votes
1answer
75 views

point thinning/point selection based on distance threshold in QGIS/GRASS

I need to thin a point vector later based on the distances amongst points. So I have a threshold and wish to omit all records but one that is below a distance D representing a distance between points. ...
1
vote
0answers
40 views

Promoting to multipart using PyQGIS?

I am creating a code that aggregates neighbouring polygons if they have similar value on the field 'DN' and if they are closer than 50 m.Then I want to iterate this 3 times. I could already get the ...
1
vote
0answers
63 views

Choosing parameters for SAGA Wetness Index?

I've been working with SAGA GIS to calculate the Topographic Wetness Index of an alpine catchment. I am using the tool Terrain analysis > Hydrology > SAGA Wetness Index because, compared to ...
1
vote
1answer
71 views

Clustering spatially connected polygons so all clusters have approximately the same size

I want to group together polygons from a shapefile a way that all the clusters formed contained approximately the same number of polygons. The problem is that the source polygons have vastly ...
1
vote
1answer
68 views

QGIS 3.2 SAGA Raster Values to Points: ERROR: Missing Parameter Value

When I try to run the saga:rastervaluestopoints tool in the QGIS 3.2 Python console it returns the following error (see below). I can't figure out what's going wrong. The tool works when running it ...
1
vote
0answers
28 views

SAGA_CMD.exe Bad image

In QGIS 3.0, 3.2 and now 3.4 I get the following error message saga_cmd.exe bad image C:\windows\system32\vcomp140.DLL is not designed to run on Windows or contains an error. I didn't have the ...
0
votes
0answers
31 views

Calculate the area of the drainage basin upstream of a point [duplicate]

I have the point location of vegetation surveys conducted on a river network. I would like to calculate the area of the contributing drainage basin upstream of each point using a DEM. This image ...
2
votes
1answer
23 views

How to merge pixel values to the nearest maximum value based on area in a classified raster?

We have a raster image with 9 discrete values. Generated the image using SAGA's Terrain Analysis -> Morphometry -> TPI classification technique. Now, like to merge pixels which occupy certain area (...
1
vote
2answers
83 views

Seeking for a solution to convert GeoTIFF to 3d WKT

I am trying to convert some DEM in .tif image to polygon geometries representing 3 dimensional triangles that is Well-known text (WKT) - 3D (x, y, z) I was able to use SAGA to convert my GeoTIFF ...
1
vote
0answers
23 views

Python function like SAGA Grid Gridding?

For a python script, I'm searching for a function that does the same as SAGA Grid gridding, an exponential interpolation on GeoPandas GeoDataFrame. Does anyone know one?
1
vote
1answer
53 views

Load a SAGA RGB composite in QGIS

I have created a RGB composite in SAGA GIS using the RGB composite tool. A one band raster is created, which can be visualised in SAGA using the option RGB coded values. When I try to import this ...
0
votes
1answer
48 views

Not correct numeric value error using Multilevel B-Spline interpolation with SAGA and QGIS?

This is the generated log: Processing algorithm… Algorithm 'Multilevel b-spline interpolation (from raster)' starting… Input parameters: { 'DATATYPE' : 0, 'EPSILON' : 0.0001, 'GRID' : '/Users/...
1
vote
0answers
78 views

Avoiding artefacts by pixel filtering in a raster

I have a DEM with a spatial resolution of 2 meters with a lot of areas with no data. I want to fill those gaps in order to use the whole DEM. I used the 'close gaps' tool in QGIS (it's a SAGA tool) ...
1
vote
0answers
33 views

Native QGIS Dissolve tool not compatible with SAGA Split Lines at Points tool

I am trying to use the SAGA "Split lines at points" tool within QGIS. I first had a polyline layer with line segments/features of arbitrary length. I then did the following: Dissolve using the native ...
0
votes
1answer
171 views

Watersheds in SAGA Fill Sinks Wang & Liu tool

I'm delineating some coastal subbasins using open source software. I have asked a similar question before (Delineating coastal subbasins using SAGA GIS or GRASS in QGIS?). I found that using SAGA Fill ...
1
vote
0answers
23 views

Using graphical modeler script via command line

I have made a script through the graphical modeler and I exported it. This is the code that it exported: [Python code] https://imgur.com/a/ivgWXUh How do I run this code outside of QGIS? Which ...
1
vote
1answer
134 views

QGIS SAGA “Natural Neighbourhood” gridding error

I'm having issues with saving my grid out to file. Every time I try, I get the error " The output layer could was not generated" C:\Users\Name\Documents\QGIS\Rav.tif 'Check error log for more ...
0
votes
0answers
27 views

Obtaining reflectance value after supervised classification in QGIS/SAGA

I want to extract the reflectance values of my classes/training inputs but after supervised classification i.e post classification. Is there any tool or process to do it in QGIS/SAGA
2
votes
2answers
87 views

v.surf.bspline and Interpolation(cublic spline) persistent errors in QGIS 3.2 & 3.3

I'm new to QGIS and as such I'm pretty hesitant to post anything, but I cannot for the life of me figure out why two raster creation techniques are not working. For the v.surf.bspline GRASS algorithm:...
2
votes
2answers
102 views

How do I run SAGA algorithms in PyCharm? [closed]

Is there anyway I can input a raster and number and then use the SAGA algorithm "Fill Sinks (Wang and Liu)" on the raster through an IDE such as PyCharm? How would I go about calling the algorithm? ...
2
votes
1answer
323 views

QGIS 3.2: Processing toolbox tools from SAGA never run

I am having major issues in getting tools to run from the toolbox in version 3.2. In essence all but very simple algorithms like 'Split RGB' return errors and do not run. I cannot get any openCV or ...
0
votes
1answer
260 views

Calculating Specific Catchment Area in QGIS?

I have tried to calculate the Specific Catchment Area in QGis from Specific Catchment Area and Flow Width Tool available through Saga. However, I got just SCA product with valour 0. I got a reasonable ...
1
vote
0answers
45 views

Running QGIS Processing Modeler Script

Is there anyway to run an exported script from the processing modeler in PyCharm? How do I go about installing the necessary packages to run a function?
0
votes
0answers
46 views

Generate stream network for every pixel of flow direction as a polyline shapefile based on the raster cell value

I have a flow direction raster (coded with ESRI flow directional encoding scheme) and I want to generate stream network for every grid cell of flow direction raster as a polyline feature based on the ...
0
votes
1answer
58 views

Merging two processes in QGIS3 to one?

Is there any way to merge several processes in QGIS3 into one process? Or is there a way to look at the source code of different processes under QGIS3 and combine them under one function? I am ...
1
vote
1answer
50 views

What layers are produced by SAGA Potential Incoming Solar Radiation?

I estimated the Potential Incoming Solar Radiation in SAGA. The tool creates a file "direct insolation" and "diffuse insolation". When I export these files as .tif, a layerstack of 3 raster layers is ...
4
votes
3answers
136 views

Finding source code of “fill sinks (wang and liu)”

I would like to use the source code of "fill sinks (wang and liu)". I checked through QGIS3 folders, but could not find much related to it. Anyone know where the code could be?
1
vote
2answers
317 views

Convert sgrd (SAGA GIS format) to raster or ascii or with R

I need to convert a sgrd file to tif or ascii using R. I converted a big sgrd file (1.4 GB, 376521831 pixels) to ascii using the package RSAGAbut it takes too long (approx. 45 minutes): rsaga.sgrd.to....
0
votes
0answers
26 views

How to calculate connections between subbasins

I have a complete stack of grids and shapefiles from DEM (corrected) to subbasins created with SAGA tool Watershed Basins(Extended). In the attributes there is a lot of features such as area, outlet ...
2
votes
1answer
142 views

Ordered weighted averaging error: can only concatenate list (not “str”) to list

I am trying to perform an ordered weighted average on two rasters in QGIS 3.0.3 (as a trial run for doing it on more than two rasters). But I keep receiving the following error code: Traceback (most ...
1
vote
1answer
128 views

Coordinate system change in SAGA

I know it is an overasked question but I do not find anybody able to explain properly how to do that in SAGA 6.3. The problem is that my shapefile, i.e. the borders of my country, do not overlap ...
2
votes
0answers
114 views

Empirical variogram plot in QGIS

I am trying to do kriging on mortality rates using QGIS (I have version 3.0 but I downloaded the 2.18.20 to be able to follow the web documentation and most of the answers here). From what I have ...
2
votes
1answer
40 views

How can I adopt updated qgis\python\plugins\processing\algs\saga\description txt files?

I have one question: How can I adopt updated qgis\python\plugins\processing\algs\saga\description txt files? The rest of this text is "enough detail to identify an adequate answer". I will try to ...