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 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 ArticleNormal range value of New Built-up Index (NBI)
I cannot find any references about the ranges of New Built-up Index (NBI) which was proposed in this article https://ieeexplore.ieee.org/document/5567823.
View ArticleRepeat a linestring across a farm field at 40 inch intervals to use r.report...
Hi I am a new user to QGIS.I have googled,youtubed and SE all day today. I have found answers to most of my issues. This one has me stuck. I have included an image of the project I am attempting to...
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 ArticleCalculating NDVI using QGIS Python Console
I'm going to calculate NDVI using band 4 and band 3 of Landsat 5.The code I wrote:import os, reimport processingfrom osgeo import gdalinput_B4 =...
View ArticleLookup Spatial Analyst tool
I have a raster of about 3million rows and 6 columns it has an attribute table joined from a CSV (CNN_result). I want to use look up (Spatial Analyst) tool but it took forever. Are there any other way...
View ArticleHow to make PyQgis to return 4 raster subdivisions calculated by inequations?
I've been making in Raster Calculator, one by one, for every Return Period (2, 5, 10, 50, etc.) different sub-rasters of 4 sections of water depth, it's very tedious and I know there is a faster way to...
View ArticleError 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 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 ArticleArcGIS Raster Calculator Erase raster from raster
Two rastersslope (black and white grid with slope values)rasterized property (red, values do not matter)I want to erase the red raster from the slope rasterI found this...
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 ArticleChange Value of Cell in Cost Layer (Raster) by whether it touches...
QGIS 3.36-Maidenhead: I have compiled a very large cost raster covering parts of Africa. I have applied cost values to all cells based on geographical considerations.I'd like to carry out a final...
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 ArticleQGIS Raster Calculater Syntax - unable to combine 2 expressions
I have a slope (in degrees) of a DEM where I'm attempting to assign various values to various bands via Raster Calculator.The individual expressions work, but when combined they do not.("slope-GDAL@1"...
View ArticleRaster calculator giving unexpectedly large and integer results
I am trying to divide one raster ("s05") by the other ("d_05") and the resulting raster ("SdivD") is giving me some suspicious values.I am using ArcMap. The raster s05 values range from 0.0000206 to...
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 ArticleWrong answers using QGIS Raster Calculator
I am carrying out a simple subtraction of 2 raster layers, both with 1 band using both the raster calculator and GDAL raster calculator tools in QGIS version 3.28.5.Both rasters are using CRS 4326.When...
View ArticleRepeating linestring across farm field at 40 inch intervals to use r.report...
I am a new user of QGIS. I have found answers to most of my issues. This one has me stuck. I have included an image of the project I am attempting to create.My plan is to place a linestring on every...
View ArticleCreating a new raster showing values based on how many rasters overlap
Intro to GIS student here.Hopefully I can articulate this issue clearly:Currently, I have six raster layers that I am trying to create a new layer out of. I think the best way to describe the new layer...
View Article