Stack Exchange Network

Stack Exchange network consists of 175 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 [raster-calculator]

A tool in some GIS software programs for performing algebraic operations on rasters.

2
votes
1answer
16 views

Raster calculator - set default output path - QGIS 3.4.6

Raster calculator: How can I set the default output folder? By default it's set to "C:\Program Files\QGIS 3.4\bin" I'm using QGIS 3.4.6
-1
votes
0answers
11 views

How to make an Excel sheet from TIF raster layers using QGIS? [on hold]

In this file you will find how a midterm grades were announced to students so every student could get his grade using his section no and bench no.. The midterm contained Q1 which was 50 MCQ and every ...
2
votes
0answers
32 views

Confusing result of raster calculator in QGIS

I'm confused about the results that I get from the raster calculator in QGIS. I'm trying to delete the cells of a raster who are prone to flooding. However, a part of my raster is wrongly classified ...
1
vote
0answers
9 views

Discrepancy between raster calculator and geomorphic change detection elevation change results

I am using two rasters to determine the elevation change in a stream channel. When I used the Geomorphic Change Detection Software add-in (version 7.4.1), I got a high elevation change of 8.8 ft and ...
2
votes
1answer
24 views

Counting .tif value in polygon in QGIS

I am trying to count raster values (from a .tif file) in polygons. In previous posts that people suggested using the 'zonal statistics' plugin in QGIS. However, I couldn't find it in my plugin manager ...
1
vote
1answer
25 views

Ordered weighted averaging error QGIS

I am trying to use Ordered weighted averaging to sum up values across different raster overlays in QGIS 3.4.4, but I get this error: Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.4/...
0
votes
0answers
19 views

From raster to polyline in QGIS

I'm trying to extrat ridges from ALOS images on qgis. I would like to have polylines so I can use the plugin AutomaTracks from Sebastien Peillet. I did inversed the MNT using raster calculator then ...
0
votes
2answers
19 views

Performing Raster Calculation?

This is my formal: ("Standort_ger_fre_mosaic" ^ 0.4) * ("Habitattradition_raster_rec.tif" ^ 0.3) * ("Vollständigkeit_rec.tif" ^ 0.1) * ("Vorkommen_ungestörter_Lebensräume_rec.tif" ^ 0.1) * ("...
0
votes
1answer
22 views

ESRI Raster Calculator error “Con()”

I"m trying to nest expressions in this raster calculator conditional statement, but I get an error. This statement works, so I tried to follow it as a template: Con (IsNull("ras1"),"ras2","ras3") ...
0
votes
1answer
47 views

ArcMap Raster Calculator with Python code

I'm trying use raster calculator that can export a raster to do different average values for for multiple layers. For example, I want to do averages for only the values and layers that are greater ...
2
votes
1answer
37 views

Getting rid of cells of 0 values in raster using QGIS?

I have a DEM like below image. The black area shows 0-values. I want to remove cells of 0-values in the raster.   In raster calculator, I wrote con("demclip_re@1">0,"demclip_re@1") but it gives "...
1
vote
1answer
35 views

Getting QGIS Model Processing Raster Calculator Error?

I am using "raster calculator" tool of the saga in my model. The tool correctly executes raster operation like "a * 2" in value formula option but the same expression is not executed pre-calculated ...
0
votes
0answers
16 views

Con statement with multiple AND fails

I have a conditional statement that runs through multiple rasters. It produces the correct output in Raster Calculator but not when I run the code. I don't get any errors, it just creates blank ...
1
vote
1answer
31 views

Solving ERROR 000732: Input Raster: Dataset Con( does not exist or is not supported in for loop? [duplicate]

I'm trying to reclassify rasters based on standard deviation. I created this code, but I think I'm wrong using "Con". I would like to assign value 1 to rasters >= to threshold and rasters <= to ...
1
vote
1answer
27 views

How to stack points based on their latitude and longitude value on a raster image in QGIS

I have a Sentinel2 image. I have a CSV file that contains latitude, longitude and precipitation data over the location where the sentinel2 image was taken. Now I want to stack the precipitation data ...
1
vote
0answers
18 views

Attribute Table missing After Raster Calculator?

I want to remove zero value pixels from MODIS LST raster images and apply a moving window that can only substitute the missing values and leave the other original values with out alteration. I have ...
1
vote
0answers
25 views

Checking for exact value in QGIS raster calculator

I would like to single out values which are equal to a certain floating point value using QGIS raster calculator. I tried to run the following: "Converted@1"==-3.40282347*10^38 But I got the error ...
0
votes
2answers
50 views

Pixel depth and raster output won't align with the original

The problem Need to convert a raster .tif tile (DOWNLOAD) from WGS84 to GDA94 Albers; Need to convert its stored pixel info from Float32 to 8 bit UNSIGNED; Need Compression set to "NONE"; Need to ...
1
vote
1answer
38 views

How do I build a new raster based on raster stats in QGIS?

I want to create a new raster that uses the mean value of the original raster as the base class of the image and then uses a +- 1 and 2 standard deviations as the other four classes of the image. Is ...
1
vote
2answers
33 views

Replacing value of specific pixel using raster mask in ArcGIS Desktop?

I have two rasters: the first is a basin with all pixels values equal to 0. The second raster (mask) has a single pixel with value = 1. In fact, I need only one raster where all the pixels into the ...
1
vote
0answers
67 views

QGIS RASTER CALCULATOR - Getting the Minimum and Maximum Values of a Raster Layer

I try to work with the minimum and maximum values of a raster layer in the raster calculator in QGIS 3.6. I try to do the following formular: ( @RasterCellValue - @RasterMinValue ) / ( @...
3
votes
2answers
101 views

QGIS Version 3.6 Raster Calculator

In the previous version of QGIS when you loaded a multiband color image into raster calculator the bands were separated. In version 3.6 I am only seeing 1 band how do I get the other bands displayed ?...
1
vote
0answers
71 views

QGIS Raster Calculator missing bands

I've created a VRT from some 6-band TIFF tiles. The VRT displays perfectly in QGIS 3.6 and I can see manipulate the band arrangement and create different composites. However, when I open the raster ...
0
votes
0answers
32 views

ModelBuilder and Raster Calculator Error 000539?

I'm currently working in ModelBuilder trying to use the Raster Calculator and I keep getting the error message 000539. The error according to ESRI says it's an invalid pathway. What I have circled ...
2
votes
0answers
38 views

QGIS Problem adding two rasters

I have a DEM of terrain that I have successfully added a raster of woodland to: I am trying to add to that a raster of a built up area, but the extent of the settlement raster is smaller than my ...
1
vote
0answers
36 views

gdal_calc.py result are false and not the same as “direct” calculation

I need to do the raster calculator operation as "raster + constant" in Python. The input rasters are DEM data with float original type and -9999 for the NoData. The constant is float too. In 1st way, ...
0
votes
0answers
20 views

Calculating Raster Percentile Values in ModelBuilder

I want to calculate the 75th percentile value of a raster dataset (floating, 32Bit) and use this value as an input to a set null expression. I have multiple rasters to perform this on so I need to ...
1
vote
1answer
83 views

Calculate percentile value of raster

I want to set null all raster values that fall below the 75th percentile value. E.g. If you classify the raster by quantile method into 4 classes I want to be left with the top 25% percentile. For the ...
2
votes
1answer
42 views

Combining overlapping rasters in ArcGIS

I have two DSM rasters, one is 10km radius photogrammetric data, the other is 2km radius LiDAR data, both centred around the same point. I need to combine these together, essentially inserting the ...
1
vote
2answers
96 views

How to create a single raster based on the values of three rasters (Conditional)?

I have three rasters of soil granulometric fractions (clay, sand and silt), all in %. I want to make a single raster of the soil texture classes. For that, I need to make some conditionals (i. e.: ...
0
votes
0answers
21 views

NDSI Classification : Output Raster <empty>

I generated an NDSI image in GeoTiff format that have values ranging from -1 to +1 . Now, I want to classify the image using a threshold of 0.4 to classify it into Snow and Non Snow . For the same, I ...
1
vote
1answer
44 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 ...
0
votes
1answer
72 views

Adding building and woodland heights to raster DTM using QGIS 2.18.19

I am using QGIS 2.18.19 to produce viewsheds of a proposed development to show where the development would in theory be visible from. I am using Ordnance Survey Terrain 5 as my height data (*.asc) ...
3
votes
1answer
63 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=...
1
vote
1answer
26 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 ...
0
votes
0answers
21 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 ...
2
votes
1answer
63 views

Negate the current Mask using QGIS

I am new to QGIS. I wanted to negate (behaving like NOT gate in a digital circuit) the MASK I have obtained earlier. That means I want to convert all 0s to 1 and all 1s to 0s. Is there any way to do ...
2
votes
1answer
48 views

Using raster calculator for subtracting landslide mass from raster topo?

I have a topographic raster data of an area prior to a landslide event. Unfortunately, I don't have a topo-data after the event. So, in order to simulate the landslide event and its run-out distance, ...
1
vote
1answer
54 views

Raster calculator giving a different result in processing modeler Qgis 3.2.3

I'm running Qgis 3 processing modeler and I am trying to invert the values of a raster file. I had previously asked this question and the answer I came up with works with the raster calculator ...
1
vote
0answers
53 views

Ordering of Band Import into QGIS Raster Calculator?

I am using QGIS 3.4,3 I want to use Raster Calculator to create NDVIs using Planetscope AnalyticMS_SR.tif I know that the band order for Planetscope is BGRN When I import the multiband SR into ...
0
votes
0answers
24 views

Use Raster Calculator on huge set of rasters

I have a set of 420 raster files covering global temperature and precipitation data for each month between 1979 - 2013. I want to use the Raster Calculator in ArcMap to exclude specific values setting ...
1
vote
1answer
18 views

Calculate mean of raster excluding values in ArcMap?

I want to calculate the mean value of a specific region a raster data layer (being a GeoTIFF file), using the Zonal Statistics as Table tool in ArcMap. However, some of the values are faulty and ...
0
votes
1answer
133 views

Reclassify and combine rasters in QGIS?

I have a vector layer containing watercourse location which I have rasterized. I also have a DEM containing elevation data for the region in which the watercourses are located. I would like to ...
2
votes
1answer
34 views

Merging multiple rasters applying priority rules using ArcGIS Desktop?

I have three raster layers covering the same geographic area. I would like to merge them into a single raster layer. The layers have different levels of importance, so I would like the merge to move ...
0
votes
1answer
116 views

Is there a limit to the number of raster layers in Raster Calculator?

I have 16-day Enhanced Vegetation Index (EVI) images for an area across roughly 10 years. 244 images in all. I would like to average these over the time period to get an average EVI value. Is there ...
0
votes
1answer
115 views

Translating WGS 84 datum to mean sea level?

I'm very new to GIS so here my question is I have WGS84 DEM data for my country and I want to calculate the sea level rise. I will use QGIS raster calculator, my problem is I need to find sea level ...
1
vote
1answer
35 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
30 views

Buffer zone, binary exclusion

I have a shapefile of 20 cities in ArcMap 10. I need to position a sheep farm so that it is not within 2 miles of any of these cities. So, I created a buffer, with 2 miles as distance. I used the ...
0
votes
1answer
42 views

Reclassify with attribute

So, I don't really know how to word what I want to ask, but I took a DEM file and did used the raster calculator to select a certain elevation range. After that I reclassified it to separate it into ...
1
vote
1answer
52 views

QGIS raster calculator not keeping each pixel with 1 byte? [closed]

I have a raster where 1 pixel = 1 byte. I want to change every value different than zero to 1, transforming a gray scale into black & white. I think the expression should be: "my_raster@1" > 0 ...