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
22 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
15 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
19 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
1 vote
0 answers
29 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
31 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
57 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
45 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
32 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
40 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
24 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
46 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
43 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
  • 61
1 vote
1 answer
60 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
106 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
47 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
1 answer
85 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
239 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
38 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
48 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
  • 187
0 votes
0 answers
31 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
54 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
55 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
  • 187
2 votes
1 answer
35 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
22 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
1 vote
1 answer
61 views

How do I use the Raster calculator to extract all cells that have one of a number of values?

I'm using QGIS3. 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
  • 43
0 votes
1 answer
25 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
1 vote
0 answers
36 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
0 votes
1 answer
52 views

How to remove values from raster band QGIS

I recently did a land use land cover analysis using the semi automatic classification plugin in QGIS. While I am satisfied with the produced raster there are a bunch of classes that are not relevant ...
Hartje's user avatar
  • 133
2 votes
1 answer
117 views

How to merge raster classes using the raster calculator?

I need to do an analysis on landscape change for which agriculture is involved. In my raster they are defined as six different classes which is not relevant for my research I was wondering if you can ...
Hartje's user avatar
  • 133
0 votes
0 answers
63 views

How to obtain a suitability map by combining an exclusion map and weighted overlay map

I currently have 2 map outputs (1) A classified map (weighted factors) (2) An exclusion map I intend to obtain a suitability map by combining the map 2 (the exclusion map) with map 1 (the weighted ...
Yfunfur's user avatar
0 votes
1 answer
47 views

Raster calculator gives black map output when excluding values

I'm trying to generate an exclusion map from 7 layers of raster having values of zero and one. The zeroes represent the unsuitable area while the ones represent the suitable area. with this, I'm ...
Yfunfur's user avatar
0 votes
0 answers
18 views

Add a value to a raster layer in ArcGIS

I have various different species distribution models, whose output shows expected presence or absence as species over an area. For each species, I have a metric of vulnerability to anthropogenic ...
PowellHall's user avatar
0 votes
0 answers
32 views

Raster calculator in QGIS returns 8.367e-11 instead of zero

I've a raster layer with nine classes, values 1 to 0.05. In the processing toolbox-raster analysis-raster calculator of QGIS, version 3.28.9, I've used the formula: 0.00872-(raster layer*0.00872) Now ...
Tom's user avatar
  • 1
3 votes
1 answer
54 views

gdal VRT pixel function keeps rounding output to int

I created a VRT with pixel function in Python that computes a logarithm of the pixel value. When I convert it to TIFF with gdal_translate the generated TIFF only has rounded values and drops the ...
ansonl's user avatar
  • 151
1 vote
0 answers
53 views

Raster calculator or translate with vrt output in PyQGIS

I have a 1 band, 8 Bit raster. I can map all pixel values apart from 0 to 1 with the raster calculator expression if ("rasterlayer@1"=0,0,1). However, it does not seem to work with vrt ...
MoritzMoreira's user avatar
0 votes
0 answers
16 views

How to extract layers from two rasters based on a single parameter from each layer in QGIS

I am working in QGIS with two WMS raster layers describing my city. One layer has a city planning. Other layer has ownership information of each plot. I can see both layers combined with colours. When ...
Yac's user avatar
  • 1
2 votes
1 answer
62 views

ImportError when importing QgsRasterCalculator in QGIS

I'm running QGIS 3.28.8 on Windows 10, Python 3.9.5. In the Python interpreter when I run from qgis.core import QgsRasterCalculator I receive the following error: ImportError: cannot import name '...
Oliver Burdekin's user avatar
1 vote
1 answer
98 views

Calculating values from two rasters using QGIS Raster Calculator

In QGIS I'm trying to write an expression in the Raster Calculator, but I have failed so far. It should go like this: R1 and R1 are input rasters, RN is output raster. if R1=0, OR R2=0, then RN=0 if ...
Elenica's user avatar
  • 41
2 votes
1 answer
71 views

Sum of the Raster Cell Values Located in the Polygon

I have two layers: The first one is a raster containing values of built covered area for example it has 100x100 (10000 meter square) cells if the cell carries the value 1328 it means that in that ...
Gencergis's user avatar
  • 109
2 votes
1 answer
32 views

Swap raster pixel values in with PyQGIS

I have a raster with one band and pixel values 0 and 1 (palletted symbology), which I simply want to swap. I have done it as follows in the GUI. How could I translate this to PyQGIS (and I guess there ...
MoritzMoreira's user avatar
1 vote
1 answer
109 views

ArcGIS Pro - Raster Calculator Percentiles - conditional

I want to 'cap' the values of a raster if it exceeds the percentile value. For example if the 95th percentile value of the raster was 10000, then anything at or above that value would be assigned a ...
Daniel Sim's user avatar
-1 votes
1 answer
110 views

Calculating bamboo index

I am working on my project on bamboo distribution using RS. As per the literature, I found that bamboo indices is calculated as: BI = (NDVI-SI)/(NDVI+SI); Where NDVI is vegetation index and SI as soil ...
Walker's user avatar
  • 191
1 vote
1 answer
50 views

Moderate raster values based on another raster

I am trying to make a soil erosion risk model using raster overlay in ArcGIS Pro. I have calculated soil erosion risk in raster calculator by combining the following risk factor rasters: slope ...
Bill's user avatar
  • 43
3 votes
0 answers
116 views

Gaussian in QGIS: SAGA vs Native Tool

I have been using SAGA Gaussian Filter to apply a filter to a raster layer, but for reasons I would like to use native QGIS tools if there is an equivalent. There is a tool called Fuzzify raster (...
David Galt's user avatar
0 votes
0 answers
68 views

Error using the raster calculator

I have been using the raster calculator today to filter the relevant classifications for my data. My analysis spans over several rasters containing data from different years. I have been using it ...
Hartje's user avatar
  • 133
0 votes
0 answers
18 views

Areas don't add up using Raster Calculator & and Tabulate Area

I'm using & (AND) in Raster Calculator for two rasters and then using Tabulate area to work out the area of each in a polygon layer. But the amount in the resulting table is more than the amount ...
rowan eisner's user avatar
2 votes
2 answers
120 views

Calculate overall area of physically discrete raster areas in QGIS

I need to get the overall area of physically discrete areas of a raster layer up to a given cell count in QGIS. The following approach is what I've tried so far, but it seems a bit too complicated and ...
winnewoerp's user avatar
  • 1,508
3 votes
1 answer
60 views

Reset the NODATA to negative value error

I have a requirement for converting NODATA to value -3 with my floating point data. I have tried to reset NODATA by using Raster Calculator with the formula of Con(IsNull("tif"),-3,"tif&...
JENN's user avatar
  • 31
0 votes
1 answer
103 views

How do I create a polygon layer of high slope (>58%) area from a DEM in ArcGIS Pro

I am hoping to get from a slope raster (calculated from a 10m resolution DEM) to a polygon of areas above a certain grade (58%). I am using ArcGIS Pro 3.1. I have used the Raster Calculator tool to ...
Andrew Muloford's user avatar
0 votes
2 answers
99 views

Error while using Raster Calculator to calculate NDVI in QGIS

I exported 2 raster bands of Sentinel II (band 4 and band 8) to calculate NDVI (B8-B4)/(B8+B4), these 2 rasters are in EPSG:32630 - WGS 84 / UTM zone 30N. I'm currently using QGIS 3.26.1. When I try ...
Alexandre Lescure's user avatar

1
2 3 4 5
25