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

learn more… | top users | synonyms

0
votes
1answer
13 views

QGIS Treat null as zero in raster calculator

In QGIS - I have an irregularly shaped raster - I wish to clip an irregular area out of it (call it raster A) with that area set to null. I masked the area (vector polygon) I want to remove and used ...
2
votes
2answers
1k views

Querying raster in ArcGIS Desktop?

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 ...
0
votes
0answers
25 views

What Raster Calculator expression to use? Need to Set Nodata to the overlapping pixels of two rasters (w data example)

Colleagues, hello! For quite a while I`m struggling to make up a map algebra expression in the ArcGIS Raster Calc… On the output I need a single raster with values 0, 30 and nodata (-128). The ...
-1
votes
0answers
17 views

PomPom Weed (Campuloclinium macrocephalum) detection using Landsat Images through ArcGIS Desktop? [on hold]

what are the possibility of detecting PomPom Weed (Campuloclinium macrocephalum) using Landsat Images through ArcGIS 10?
1
vote
1answer
22 views

TypeError raster object is not iterable when trying to normalize DEM

In ArcGIS 10.1 I'm trying to normalize a section of a DEM (digital elevation model) from original values to values ranging from 0 to 100. First I clipped the raster DEM with an irregulary shaped ...
1
vote
1answer
17 views

Multiple CON Expression in ArcGIS Raster Calculator

How can I write the following conditional statement with CON? If ((VALUE = 20 OR IF VALUE=24) then assign value 0, else 1) Con(("Raster1", 0, 1, "VALUE =20")|("Raster1", 0, 1, "VALUE =24"),0,1) I ...
2
votes
0answers
20 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 ...
0
votes
1answer
251 views

Cause of ArcGIS Raster Calculator Parsing error <type 'exceptions.SyntaxError'>: invalid syntax?

This is my first attempt at much code in the raster calculator of ArcMap 10.0, but I think I'm close. I have nine rasters (A-I below) and want a new raster with value = 1 where any of the rasters ...
1
vote
1answer
33 views

Reclassify in QGIS using Raster Calculator?

I have downloaded data from the USGS to create a Map for a malaria risk in east africa but my question is only about the actuall Input in the Raster Calculator. I have a RFE Tiff that shows the ...
1
vote
1answer
390 views

Getting Error 000539 from Raster Calculator?

I am new to Arc and 10.2 but can not seem to figure out why this won't work. Executing: RasterCalculator Con(("SLOPE_SLO.tif" >= .015) & ("SLOPE_SLO.tif" <= .15,1,0)) ...
1
vote
0answers
25 views

Problem with making raster from Aspect and wind direction data [duplicate]

I know its not correct to ask for work flow, but I am learning by doing and now I don't know how to move on. I'm trying to make new raster which will represent the facing sides of hill around a ...
1
vote
1answer
20 views

Edit raster classification manually using polygons - ArcMap

I want to edit the elevation/z values of certain zones on a raster in ArcMap. I followed this example by creating a polygon, assigning a value of 7.5, then converting the polygon to a raster, finally ...
0
votes
1answer
16 views

Multiply a stack of floating point rasters( composite raster ) with a constant

I am trying to multiply a floating point stack of rasters (10 layers) with a constant and round up to the next integer. I have the formula RoundUp(10*composite_raster) in raster calculator, but for ...
1
vote
1answer
337 views

Raster vs. Raster Scatter Plot in ArcGIS

I created two raster datasets from the same world view 2 image. One dataset is NDVI, the other is a normalized surface water index (NDSWI). I would like to create a scatter plot for a pixel by pixel ...
0
votes
0answers
24 views

Spatial segregation from a raster of racial distribution in the USA

I am trying to measure the degree of racial segregation at some geographic level (let's say the county level, for simplicity) in the USA. I have a shapefile with these geographic units. To do so, ...
5
votes
1answer
557 views

Calculating Topographic Exposure with Raster Calculator

I need you help trying to calculate Topographic Exposure (TOPEX) on a DEM in ArcGIS. I am trying to figure out wind exposure on a DEM with 25m cells. There is a great blog post where someone explains ...
1
vote
2answers
176 views

Masking out places with elevation below 5 m from a DEM

I have a DEM of a study region; I want to modify the DEM in order to reflect the coastline outlook when the sea level was 5 meters higher than today. What I have done so far is to use 'Raster ...
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 ...
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, ...
1
vote
1answer
50 views

Trouble using gdal utilities in python (no output files created)

I am trying to use gdal utilities like gdal_polygonize in python to polygonize my raster image but I'm having trouble understanding the commands. What I mean is in some places the command is of the ...
3
votes
2answers
647 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 ...
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 ...
1
vote
0answers
44 views

Why does every raster calcuation I try return with NAN values?

I am trying to work with DEM rasters from the USGS using the raster calculator. I have tried to change the units from meters to feet using an expression such as: "ned10m45111h8@1" * 3.28 However ...
12
votes
0answers
327 views

Focal Statistics for Special Neighborhood

I'm looking to calculate focal statistics for each cell of a raster, within a neighborhood of a specified criteria. Background - I have three binary rasters, each representing a single vegetation ...
0
votes
1answer
184 views

Issues calculating range with QGIS 2.0 raster calculator

I would like to calculate a simple range using the QGIS 2.0 Raster Calculator, but am getting strange results. I believe I am not using the correct syntax. To get all values between .003-.5, I ...
0
votes
0answers
22 views

QGIS 2.6 Raster Calculator output is smaller than expected

I have used Raster Calculator to merge several raster layers. The layers were all created using geographical features in the same transect, but as the features are not evenly spread, the raster layers ...
1
vote
0answers
36 views

How to correctly input complex multiband functions in Raster Calculator?

I'm trying to compute a MTVI2 (Modified Triangular Vegetation Index - Improved) and EVI (Enhanced Vegetation Index) from Landsat 8 imagery. My formulas are as follow (I'm using ModelBuilder): MTVI2= ...
1
vote
0answers
31 views

How to raster clip in outside in ArcMap?

How to raster clip in ArcMap? But I need 1 raster in outside area. Because 2 raster map. Example: Ras1=Temperature.tif Ras2=Error map.tif Clip command input raster=Ras1 Output Extent= ...
2
votes
2answers
540 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 ...
1
vote
1answer
176 views

QGIS SAGA Raster Calculator [closed]

I am using SAGA --> Grid Calculus --> Raster Calculator on QGIS version 2.6. The formula I am using is: ifelse(gt(a,0), (a), b) where a is my layer with values in a greater extent than that of b. ...
1
vote
2answers
99 views

NDVI from Landsat8 LandsatLook images

I have downloaded landsat image from this site and now Im wondering if i can get NDVI index from it. In raster calculator I have only 3 ranges, shouldnt be four? Or am I doing something ...
0
votes
1answer
174 views

Normalize the NDVI raster 0-255

NDVI values raster computed by using the band 3 and band 4 reflectance values b4-b3/b4+b3. The output raster is of 32bit type formate although the possible ranges that shows in statistics parameter ...
1
vote
3answers
39 views

Make all pixel in raster have the same value

I have a raster file with two categories: category 12 (total count=350) and category 14 (total county = 500). The attribute table looks like this: rowid Value Count 0 12 350 1 14 ...
0
votes
0answers
80 views

Trouble with reading Leaf area index (LAI) Modis on QGIS

I am having trouble reading my Modis LAI data on QGIS. I imported my Modis hdf files and I used the QGIS raster calculator to apply the scale factor and all I get is a blank gray tile. My goal is to ...
1
vote
1answer
21 views

Mod function in GRASS GIS

What is the equal of ArcGIS Raster calculator "Mod" function (Finds the remainder of the first raster when divided by the second raster on a cell-by-cell basis.) in r. mapcalc in GRASS GIS?
1
vote
0answers
33 views

Substract 2 rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time substracting 2 raster with ArcObjects sdk 10.1. I keep getting a nullreference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
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
625 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 ...
1
vote
0answers
34 views

Generating a predictive map with standardized variables

I have a model from which I am attempting to create a predictive map (in GIS, but I'm aware of some options in R). The response values are constrained to [0,1] using an offset term in the model (see ...
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 ...
0
votes
0answers
30 views

Preconditions for subtracting two rasters in arcmap

I have two precipitation rasters, each with a different raster cell size 4.1 x 4.1 km, 4.6 x 4.6 km). The two rasters have the same geographic coordinate system, but different projections. I would ...
2
votes
1answer
570 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 ...
1
vote
0answers
44 views

When subtracting two raster with different cell sizes using raster math, what value is used for smaller cells?

After reading the answer to a similar question (What will happen if we subtract two raster with different cell size using Raster Calculator?), I am still left with a question. When the raster with ...
0
votes
2answers
53 views

To select the range of values using Raster calculator in QGIS

I am working on a project where, I need to give ratings for the range of values. I have the following ratings index ratings 0 to 4 4 5 to 8 3 9 to 11 2 12 to 15 1 I am ...
1
vote
0answers
44 views

Raster Calculator Error 000539: Error running expression: rcexec()

I am using: ArcGIS 10.2 for Desktop Version: 10.2.0.3348 My assignment requires the use of Raster Calculator to run the following calculation "AccessRaster" == 0 & "Slope" >= 2 & "Slope" ...
0
votes
0answers
35 views

Calculating where the Z values of two rasters intersect

I have several raster layers which are depth horizons, one of these horizons cross cuts the others and I would like to calculate the line along which this occurs. i.e. the line along which the Z value ...
1
vote
1answer
189 views

How can I multiply each band of multiband image by separate scalars using ArcGIS Desktop?

I have an image with 5 bands. I need to multiply each band of this image by different scalars one time (I'm lazy to do it one by one) and then get multiband image as a output. For example ...
0
votes
0answers
34 views

Automating Raster Calculator [duplicate]

I am seeing mixed answers on other posts so I thought I would ask here. Is there a way to automate the raster calculator? I am trying to create a series of inundation maps at fine increments. It ...
3
votes
1answer
77 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, ...
0
votes
0answers
64 views

Syntax Raster Calculator

I have never worked with the raster calculator before and I can't solve my problem. There are two raster datasets. One contains roads ( "closed", "in use", "under construction") and the other dataset ...