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

learn more… | top users | synonyms

3
votes
1answer
1k views

How to reclassify raster inside polygon mask, leaving values outside as they are?

I am in the final stages of a landcover classification and need to reclassify thematic raster values that are inside different polygon masks, while leaving the values outside as they are. Can I do ...
3
votes
1answer
674 views

How to add rasters of different sizes with Arcmap or Qgis raster calculators?

I've got 8 rasters all of different sizes. What is the proper syntax, for the raster calculators of either Arcmap or Qgis, that will output a raster that covers the extent of all my data not just the ...
3
votes
1answer
29 views

Convert 0's to NoData in QGIS Raster Calculator [duplicate]

What is the easiest way to convert cells with a value of 0 to NoData in QGIS Raster Calculator?
3
votes
3answers
118 views

Flow Accumulation Python or MATLAB Script

does anyone have any resources for scripting the D8 flow accumulation in Python or MATLAB after obtaining the flow direction values and filling in 'sinks' and 'flats'? I am trying to understand the ...
3
votes
1answer
120 views

How to center continuous raster layer by subtracting mean and dividing by standard deviation using QGIS raster calculator?

I'm trying to extrapolate a spatial model to a map in QGIS using the raster calculator. The model predicts the value of a pixel given the environmental conditions at this location (e.g. elevation, ...
3
votes
1answer
376 views

Where is qgis getting the NO DATA value from?

I have a project that contains an 8-bit paletted layer (call it the mask layer) and a float 32 single band layer (call this the clip layer). I create a new raster by using the raster calculator, ...
3
votes
1answer
2k views

Why does Raster Calculator (RasterCalculator_sa) give ERROR 000539 in ArcPy?

I am getting a not executed error for a raster calculator. Here is part of the output: File "C:\projectTemp\FloodAnalysis\floodxsectionanalysis.py", line 107, in makeSeemless ...
3
votes
1answer
745 views

How to exclude some parts of raster classes based on size of area?

I have a raster file with 5 classifications. I've calculated area for all of the classes via Zonal geometry, Arcmap 10. Now, I want to exclude patches which are smaller than 100 sq. km. and ...
3
votes
1answer
687 views

How to enter formula into ArcGIS Raster Calculator?

i have the following formula: L = (l/22,1)^m (l = Flow length) m is calculated like this: m = 0,5 when slope is >4 degrees m = 1,2 * sin^1/3a when slope is <4 degrees (a = slope in ...
3
votes
1answer
43 views

Standardising DEM raster for a MCE

I'm trying to complete a Multi-Criteria Evaluation for an MSc assessment and am in the process of standardising my factor maps. Unfortunately, my DEM layer (ASCII file) keeps changing from this: ...
3
votes
2answers
597 views

Calculating average raster grid values perpendicular to a barrier and transferring values to adjacent cells

I was hoping I could get a little help for 2 questions dealing with raster datasets. I have access to ArcMap 10.2 and ArcView 3 to do this. Here is what I am trying to do: 1) I need to calculate an ...
3
votes
1answer
444 views

How to reclassify a raster (tiff) with multiple bands?

i have a raster file containing information about the windspeed average for the year. My purpose is to reclassify the 15 classes based on their rgb-composite. The color is the only information given. ...
3
votes
1answer
341 views

how can I obtain the areas where my rasters overlap, using Qgis?

I have a bunch of raster files showing the distribution of different species of mammals, and I would like to obtain the areas where they overlap, the areas in whitch more than one species can be found ...
3
votes
1answer
28 views

QGIS Raster Calculator syntax

I have tried this several different ways and get lots of NaN. I need to specify that in my raster 'test1', I want a certain set of values to equal 1 and the rest to equal zero. For instance, I want ...
3
votes
1answer
120 views

How to use the con statement in raster calculator to include a raster as a condition in an existing raster

So, I'm busy doing an assignment where we have to use a Weighted overlay to generate a raster of suitable places to plant crops. I've put all the factors in the weighted overlay and generated my ...
3
votes
1answer
133 views

Using iterator in ModelBuilder for groups of rasters

I'm trying to do some raster calculations on Landsat imagery in ModelBuilder. I'm calculating basic indices using Raster Calculator followed by Zonal Statistics. The resulting tables are merged ...
3
votes
1answer
770 views

SAGA raster calculator, ifelse command syntax problem?

I am trying to get the saga raster calculator in QGIS to spit out all values of a raster that are inferior to 10, and make all other values zero. I think the syntax is correct but I keep getting the ...
3
votes
1answer
590 views

Expand raster extent and set expanded values using nearest neighbor sampling

I have run a hydrodynamic model which has given me a grid of surface elevations throughout a bay. I am trying to process the results in ArcMap (or QGIS if needed). My goal is to take the current grid ...
3
votes
2answers
43 views

Using Con in Raster Calculator of ArcGIS for Desktop?

I have two images, "dvel.img" and "evi.img", and i want to extract water related pixels. The condition is: (("dvel.img" <= 0.05) & ("evi.img" <= 0.3)) I want to get an output by putting ...
3
votes
2answers
120 views

How do I get rid of this thin band between raster layers created from TNM?

After hitting my head against the table for many days, I'm humbly presenting myself to the QGIS community. I downloaded 4 IMG files (1/3 arc second, elevation data) from The National Map on the USGS ...
3
votes
1answer
47 views

Fast editing in raster calculator — adding lots of images together

I need to add pictures together to make one raster. In one session there are about 150 - 200 images (named randomly - see syntax example) There are about 50 sessions (named randomly) Is there any ...
3
votes
1answer
2k views

Conditional Statements in QGIS raster calculator?

What is the equivalent statement of the following expression in the QGIS raster calculator? Con(((Abs("DEM" - "FSMin") > 120) | (Abs("DEM" - "FSMax") > 120)), 1, 0) I have no problem ...
3
votes
2answers
344 views

Use Values from Raster Statistics (e.g. sum of all cells) in Raster Calculator

I need to do calculations on raster layers which require the sum of all cells of the raster. I've used the zonal statistics tool for that but it gets a little annoying to do those extra steps (run the ...
3
votes
1answer
129 views

Cell Statistics in QGIS

Cell Statistics in ArcGIS will calculate the mean (or statistic of choice) among multiple rasters on a cell-by-call basis. Can QGIS do this? If so, how?
3
votes
1answer
111 views

Cell values to No data

I need to set cell values in one raster to NoData based on another raster. Both rasters have the same extent and some cells overlap. For those cells that overlap I want to set them to NoData in ...
3
votes
1answer
460 views

Nearest Neighbor Focal Statistics and Map Algebra

I would like to use a nearest-neighbor type analysis to iterate over a raster. The nearest neighbor analysis will give a cell value of 1 IF AND ONLY IF the cell being analyzed has a cell value larger ...
3
votes
2answers
761 views

Scale raster in ArcGIS using raster calculator

I have a raster with values ranging from 0 to 8991130624. This raster is actually the result of a cost distance analysis. I want to scale the raster to range from 0 to 1 and take the inverse? so ...
3
votes
1answer
153 views

Issue with Sextante r.map calculator and modeler

I am trying to build a model with Sextante modeler and the r.mapcalculator algorithm but when I run the model I get the error message: ‘Could not load layer: ‘….’Check sextant log to look for errors ...
3
votes
1answer
139 views

Stack sat images and run operation on all

I have about 300 MODIS satellite with different acqusition dates, covering the same area. I am not used to work with so many tiles at once so I ask for advice. I am working with ArcMap10.1 What I ...
3
votes
1answer
48 views

Polarity of Slope raster for use in Multi Criteria Evalution

I'm looking to use a slope raster in a MCE however i am struggling to ensure it has the correct polarity. The polarity of my other two layers is high values = good and low values = bad. The slope ...
3
votes
0answers
33 views

Raster calculators in SAGA return incorrect results

Here's a sample of my dataset (one cell) with 28 different raster values, representing 28 individual Float32 rasters with identical parameters. 0.0000264434, 0.0049953502, 0.0007529828, ...
3
votes
1answer
39 views

Performing raster calculations along line feature or within polygon using QGIS?

I need to add a value to a dem file along a polyline feature or within a polygon. How can I add 100 to the values of the raster cells intersected by my line feature or within my polygon feature. I ...
3
votes
0answers
335 views

Single Tree detection

I was wondering how I could extract "crown area" of single trees in a forest from a high-resolution image with only 3 band (RGB) in ArcMap. ( No NIR to use NDVI as any threshold). I need a fast ...
3
votes
0answers
132 views

Creating a new raster based on pixel value of original raster using raster calculator but new layer is not evident [closed]

I am trying to create a new raster based on a current raster (w001001 - NVIS) which has one paletted band, with palette values ranging from 1 to 29, with each palette/value representing a vegetation ...
3
votes
1answer
377 views

An error in raster calculator in Arcgis

I wrote and ran this formula in raster calculator in ARCGIS. But the following error gets me into trouble. Does anyone have a suggestion to overcome this? Here is the formula I wrote and the error ...
2
votes
3answers
49 views

Add value to entire column in attributes

Is there a way to add a value to the entire column? I don't think i can use raster calculator because it's a text i want to add, the letter "B". Here is a picture. This is what happends when i use ...
2
votes
2answers
411 views

Is it possible to attain a classified raster with several classes in just one QGIS raster calculator operation?

I'm using qgis' raster calculator and wanted to make a new raster (oraster) from the values of an input raster (iraster). something like: if iraster>2 then oraster=1; if iraster >4 then oraster=2; ...
2
votes
1answer
98 views

Huge file size after averaging two rasters

After I average two raster files (singleband gray, initial size ~700MB each) through QgsRasterCalculator() with formula "Raster1@1/2 + Raster2@1/2" the size of the resulting file is 2.9GB. Is there ...
2
votes
1answer
128 views

Translating to Raster Calculator?

I am taking the Learning Spatial Analyst course, which is very good but written for Version 9. I and my students are using Version 10, so some of the syntax for Raster Calculator have changed. Can ...
2
votes
1answer
5k views

Can Compound Topographic Index (CTI) / Topographic Wetness Index (TWI) produce negative values?

I am calculating Topographic Wetness Index for a study area using SRTM DEM (90 and 30m). I've seen several versions of TWI (CTI). I have been using: TWI = ln(As +1 / tanB) where As = ...
2
votes
2answers
3k views

How to use OR in a CON statement, in the ArcGIS Raster Calculator?

I'm trying to compare two rasters, and create an output based on a formula like: if raster1 > 10 or raster2 < 20 then raster3 = 30 How can I specify the OR in the raster calculator's CON ...
2
votes
1answer
2k views

extend the size (area) of raster

My problem is that I would like to multiply two rasters using raster calculation tool. Both rasters have values 0 and 1, but the covered area of first raster is bigger (100 x 100 miles) then the area ...
2
votes
1answer
709 views

How to separate raster bands in ModelBuilder?

I have a simple model that iterates through folders to collect imagery, mosaics them and clips the mosaic to a study area boundary. I need to produce an NDVI from the clipped 4-band mosaic ...
2
votes
1answer
729 views

Trying to run raster calculator to build an expression for ls factor

I am trying to run a raster calculator, but it failed. I believe that ArcGIS 10 does not understand when I use the variable resolution. What do I need to put in its place? I took the equation from ...
2
votes
1answer
1k views

using raster calculator

I have a combination method to combine two raster( raster x and y) . the method is : x+y / 1- min(|x|,|y|) my problem is about "," character .whats the "," means in the method and how can i use this ...
2
votes
2answers
55 views

I have slope raster and that is categorized with slope in percentage(%) but my script not successful

I have slope raster and that is categorized with slope in percentage(%) my condition is if slope <= 1 then m = 0.2 1 < slope <= 3 then m = ...
2
votes
3answers
89 views

Raster calculator : How to make 0 + NoData = 0?

I have a point data layer (vector) that I converted to a raster layer. I want to replace the NoData value (between each raster point) in the point raster layer by 0. So, I made a background raster ...
2
votes
2answers
152 views

Raster calculator - addition

Help!!! What am I doing wrong? I have generated two rasters from vector layers. They cover the same extent and have the same projection (Irish Transverse Mercator) and cell size (5m x 5m). I have ...
2
votes
1answer
249 views

Create Raster Surface from Points and Equations in ArcGIS

I want to use point data to create a raster surface which distributes the values over space, as defined by an equation, and NOT by interpolating. I have an equation to describe how the characteristic ...
2
votes
2answers
138 views

Using QgsRasterCalculator

I'm trying to make a sum of n rasters and create a new one using QgsRasterClaculator, the problem is, every time the code reaches processCalculation, it makes QGis close and create a dump file. I ...