Quantcast
Channel: Active questions tagged raster-calculator - Geographic Information Systems Stack Exchange
Browsing latest articles
Browse All 188 View Live

Image may be NSFW.
Clik here to view.

ENVI 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


How to select classes from a GeoTIFF world map and compute the area by...

I have two files:fileLUse.tif defines land cover classes in GeoTiff format (from https://www.esa-landcover-cci.org/?q=node/164)fileRegions.shp defines administrative borders and it is a shapefile (from...

View Article


Image may be NSFW.
Clik here to view.

QGIS graphical modeler and raster calculator

I'm making a graphical modeler that creates me a kind of DSM, like that:I create a DEM for my extent (I have the DEM for my whole country).I have the Lidar for the height of the forest and I extract it...

View Article

Image may be NSFW.
Clik here to view.

Using Raster Calculator Con(isnull) with ArcMap

I am using ArcMap 10.4.1 and the Raster Calculator to subtract polygons of clouds, land etc from my DEM. I use the statement:con(isnull, Cloud, DEM) and set the processing extent to environments of...

View Article

Image may be NSFW.
Clik here to view.

Summation of rasters shrinks area of interest

I have a raster representing a street network, a raster with values on that street network (sum_raster), and a vector layer with a number of polygons. Those polygons get iterated over and rasterizet...

View Article


Image may be NSFW.
Clik here to view.

Remove raster values above a numerical threshold

I have a set of interpolated raster files derived from a road network. Where QNEAT3 has interpolated between the road lines to make a simple outside edge, the values given in these 'white spaces' are...

View Article

Image may be NSFW.
Clik here to view.

Calculating Population-Weighted Exposure level using QGIS

I am trying to calculate population-weighted exposure level (PWEL) of particulate matter. I have raster layer of both particulate matter and population. The equation to calculate PWEL is:Pi is...

View Article

Setting specific pixel value to null in categorical raster

I have a raster where each pixel value indicates a crop type. For example, 10 is corn, 14 is barley, and 20 is blueberries, 26 is cranberry, and so on.I'm trying to convert this into a binary raster of...

View Article


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 runfrom qgis.core import QgsRasterCalculatorI receive the following error:ImportError: cannot import name...

View Article


Image may be NSFW.
Clik here to view.

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 Article

TIN 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 Article

Image may be NSFW.
Clik here to view.

Union 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 Article

Testing 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 Article


Creating 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 Article


Qgis3 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 Article

gdal_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 Article


Error 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 Article

Adding 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 Article

Image may be NSFW.
Clik here to view.

Convert 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 Article

QGIS 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 Article


Setting 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 Article


Raster 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 Article

Which 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 Article

Image may be NSFW.
Clik here to view.

ArcGIS 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 Article


Image may be NSFW.
Clik here to view.

Problems 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 Article

Specify 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 Article

TypeError: 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 Article

Converting 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 Article



Assign 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 Article
Browsing latest articles
Browse All 188 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>