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

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


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


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

Image may be NSFW.
Clik here to view.

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

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


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

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

Usage of Map Algebra expressions to build Erosin and Dilation operations

PostGIS's ST_MapAlgebra function (focal operations) seems a good candidate for implementing Erosion and Dilation operations, which are like the vectorial counterpart ST_Buffer (positive and...

View Article


GRASS 7 raster calculator "and"

I am struggling with one thing in the raster calculator in GRASS GIS 7:I want to create a raster_b from raster_a, with raster_a values between >=-0.15 and <=0.15. The raster containing values...

View Article


Image may be NSFW.
Clik here to view.

Extracting enclosed raster objects in ArcGIS Pro

I am working with raster data in ArcGIS Pro and am seeking a workflow to extract raster objects enclosed by a value (see image below). I have two input rasters, both binary. I would like to use Region...

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.

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

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


Using parameter instead of number for EXTENT in PyQGIS

I am new to QGIS and Python. I'm trying to automate a calculation process that I need to repeat 20 times. I need to first extract the extent of a raster and then set that as the extent of a new...

View Article

Masking pixels in QGIS

How to mask pixels in QGIS without Raster Calculator?I will render a geotiff for forestry. Now I will mask out trees with a specific height to show only trees 2m above ground. I will get canopy heights...

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

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


Image may be NSFW.
Clik here to view.

Give non-overlapping parts of 2 rasters a value 0 (QGIS)

Is there a way in QGIS to give non-overlapping parts of 2 rasters a value of 0 in the new raster file? I would like the data gaps in the velocity file (so where Ice mask is displayed on the chart) to...

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

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

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


Image may be NSFW.
Clik here to view.

QGIS Raster Calculator Expression Box Text Font Very Small

Does anyone know how to increase the font size in the QGIS Raster Calculator Expression box as its very small

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

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

Combining raster with different EPSG in QGIS

In QGIS I want to combine EPSG:25832 raster file with Geoid raster file in EPSG:4258 and must export this in EPSG:3857.Will QGIS do this on the fly or is it better to convert the geoid raster to 25832,...

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

Creating random raster with many bands and NoData values in QGIS

The taskFor testing purpose (see here a scenario), I want to create a raster with many bands, containing random values. Some of the bands should contain NoData values for some of the pixels.What I have...

View Article

Image may be NSFW.
Clik here to view.

Reading and returning data from Excel into QGIS Raster Calculator

In QGIS, I have a raster with DNI values. I also have an Excel sheet that shows the Efficiency corresponding to each DNI value. I am running a procedure in raster calculator where I multiply DNI by...

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
Browsing latest articles
Browse All 224 View Live


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