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 [raster-calculator]

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

1
vote
1answer
23 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
83 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
14 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 ...
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 ...
1
vote
0answers
42 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) ...
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=...
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
votes
0answers
63 views

Raster calculator QGIS [on hold]

I want to use "raster calculator" within graphical modeler (QGIS). My input rasters are sentinel 2 bands, let's call them "A" and "B". The expression I want to calculate is (A-B)/(A+B). My problem 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 ...
2
votes
1answer
50 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
39 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
44 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 ...
0
votes
0answers
34 views

Multiplying two rasters in Raster Calculator error [duplicate]

I have two raster layers that I would like to multiply using the Raster Calculator. The first layer is a rasterised Watercourse layer where cells representing the Watercourse are equal to 1, and all ...
1
vote
0answers
31 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
22 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
14 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
70 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
21 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
115 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
86 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
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
28 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
36 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
38 views

QGIS raster calculator is not keeping each pixel with 1 byte

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 ...
1
vote
2answers
94 views

Replacing data in raster using condition?

I have a raster dataset in ArcGIS displaying altitude. I want to replace all values < 8 with value 8. Other values have to stay the same. How can I do this? I tried raster calculator, but I don'...
0
votes
0answers
59 views

Using QGIS raster calculator for expression of height with RGB?

I'm using QGIS 3.4.1, and downloaded the SRTM TIFF data for the area of my interest, and added the TIFF format SRTM file to my project as a raster layer. Here, I wish to make my own color gradient ...
0
votes
1answer
49 views

Improving QGIS raster calculation performance?

I'm performing raster analysis on a QGIS 2.14 project CRS is EPSG: 32632. I used the official 10m DEM supplied by local authorities of Sardinia extracting the area of interest of 446 raster cells. I'...
0
votes
2answers
89 views

Error 000539 running multiple con expressions in raster calculator in ModelBuilder?

I am using Raster Calcuator in ModelBuilder with ArcMap 10.5. I used Get Raster Properties to extract Standard Deviation and Mean from a previously calculated raster. I would like to use Raster ...
2
votes
2answers
39 views

Extracting a single value to a new raster from a singleband pseudocolor raster image

I have a large raster image depicting land use. It's a singleband pseudocolor image whose values are contained in a text file. There are 5 classes. Following the example of this question I thought I ...
0
votes
1answer
37 views

Calculating average raster from two other rasters using Raster Calculator?

I have to calculate an average raster from 4 rasters. I have tried in ArcMap with Raster Calculator but the result is wrong. It's a line. I'm sure that I've done something wrong, but I don't know what....
0
votes
3answers
95 views

Working with 2 rasters, having different extents but same resolution, in ArcGIS raster calculator?

I am working with 2 rasters, having different extents but same coordinate system and resolution, in Arcgis 10.5. The larger raster has 0 and smaller raster has 1 values. I want to make a new raster ...
2
votes
0answers
60 views

Why is Raster Calculator not honoring compression environment settings?

For some reason, the Raster Calculator isn't honoring any Raster Storage environments that I have set. Mainly, compression and pyramids. I am processing a large raster dataset through raster ...
1
vote
1answer
186 views

ArcPy Raster Calculator error “ 'str' object has no attribute 'save' ”

I converted a model into python script and tried to run it. It gave me an error when it gets to the raster calculator process.The message says "str" object has no attribute "save". See picture below. ...
2
votes
0answers
27 views

Creating quarterly rasters from monthly rasters for multiple years with ArcPy? [closed]

I'm attempting to create quarterly rasters from monthly PRISM .bil files that I've already masked to my ROI. Essentially I'm trying to automate the process of using Raster Calculator to add 3 monthly ...
0
votes
1answer
87 views

QGIS raster calculator gives 'Nan'

With QGIS 2.14.3 I am attempting to convert a raster layer to a binary layer, using a certain threshold. With some layers I can use this formula in the Raster Calculator and get the expected output; "...
2
votes
0answers
83 views

Calculating indices such as NDVI or NDSI on Landsat 8 imagery whose pixel type is 16 bit signed integer?

I am trying to calculate an NDSI (Normalized Difference Snow Index) using Landsat 8 OLI level 1 imagery atmospherically corrected in ERDAS ATCOR using raster calculator in ArcMap. NDSI is used to to ...
2
votes
2answers
62 views

Reclassifying certain values using ArcPy in ArcGIS Pro?

I need to reclassify certain values to different values in a raster using Python in ArcGIS Pro 2.2.2. I can't use reclassify because I don't want to change all values and I can't go through each one ...
1
vote
1answer
21 views

Changing values of slope along polyline to 0 using ArcGIS Spatial Analyst?

In ArcGIS 10.1 (advanced license), I have a slope raster of a given area and a polyline. I want to set the slope values along the polyline to 0. I'm thinking of this process - extract the cells ...
0
votes
1answer
115 views

Select % of pixel that have a specific value in R

I have a the following raster layer class : RasterLayer dimensions : 3865, 6899, 26664635 (nrow, ncol, ncell) resolution : 14.83, 14.83 (x, y) extent : 361363.5, 463675.7, 5760647, ...
2
votes
2answers
297 views

Calculate pixel value in arcmap

I want to change pixel values of elevation data. I want to change values meter to feet. So i need to multiply pixel values with 3.2808. How can i do that in arcmap?
0
votes
1answer
64 views

How calculate vegetation indexes with GDAL raster calculator

I want to calculate a few of vegetation indexes [ example: NDPI (red band-green band)/(red band + green band)] in a model with the GDAL raster calculator but I don't know how put the equation here:
0
votes
1answer
24 views

Max value for each cell

I am using ArcMap. I have 12 raster layers with coincident pixels, which have different values. I would like to, for each pixel location, pick the pixel from all 12 rasters which have the same value. ...
-1
votes
1answer
56 views

Use of model and some tools from QGIS

(repost) This is what I want to do... Data: -raster images with 4 bands (green,red,red-edge and NIR),there are like 30 folders with one zone per folder and the images where taken 3 periods of time. ...
0
votes
0answers
28 views

Use raster calculator on an Image Service in ArcMap or ArcGIS Pro

I'm mapping the approximate polygon shapes of dirt roads in a large area. I can see the roads clearly on the world imagery basemap and on the USA NAIP image service. Can I use Raster Calculator to ...
1
vote
1answer
56 views

Get a raster composed of 0s and 1s

Novice with ArcGis, I would like to convert my Polyline dataset to a Raster with only 0s and 1s To this end, I used the Gis command "Polyline to Raster" and set the cell size small enough, so that ...
0
votes
1answer
24 views

Raster Symbology Calculate Area Acres

Using ArcMap, I am trying to classify/consolidate the symbology of these agriculture classes into 3 categories: Hay, Pasture/Grass, and Cropland. I also need to find the sum of acres of each of these ...
2
votes
2answers
57 views

Computing NDVI in ArcMap from Landsat 8 “Analysis-Ready” Surface and TOA Reflectance Products

The internet is full of various contradictory advice on corrections one can make to get NDVI computed from Landsat 8 to fall between -1 and 1. This is for instructional purposes, so I hope to use ...
0
votes
0answers
52 views

how to calculate the percentage of raster value of each singular buffer?

I am having a problem calculating the percentage of certain raster values inside buffers. I have 1 raster layer with pixel values and 1 vector layer with 40 points. The 40 points are people living in ...
1
vote
1answer
24 views

Resize rasters to add empty data around edges

I have a set of DEMs that have different extents due to different data being available at each of the sample points these DEMs were generated from. I need to use these to create a set of uniformly ...
1
vote
1answer
51 views

Building multiple CON statements with OR/AND in ArcGIS Raster Calculator?

I have two raster "T" and "N" which have values ranging from 0 to 1000. This is the logic that I want to query and create the new raster: This is how I tried to query in a syntax-correct way in the ...