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 to...
View ArticleTIN Interpolation (the result didn't show up in Map Canvas)
I am having trouble with TIN interpolation.Input Data:DTM topography of study areaMapped Points (with phone)LatitudeLongitudeElevationThickness (topsoil & rock)I would like to create TIN to present...
View ArticleUnion three rasters using raster calculator of ArcGIS Pro
I want to combine 3 rasters (land use, water bodies and airports) into on raster with only two values 0 and 1 where the places of land use, wetlands and airports are = 0, otherwise = 1I used raster...
View ArticleTesting if two different rasters have overlapping data (not extents) before...
I am writing a toolbox script that will generate a difference surface using the raster calculator in ArcMap by subtracting a raster of interest from many other existing rasters, then outputting the...
View ArticleCreating land use layers
I have a land use layer which includes 36 different individual classes. Using the raster calculator I have been able to extract 1 of the different classes and make a new layer (landuse=[number of the...
View Article"TypeError: index 0 has type 'QgsRasterLayer' but 'QgsRasterCalculatorEntry'...
I start to write my own simple code to automatically calculate NDVI from Landsat 5.Here is my code:from PyQt5.QtGui import *from qgis.analysis import *land_3 =...
View ArticleQgis3 APIbreak : QgsFeedback instead QProgressDialog while using...
I upgraded my Qgis to 3.0.1 and I try to upgrade some of the plugins I wrote.I have a plugin which uses GDAL/rastercalculator from several raster layers to get new information.With Qgis2 api it was...
View Articlegdal_calc to replace null values of one raster with values of another not...
I have a raster containing NULL values in which I'd like filledTo do so, I have interpolated the raster via IDW in GDAL, and then used the QGIS raster calculator to perform the following...
View ArticleError 000539 in ArcGIS Desktop?
I am using Raster Calculator in ArcGIS 10.4.1 in order to substract two raster surfaces. However, when I substracted the two surfaces an error 000539 was appeared! I tried to adjust the two surfaces in...
View ArticleAdding a criteria to raster calculator that changes the output
I am doing a weighted site suitability analysis in raster calculator. Due to the weights assigned the site analysis shows certain areas that are certainly not suitability as having decent suitability....
View ArticleConvert written formulae into ArcGIS Pro Python or Raster Calculator Expression
D is my Distance Raster (Dras). it is made.I need help putting the formulae below into ArcGIS Pro Python or a raster calculator expression in ArcGIS Pro. It should only run on values where Dras <...
View ArticleQGIS raster truncated output or file corruption
I'm working with several large raster datasets that I want to use in the raster calculator:("Fusion_LCM_AGRO_raster@1" * 0.3) +("Streams_AGRO_raster@1" * 0.3) +("Raster_FloodRisk_AGRO@1" * 0.2)...
View ArticleSetting all pixels with value
I am using QGIS.I have a DEM raster with pixel values between about 3000 and -0.0003.I need to set all pixel with a value of 0 and smaler (<=0) to "nodata" (for later raster calculations and to...
View ArticleRaster Calculator in processing scripts crashes using PyQGIS
I am currently writing a processing script for QGIS that goes as follows:Takes in a digital elevation model (DEM) tiff file, a shapefile mask of the study area, and a slope cutoff value in percentClip...
View ArticleWhich output data type to choose in QGIS SAGA Raster Calculator in Batch Mode?
I have 5 years of MODIS13Q1 NDVI .tiff images for time series analysis. I want to multiply all the images with the scale factor of 0.0001 before using them. In order to process all at once I try to use...
View ArticleArcGIS Raster Calculator Error 000539
I am getting the error-000539: Error running expression: rcexec(). I've seen that other people have this same issue but I am not sure how to fix mine. I just want to average the values of 10 rasters,...
View ArticleProblems in calculate mean band values inside polygon
My goal is: to calculate the minimum, maximum and average values ​​of a raster band within a polygon feature, without using any library, only using PyQGIS: polygon_geom = polygon.geometry() extent =...
View ArticleSpecify field of raster in Raster Calculator expression of ArcMap
In Raster Calculator I need to apply the next expression:Con("raster1%","field3")==Integer, Lookup("%raster2%","field3"),Lookup("raster1%","field3"))or more...
View ArticleTypeError: unsupported operand type(s) for -: 'str' and 'int'
I have 732 temperature rasters (366 min and 366 max temp) that I want to manipulate depending on if the max temperature was greater than a specified and constant crop category temperature.import...
View ArticleConverting floating point raster to vector
I'm trying to convert a raster layer to vector but I'm really struggling.First it says that I have floating points rather than integers so I have I have seen you can use raster calculator to multiply...
View ArticleAssign a value to a cell based on the elevation difference with its...
QGIS newbie here. I have a DTM raster layer and a river raster layer that shows location of rivers. I would like to first check if cell X is a river. If yes, check if any of its 8 neighbouring cells is...
View ArticleCalculate percentile value of raster
I want to set null all raster values that fall below the 75th percentile value. E.g. If you classify the raster by quantile method into 4 classes I want to be left with the top 25% percentile. For the...
View ArticleIdentifying and quantifying gullies and hags from aerial imagery in QGIS
We are involved in an extensive peatland restoration project in the Shetland Islands. We provide high resolution and accurate digital surface models and orthomosaics for initial analysis and on-going...
View ArticleTerracing and data format issues when converting DEM from float32 to UInt16
I have spent quite a bit of time trying to figure this issue out; I was hoping someone on here could give some advice on what to do. I am having issues with terracing on my 3D model in Blender and I...
View ArticleCan't normalize [closed]
I'm trying to normalize a raster, and when I click run it says error in the formula, without spicifing, what could it be?
View ArticleUsing maximum and minimum operators in QGIS Raster Calculator
I would like to normalize a raster, using the raster calculator in QGIS 3.x, but I don't know how to use the maximum and minimum operators. I have tried the following sequence, but it does not...
View ArticleSetting raster outliers to nodata in QGIS
For further analysis, I want to exclude raster outliers (mostly single pixel values).Therefore, how can I set global raster outliers (e.g., mean +- 2*sd) to nodata value in QGIS?
View ArticleRaster calculator window without specified layers from graphical model
Several years ago I've created a graphical model (still works), where used a raster calculator algoritm. It was easy to add layers into the expression since all the layers from the model were specified...
View ArticleCalculate the mean of files generated from gdal.Translate
I created several velocity maps from .nc files through gdal.Translate. Each .nc file is organized in several bands, I am only interested in 1: velocities. gdal.Translate allows me to select only the...
View ArticleENVI band math incorrect values
I'm attempting to calculate vegetation indices in ENVI 5.2 using level-2 AVIRIS data in band math.The indices I'm working with are Vogelmann Red Edge 2, normalized difference red edge, and red edge...
View Article