Quantcast
Channel: Active questions tagged raster-calculator - Geographic Information Systems Stack Exchange
Browsing index pages (284 articles)

Converting Kelvin to Celsius in PyQGIS

from qgis.analysis import QgsRasterCalculator, QgsRasterCalculatorEntryraster = '/home/francis/QGIS/epelwrf/temp/temp0000-postwrf_d01_20180720_0600_f00000.gr2'bohLayer = QgsRasterLayer(raster)entries =...

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.

Terracing 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 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

Using Raster calculator gives ERROR 000539

I'm new with ArcGIS. I would like to do a calculate of NDWI. So I'm using Arctoolbox => Spatial analyst tools => Map Algebra => Raster calculator.But when I'm trying to perform it, I get this...

View Article


Using Raster Calculator without Clipping to Extent of Smallest Raster (QGIS)

(QGIS3) I'm trying to create a raster layer that is the sum of 2 layers, but I do not want to clip to the smallest extent. The raster calculator in QGIS automatically trims the new file to the smallest...

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

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


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...

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

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

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 to fill zero values

I have a DSM in GeoTIFF format which has a section of 0 values (the black area in the pic below).Ideally, I'd like to use the raster calculator to fill that section of 0 values with values which would...

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

"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


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

PyQGIS QgsRasterCalculator memory issue

I have made a function in Python Editor in QGIS, which (among others) performs a raster calculation.I want to use my function to loop through multiple rasters. However, I run into a memory issue when...

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
Browsing index pages (284 articles)


Latest Images