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

learn more… | top users | synonyms

3
votes
1answer
620 views

Help with scripts for processing raster files with the raster calculator in QGIS

I am trying to process some raster files using python scripts in Qgis 2.20, and I have been having trouble finding any documentation on using raster calculator in scripts being run in the processing ...
3
votes
1answer
77 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
107 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
383 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
646 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
146 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
132 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
0answers
56 views

How to compute NDSI in ArcGIS for Desktop?

How do I compute a Normalized Difference Snow Index (NDSI) in ArcGIS's Raster Calculator? I have a Landsat 8 scene (hdf4 format) that contains derived surface reflectance band-by-band. Each band is a ...
3
votes
1answer
54 views

Does gdal_calc only support 26 input raster files at a time?

In gdal_calc.py, input files are specified with letters A-Z. Here are two files, input.tif and input2.tif, being averaged into result.tif: gdal_calc.py -A input.tif -B input2.tif ...
3
votes
0answers
166 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
116 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
354 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
1answer
1k views

How to evaluate raster calculator expressions from the console?

How can I execute from the console an expression that should be used with the raster calculator? I'm searching for something like this: qgis.someRasterCalcClass.evaluate("boh@1 + boh@2", ...
2
votes
2answers
377 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
95 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
2answers
1k views

query raster in ArcGIS 10

I am using ArcGIS 10 (includes spatial and geostatistical analyst). I have a raster (GRID) with a value range of -167 to 18. I would like to query the raster and create a new one with only the values ...
2
votes
2answers
490 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
985 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
569 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
4k 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
1answer
562 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 ...
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
97 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
67 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
1answer
130 views

Raster Calculator syntax

I have two rasters depicting climate in two periods and I want to compare their values. I want to create a third raster returning: Values of raster 1 are within the minimum and maximum values of ...
2
votes
2answers
537 views

Why does Raster Calculator return GRID ERROR-Unable to open input grid?

I'm calculating Simple Ratio (SR) from NDVI using Raster calculator in Arcgis. Here is expression I wrote in Raster calculator. SR=(1+float[NDVI_apr.tif])/(1-float[NDVI_apr.tif]) But when I ...
2
votes
1answer
79 views

How could I assign point values to a raster stream segment?

I need to assign a point value in raster format to a raster stream segment, which contains the point. See bellow: The expected result is a segment, whose value is the point value. How could I?
2
votes
2answers
65 views

Combine multiple binary rasters to a single raster

I have 5 different species richness maps which I am trying to join in order to show one cohesive map. Each species raster layer has values of 1 and 0; 1 if the species lives there and 0 if the species ...
2
votes
1answer
22 views

Combining several raster files generated from polylines

Maybe I'm just missing the point somewhere... I'm working on a path distance analysis, specifiying the cost layer. For this I have built a model, where I have roads and trails, both polylines, that I ...
2
votes
1answer
235 views

How to iterate GRASS region definition?

I am using GRASS r.skyview command (v.7, Windows) to determine "urban canyon effect" on pollution due to the presence of buildings. The command nicely works, unfortunately I need to process a very ...
2
votes
2answers
65 views

Calculating loss of value from a wind turbine on surrounding properties depending on distance

I have to evaluate where installing a turbine would be most efficient, depending on wind speed and price of properties surrounding each cell in a raster. The cost on value of properties is computed ...
2
votes
1answer
360 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. ...
2
votes
1answer
227 views

Measuring polyline lengths running through a raster - is this possible?

I have a reclassified raster layer with 4 values and a vector layer of polylines. I would like to discover the length of the lines running through each raster value, or the percentage of the lines ...
2
votes
1answer
101 views

How to select a part of a land cover type a certain amount of feet away from another land cover type

I have raster Landcover type Urban combined with Forest all within the county raster perimeter. I want to make a layer of only the forest cells that are more than 500 feet from an urban cell, so that ...
2
votes
1answer
215 views

Efficiently check for equal adjacent values in raster calculator

I have a raster consisting of integer values in each cell. I want to check every adjacent cell in a 3x3 grid to see if any one of the adjacent cells has a value EQUAL to the center cell, and if so, ...
2
votes
2answers
139 views

How to adjust raster size for usage in raster calculator?

I want to make a visibility analysis of planned wind turbines in my region. I have a DEM raster and a polygon describing the possible area where the wind turbines might be set up. People are ...
2
votes
2answers
1k views

How to calculate a new raster based on nodata values from original raster, in QGIS?

I'm using the raster calculator from core in QGIS and I need to generate a new tif raster file (mask) from the nodata values of another tif raster file. I tried isnull(), but no luck. Any one can ...
2
votes
1answer
75 views

How to use the math tool (“times”) in ArcGIS modelbuilder to multiply two raster sets while using an iterator?

I have two sets of rasters (in the same gdb), representing "loss" and "forestmask". I would like to multiply each forestmask raster (value 1 = forest) with its corresponding loss raster (value ...
2
votes
1answer
303 views

Exclude Raster Cells with Value of Zero in ArcGIS 10.2 Raster Calculator Expression

I need to perform a simple calculation in ArcGIS 10.1 Raster Calculator. I am using a raster layer that contains many cells that have a value of zero. I need to exclude these cells in the expression ...
2
votes
1answer
96 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 ...
2
votes
1answer
48 views

Adding rule to raster calculator?

IF there are one or two urban cells in the Moore neighbourhood AND there is a road running through this cell. How do I add this rule in my raster calculater?
2
votes
1answer
50 views

Adding additional parameters to image classification in ArcGIS for Desktop?

I have an RGB ortho rectified Image and I have another grid data with Elevation values. However, an image with only three bands does not give a good classification of landcover, so it is important ...
2
votes
1answer
1k 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 ...
2
votes
1answer
84 views

Raster calculator help needed

I have time-series data (rasters) from which I need to calculate the direction of change (increase, no change or decrease) for every pixel from one time-step to the next. I further need an output ...
2
votes
1answer
104 views

Raster layer calculator

In PCI Geomatic, I have two raster layer.raster1 identified like %1 and raster2 like %2. if (%1 <= 10) then %2 = 60 elseif (%1 > 10 and %1 <=50) then %2=80 elseif (%1 > 50 and %1 ...
2
votes
1answer
208 views

Change Values of Georeferenced Raster

I am using QGIS to georeference B&W images. I have now done this and would like to set the black surround of the image (as a result of the georeferencing) to transparent but this does not work as ...
2
votes
1answer
264 views

Error while using raster calculator in model builder

I am trying to use the model builder for the RUSLE Model. Well this is how the model looks like: So in the raster calculator I have a formula which also involves the rasters generated in the model. ...
2
votes
1answer
610 views

Managing sizes of input rasters for raster calculation in ArcGIS Desktop?

To calculate any formula (conditional statements/relational operation etc) in the raster calculator in ArcGIS using two different sources of raster images, I'd like to know input rasters must be the ...
2
votes
0answers
19 views

QGIS RGB image to HSL (Hue Saturation Luminance)

is it possible using QGIS (2.10) on windows to convert an RGB image file to HSL (Hue Saturation Luminance) format. I've seen various formulas for this written in Java however they only seem to be for ...
2
votes
1answer
34 views

script to draw a square where the raster pixels contained within are a certain type and greater than X

I have a raster containing different pixel values and I am interested in having squares drawn around areas that are at least X m^2 and containing at least Y type of pixels. The data looks like this, ...