Skip to main content

Questions tagged [raster-calculator]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Raster calculator substraction does provides wrong values TIN interpolated raster (QGIS)

new here. The objective is to calculate the volume of contours I made, I've tried with very simple geometries with no luck (half a sphere in this case). I contours I made were TIN interpolated with ...
LauraTechrem's user avatar
2 votes
2 answers
76 views

Raster Calculator - Batch Processing

I have 30 raster files from 1981 to 2010. Every raster has 12 bands, again corresponding to dates from June 1 to June 12. I want to calculate the mean for all the bands from 1981 to 2010. Normally, I ...
proy's user avatar
  • 95
0 votes
1 answer
50 views

Wrong answers using QGIS Raster Calculator

I am carrying out a simple subtraction of 2 raster layers, both with 1 band using both the raster calculator and GDAL raster calculator tools in QGIS version 3.28.5. Both rasters are using CRS 4326. ...
Sean Jarrett's user avatar
1 vote
0 answers
32 views

Raster calculator giving unexpectedly large and integer results

I am trying to divide one raster ("s05") by the other ("d_05") and the resulting raster ("SdivD") is giving me some suspicious values. I am using ArcMap. The raster s05 ...
user453153's user avatar
1 vote
1 answer
55 views

QGIS Raster Calculater Syntax - unable to combine 2 expressions

I have a slope (in degrees) of a DEM where I'm attempting to assign various values to various bands via Raster Calculator. The individual expressions work, but when combined they do not. ("slope-...
IanGS's user avatar
  • 388
4 votes
2 answers
69 views

Change Value of Cell in Cost Layer (Raster) by whether it touches neighbouring cell

QGIS 3.36-Maidenhead: I have compiled a very large cost raster covering parts of Africa. I have applied cost values to all cells based on geographical considerations. I'd like to carry out a final ...
IanGS's user avatar
  • 388
1 vote
1 answer
31 views

How to make PyQGIS to return 4 raster subdivisions calculated by inequations

I've been making in Raster Calculator, one by one, for every Return Period (2, 5, 10, 50, etc.) different sub-rasters of 4 sections of water depth, it's very tedious and I know there is a faster way ...
Alex C's user avatar
  • 11
2 votes
1 answer
202 views

Repeating linestring across farm field at 40 inch intervals to use r.report for pixel values

I am a new user of QGIS. I have found answers to most of my issues. This one has me stuck. I have included an image of the project I am attempting to create. My plan is to place a linestring on every ...
Jess Woeltje's user avatar
-2 votes
1 answer
40 views

Using Modelbuilder to Iterate Rasters and Calculate [closed]

I have a series of files in a folder: 2020-04-28-00_00_2020-04-28-23_59_Sentinel-2_L1C_B04_(Raw).tiff 2020-04-28-00_00_2020-04-28-23_59_Sentinel-2_L1C_B05_(Raw).tiff 2024-04-27-00_00_2024-04-27-...
user242854's user avatar
0 votes
0 answers
25 views

Iterating over 2 input raster folders for raster calculator in ArcGIS Pro ModelBuilder

I'm currently on a project in ArcGIS Pro where I want to calculate the RVI of a RS time series collected by Sentinel-1. Unfortunately, I only have for each date one Tif-file for the VH and one Tif-...
womateer's user avatar
0 votes
0 answers
21 views

Virtual raster calculator issue PyQGIS

I'm trying to use the virtual raster calculator process 'native:virtualrastercalc' using PyQGIS. When using the GUI and exporting the python code : output_layer = processing.run("native:...
aogino's user avatar
  • 15
1 vote
1 answer
65 views

LiDAR DTM slope slope analysis with a twist. Calculate elevation changes of at least 10 feet within horizontal distance of 25 feet

I have raster DTM image of LiDAR data, mapped to Washington state plane north (US survey feet), where each pixel represents an elevation value in feet. Generating a "slope map" which shows ...
Nick's user avatar
  • 21
0 votes
1 answer
33 views

How to sum assigned scores of multiple rasters into an output raster in Raster Calculator

I'm using ArcGIS Pro. I have multiple rasters, each representing a water quality characteristic. I assigned a score for each characteristic. A couple rasters have different scores. I want to overlay ...
meich's user avatar
  • 1
0 votes
0 answers
26 views

Calculate with certain raster value of raster band in raster calculator

I try to calculate the critical channel slope (J) for each pixel of a channel raster layer by use of the raster calculator in QGIS. The formula is J=(A/(1+(B/"CatchmentArea")^(C)))+D and A,B,...
lena's user avatar
  • 1
2 votes
1 answer
44 views

Mapping the standard deviation of values within a given proximity to a location

I have scattered point data with a single attribute. How can I assign to a reference raster pixel, the mean and standard deviation of all points within radius r of that pixel? I could buffer a point ...
OGmaps's user avatar
  • 734
0 votes
0 answers
13 views

QGIS: extracting desired range values from a raster and removing other values [duplicate]

In QGIS, I've successfully extracted a rainfall range from GeoTIFF file using raster calculator and the range displays. However, the extraction is still showing values below the minimum value of 90mm. ...
Peter's user avatar
  • 1
0 votes
1 answer
29 views

How to calculate and display a range of precipitation values using raster calculator on a GeoTIFF file in QGIS

I am trying to use raster calculator to extract values from a GeoTIFF file showing rainfall. I would like to generate a raster with the range of 90-110 mm only see expression ("wc2.1_30s_bio_17@1&...
Peter's user avatar
  • 1
0 votes
0 answers
28 views

Raster Calculator tool change in QGIS

I installed the PCRAster toolbox in QGIS but afterwards the Raster calculator tool in raster analysis is not working as it should. the icon changed likei am showing below: and when I open the tool it ...
klasot's user avatar
  • 1
2 votes
1 answer
72 views

PyQGIS - Raster multiplication creates too large a file

When multiplying two rasters together using code in PyQGIS, the resultant raster is much larger than expected. Each input raster takes up ~ 11KB as .tif files, but when I multiply two together it ...
oliver's user avatar
  • 95
0 votes
0 answers
23 views

How to assign weights to classes of a raster image

I am relatively new to GIS and I'm working on a practical for the assessment of areas sensitive to desertification using MEDALUS Method. To obtain the Sensitive areas, I am to compute the geometric ...
StaceyM's user avatar
0 votes
1 answer
60 views

Unable to view Raster Layers for calculation using QGIS

I am trying to put together a raster in QGIS 3.36 (and maybe convert to vector at some point) showing areas above 100 feet in NYC for calculating housing data. I have reviewed the SE responses/...
towr's user avatar
  • 1
2 votes
1 answer
59 views

Raster calculator for wind turbine output

Information about the amount of wind energy is available from the global wind atlas (Downloaded from https://globalwindatlas.info/ ) and is available to you as the raster layer Power-density_100m.tif....
Tessa Bell's user avatar
0 votes
0 answers
88 views

Raster calculator: could not create destination file

I am trying to create a curve number distribution using a raster calculator using the code shown in 1. However, I was getting the error shown in 2. I am using QGIS 3.28.15 version to do the process.
lcmbuela's user avatar
0 votes
0 answers
23 views

Large values while calculating on normalized difference indexes

I've encountered a problem while calculating NDDI index (NDVI-NDWI/NDVI+NDWI) in ArcGIS Pro for my bachelor's thesis. I'm working with Raster Calculator (the problem appeared in both Image Analyst ...
Macko01's user avatar
0 votes
0 answers
30 views

Raster calculator for RUSLE (six factors)

I am using ArcGIS Desktop 10.8. I have tried many time to estimate soil loss by RUSEL, using R, K, LS, C and P factors. However raster calculator failed. The message suggest was here: Error 000539 2)...
Endale Bekele's user avatar
2 votes
1 answer
45 views

QGIS raster calculator using Python console

I want to calculate sum values of many rasters (from input folder) in QGIS Python using raster calculator. When I run script, QGIS crashes: Windows fatal exception: access violation import os from ...
user238054's user avatar
3 votes
0 answers
37 views

Causes for different results of same raster calculation in Manifold 9 vs QGIS 3.22.12?

I have an RGB orthophoto from which I want to calculate the KANA index (normalised difference of R and B). I have tried out the same calculation in Manifold and in QGIS, and it results in slightly ...
Marc O'Callaghan's user avatar
0 votes
1 answer
128 views

Using nested conditional statements in QGIS Raster Calculator

I'm currently working on a project in QGIS and have encountered an issue with formulating a nested conditional statement in the Raster Calculator. How do I resolve this? My goal is to perform a raster ...
user76973's user avatar
3 votes
1 answer
70 views

Calculation using exp() function in raster calculator of QGIS fails

I have been trying to use this expression in the QGIS raster calculator: 1 / (1 + exp(-(β0 + β1 * RasterX1 + β2 * RasterX2 + ... + βn * RasterXn))) The above expression has been replaced with the ...
Andrea Pace's user avatar
0 votes
0 answers
37 views

Filtering data on QGIS

I have a raster displaying anchoring intensity in the Mediterranean Sea. As you can see in the first screenshot, there are two different classes (pink and dark pink). I would like to get rid of the ...
Arnaud Boulenger's user avatar
2 votes
0 answers
46 views

Raster Calculator returns strange values

I am using the raster calculator on QGIS to calculate a spectral index from a raster. The formula is the following (it says it's valid): ( "CASI_Noon_III@50" - "CASI_Noon_III@43" ) ...
Matte's user avatar
  • 21
0 votes
0 answers
25 views

Sum rasters without clipping

I'm using Raster Calculator in ArcMap. Is there a way to make operations between rasters in a way that the output raster is not clipped with the same extent of the smaller raster considered in the ...
Marco Fioraso's user avatar
0 votes
0 answers
72 views

Why is OK greyed out in my Raster calculator?

I cannot figure out why I cannot click OK on my Raster Calculator. It might be important to note I am on MACBOOK PRO.
Leeam's user avatar
  • 1
0 votes
0 answers
45 views

Create a raster which has a value of 1 for where a class of object is present and a value of 0 when it is not in ArcGIS

I have probably explained this very badly, but basically I have polygons which outline the extent of individual fish farms in a lake. I have created a 1km by 1km fishnet of the area within said lake, ...
Birdman's user avatar
  • 63
1 vote
1 answer
84 views

Band calculations using satellite images captured on different dates

I want to do some band calculations using bands taken from multi spectral (MS) satellite images and bands from a short-wave infrared (SWIR) image. I have one SWIR image covering the whole area of ...
rsf69's user avatar
  • 101
3 votes
1 answer
202 views

Separation of DSM as Building DSM and Canopy Height Model in QGIS

I am currently trying to separate the DSM as Building DSM and Canopy Height Model. I also have DTM, Building Footprint data. Digital Surface Model Building Footprints. For separation I converted the ...
sevvaldurmazbilek's user avatar
0 votes
0 answers
84 views

Raster calculator error 000867

So I am trying to convert DEM values from meters to feet using Raster Calculator. But I keep on getting error 000867 contains invalid cell size or dataset.. I tried exporting the input raster as a tif ...
Arthur_Morgan's user avatar
1 vote
2 answers
261 views

Combining two different rasters with different extent and different precision in QGIS

I am trying to combine two rasters into one, so that I can better work on it as one topography layer. I need both, because the first (1) one has complete information on my focus area, while the second ...
Serena's user avatar
  • 11
1 vote
0 answers
432 views

QGIS raster calculator failed due to 'No reference layer selected nor CRS provided Execution failed'

I'm trying to fix this by setting the CRS of my raster layer. From its property source information, it's Albert_Conical_Equal_Area, but somehow it just fits perfectly with another vector layer of EPSG ...
lianal's user avatar
  • 21
0 votes
0 answers
46 views

How to assign a value to a set of 25 identical pixels in a raster layer?

I am using ArcGIS Pro 3.1 I would like to create a new raster layer from an existing raster composed of 4 possible discrete values (MIN=0, MAX=4, VAL=0,1,2,3,4). This existing raster illustrate ...
Raphael's user avatar
1 vote
0 answers
98 views

Raster calculator - negative value return Nodata

I am using ArcGIS Pro 2.7.0 I am trying to explain what exactly is my problem. I have an Aspect raster. I had to calculate sin(Aspect) and cos(Aspect), so I have converted the Aspect to radians, and ...
gis1234's user avatar
  • 319
0 votes
0 answers
41 views

How to perform cell-based calculations on multidimensional raster

I have a large multi-dimensional raster with 500 bands derived from a raster stack in R. I want to do some arithmetic operations to each element in each band. The specific operation is x/(1-x). ...
Jason Connelly's user avatar
1 vote
0 answers
64 views

Getting -inf values when calculating zonal statistics from raster layer in QGIS

I am trying to get some summary statistics from a raster layer (CRS EPSG:3035 - ETRS89-extended / LAEA Europe - Projected) of forest biomass for each polygon in a shapefile layer. I have used the ...
Ana Barros's user avatar
0 votes
1 answer
69 views

Introducing formula in Raster Calculator of ArcGIS Pro

What is the correct way to introduce this formula in the raster calculator? It is the formula in order to calculate m-coefficient for L factor for RUSLE model. O = slope in degrees I tried multiple ...
gis1234's user avatar
  • 319
2 votes
1 answer
37 views

Spatial Join to calculate basic statistics For multiple locations

I am using QGIS and looking at multiple businesses (purple dots), and water levels (the grey behind them). I am trying to calculate the average water level within x feet of each business (purple dot)....
shrey_shankar's user avatar
0 votes
0 answers
25 views

Base on land cover data to get plant functional types(PFT) by using GEE, but get something wrong

By using .reduceresolution() and ee.Reducer.mean() to reduce resolution from 10m to 10000m.But the result looks like taking the most distributed elements in the area and assigning them to new pixels. ...
john bob's user avatar
0 votes
1 answer
87 views

Using Raster calculator to extract all cells that have one of number of values

I'm using QGIS 3. I have a raster layer for Koppen Geiger climate which has one band with values ranging from 1, 30. I want to make a new raster with only cells which have a value of the climates I am ...
JdP's user avatar
  • 39
0 votes
1 answer
30 views

Top of Atmosphere of Landsat 8 bands

I am trying to calculate the Top of Atmoshpere using the corresponding coefficients. The raster calculator in ArcGIS however is giving me incorrect results. The formula I am using is ((0.00002 * .tif ...
Andrew Rickard's user avatar
0 votes
0 answers
22 views

Using values in raster to extend a raster/polygon to contour/LiDAR value

I'm using ArcMap. I have a raster of flood levels (LiDAR + a water depth). I want to add 50mm onto the flood level raster which I can do with raster calculator. But then what I want to do is 'extend' ...
Duck's user avatar
  • 21
1 vote
0 answers
42 views

QGIS Graphical Modeler - Altitude offset / translation - Something wrong with my raster calculator (gdal) expression

I've recently started exploring QGIS' Graphical Modeler, and I want to build a model that will: Iterate over a vector layer's features Use these features as masks to extract from a raster Calculate ...
Qosa's user avatar
  • 11

1
2 3 4 5
26