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

learn more… | top users | synonyms

16
votes
1answer
627 views

Calculating 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 ...
10
votes
1answer
1k views

Calculating distance from points to different class in raster using ArcGIS Spatial Analyst?

I am looking for some advice on how to calculate the distance from a point to a different class of a raster. Specifically, I have observations (points) of animal use overlaid on land cover data. ...
9
votes
1answer
11k views

How to crop raster layer?

Can anyone tell me how to crop a raster layer in QGIS? I want to make contours from a section of a layer, and including the whole layer will create far more data than I need and slow down the ...
8
votes
2answers
2k views

How to calculate the number of cells with a given value?

I have a raster file where all cells have values between -3 and 7, no data value is -9999. Have can I calculate the number of cells with a specific value e.g. 6? Can I use the calculator?
8
votes
1answer
3k views

How to make a new raster using con() script in Python?

I'm new to Python and have been trying to code a raster calculator style script. Basically, I want to convert a raster that has values 0 to -10,000 into a raster that is populated by 1s between ...
8
votes
2answers
4k views

Using individual bands from multi-band image in ArcGIS raster calculator?

I'm trying to use individual bands from a multi-band TM image (IMG file) within the raster calculator in ArcGIS 10 (SP2/3). I can add individual bands to my MXD, but raster calculator will only use ...
7
votes
2answers
224 views

Rules of Nodata value?

What are the arithmetic rules that govern Nodata values? Regardless of how these null values are defined? I am using ArcMap Raster Calculator. I am thinking specifically of operations like 1*Nodata ...
6
votes
3answers
2k views

30,000 data points… can this be reasonably served using openlayers?

I'm trying to tackle a web GIS problem and need to figure out the best strategy. I have a map with 30,000 cells on it forming a grid for the province of Alberta. I have a list of data points for ...
6
votes
3answers
6k views

How to standardize raster output from 0 to 100 using raster algebra?

I am working on generating an integrated moisture index based on the following equation: IMI = (hill shade * 0.5) + (curvature * 0.15) + (flow accumulation * 0.35) Iverson et al. 1997 Another ...
6
votes
2answers
171 views

How to automate creation of toe of slope from DEM?

I was looking for an automated process to "identify" the toe of a slope from a DEM and ran across this ESRI thread and technique: I am at Step 7 but have no idea how this is accomplished. I get it is ...
6
votes
2answers
189 views

Adding all Binary Rasters in a Directory Using Raster Calculator in a Standalone Python Script

I have a directory with binary raster files (1 band only) which I need to add in a standalone python script. The problem is the rasters have different number of rows and columns and different ...
6
votes
1answer
1k views

Change NODATA pixel value in raster to arbitrary value

I want to change the value in all pixels that are currently 0 to 800 in QGIS 2.6.1. 0 is listed as the no-data value in Properties > Transparency. I have unchecked the No Data Value box there. Then I ...
5
votes
1answer
2k 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", ...
5
votes
1answer
735 views

Raster Calculator making incorrect calculations in ArcGIS for Desktop?

I am trying to use raster calculator (ArcMap 10.2.2.3552) to apply a poisson generalized linear model to estimate species abundances based on elevation. The outputs don't make any sense to me, and I'm ...
5
votes
2answers
308 views

Raster calculation confusion

I need to do some raster calculation, I've been trying to make it work but I am not sure everything is working properly. I need to apply a formula, but I am unsure if I am doing it properly. The ...
5
votes
1answer
632 views

How to calculate a standard deviation across multiple raster layers?

I have 15 raster layers. Each one shows accumulated precipitation (rainfalls) for the month of April for the same US state during a given year. So, I cover the period from 1997 to 2012. I would like ...
5
votes
1answer
91 views

Sequentially distilling several raster data sets into final map based on first time pixel’s value was greater than zero?

I have 120 daily data sets that contain a value only when a threshold temperature is exceeded. If the threshold has been reached that pixel was assigned a value indicating the day it occurred (the ...
5
votes
1answer
201 views

Calc bottomline of valleys

Which way do I calculate bottomlines of valleys or even more preceise: which way do I "find" valleys (for example suggested tectonic faults). Sample below shows a height profile (profile from line) ...
5
votes
2answers
128 views

How to calculate the a list of rasters?

I'm writing ArcPy code in ArcGIS trying to calculate a list of rasters. I get an error message that says: TypeError: unsupported operand type(s) for -: 'unicode' and 'unicode'. Here's my ...
5
votes
1answer
917 views

Raster processing with Python or Arc raster calculator

I have 4-band NAIP imagery that require the following processing steps: Convert to 8 bit unsigned B/W Reverse (note not inverse) the image, so that dark values appear light and light values appear ...
5
votes
1answer
108 views

Raising raster to a power gives no data values

When performing the following operation in QGIS Raster calculator: 10 ^ (("20091201_20100101_chl_modis_malvinas_ns@1" * 0.0000581)-2) I get no dada values for every cell where I should get < 1, ...
5
votes
1answer
879 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 ...
5
votes
1answer
686 views

Copy and Paste symbology in Raster?

I am trying to figure it out how can I take a preserved color from a raster I already set up before and then apply the colormap to a new raster file? Here are the details of what occurred: Before ...
4
votes
2answers
107 views

how to get max and min from a raster using arcpy?

I have a land surface temperature raster file and I want the max and min of it. minLSTresult = arcpy.GetRasterProperties_management(raster_result, "MINIMUM") minLST = minLSTresult.getOutput(0) ...
4
votes
1answer
626 views

Performing Raster Calculator functions using Python and open source modules?

I would like to perform mathematical functions similar to those you would use Raster Calculator for in ArcMap, however I'd like to do it in Python without using the ArcpPy module. I have the osgeo ...
4
votes
2answers
3k views

How to exclude outliers from raster using ArcGIS for Desktop?

I calculated terrain curvature from a DEM. The DEM I use is interpolated from point elevation data. Generally, the DEM seems to be good, but some artifacts from interpolation exist. Those artifacts ...
4
votes
1answer
319 views

Raster Calculator Iteration in ModelBuilder?

I have a large number of rasters and I want to add 1 to each of them (e.g. each raster's values currently range from 0 to 1, and I want to make them range from 1 to 2). I believe ModelBuilder, using ...
4
votes
2answers
2k views

Specify a field in attribute table with raster calculator

How can I specify the attribute field to use in the raster calculator of ArcMap 10.2? In 9.x, I used the dot notation. i.e. To use the "New_Value" field, I could do the following: ...
4
votes
1answer
2k 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 ...
4
votes
1answer
2k views

How to reclassify in Rastercalc?

I now need to reclassify, I'm using rastercalc... but I can't get the syntax right!! I need that values >0 become 1 I found this example... eq( [relief]@1, [mask]@4, 150 ) so I tried: ( [raster A ...
4
votes
2answers
712 views

How do I generate a random raster (or probabilistic cellular automaton) in QGIS?

I'm trying to create something like a cellular automaton land cover change model using QGIS, in which cells randomly change land cover based on probabilities determined from various input rasters. ...
4
votes
3answers
635 views

query raster cell values by point

I have a binary raster (0s and 1s) that I need to query given a set of point coordinates. This is easy enough to do with gdal (gdallocationinfo), but where it get's complicated is that I also need to ...
4
votes
2answers
999 views

Querying slope data using raster calculator: why are all results true?

I am using ArcGIS 10.2.2. From a DEM, I have created a new raster showing slope using the slope tool. The color scheme was automatically classified into 9 tiers. What I want to do is query this raster ...
4
votes
1answer
35 views

ArcGIS merge/unite two rasters with same extent with RasterCalculator

I've a problem with the ArcGIS Raster Calculator: I have two 2-Bit Rasters with the same extent, the only data stored in it are 1-values and NoData. Now I want to combine this two Rasters: If in ...
4
votes
1answer
487 views

Running focal statistic with iterator in ModelBuilder?

I need to extent the Value of a grid (water mirror elevation) within the nodata area until reaching a specific barrier (the limit of the watershed), in ArcGIS 10.2 for Desktop. I am using this: ...
4
votes
1answer
2k views

Python syntax error from raster calculator in ArcGIS ModelBuilder?

I am experiencing a problem with the raster calculator in the ModelBuilder under ArcMap 10. I need to combine two layers: a drainage map (issued from a series of previous operations on a DEM) and ...
4
votes
2answers
168 views

How to do raster conditional comparisons in .NET?

I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code. Question Is there any process to do this kind of raster conditional comparison in .net?
4
votes
3answers
212 views

Adding two raster datasets that overlap while maintaining extent of larger raster dataset?

I am using ArcMAP 10.0 How do I add two raster datasets that overlap while maintaining the extent of the larger raster dataset. I have thought of adding zero values to the smaller raster to then be ...
4
votes
1answer
1k 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 ...
4
votes
3answers
354 views

How to find buffer radius around raster cell that covers a defined sum of raster cells?

I want to do a neigbourhood analysis on some raster data. I need to know how big a circle around each raster cell must be to include a certain amount of specified raster cells. Let's say that for ...
4
votes
1answer
256 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 ...
4
votes
1answer
472 views

How to create Series of Rasters that displays Standard Deviation from Mean?

Cell statistics question for you. I have 100 rasters of raw rainfall data in which the pixels each represent rainfall for that particular pixel on the landscape for a single year during the 100 year ...
4
votes
1answer
76 views

Raster Calculator Bug at start

I use ArcGIS 10.1 on a Windows XP. ArcGIS completely shuts down when I attempt to launch the "Raster Calculator" tool. Has this happened to someone else? Any ideas on how to solve this annoying issue? ...
4
votes
2answers
105 views

Expand raster nodata area (shrink values area)

I need to fix a raster that's been inappropriately resampled along the nodata edge. The bad data area is narrow, pretty much a single cell. The value range is too variable to use a simple "erase less ...
4
votes
1answer
110 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 ...
4
votes
1answer
152 views

Iterate through rasters in subfolders using Model Builder

I have a directory folder of precipitation data; within this folder are subfolders for years 1901-2014. In each of these subfolders are 12 .asc grid files; each file represents a month of the year ...
3
votes
1answer
3k views

How to reduce all value above certain value using Raster Calculator?

I have a raster with elevations above 2000m that I want to "cut" to 1800m. I cannot quite figure out the correct string and most simple way to do this in the ArcGIS 9.3 raster calculator. I tried ...
3
votes
2answers
2k views

Normalize raster values to 0-255

I need to normalize the values attained from a band ratio to 0-255. I'm using QGIS. How do I do this? Any ideas?
3
votes
1answer
271 views

How to subtract out the slope (in general) of a DEM?

I'm searching for a solution process to subtract out the slope of a DEM like this: I have a high resolution DEM and want to reconstruct historical/old/not active parts of a river. The problem is ...
3
votes
1answer
324 views

Combining Geological Grids and extruding between them?

I have a situation where I have 3 Geological grids, each showing a different horizon + the Seabed Grid. I need to extrude between these grids in order to make the 3D polygon for the geological ...