Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [reclassify]

Changing the values of the cells in a raster.

1
vote
1answer
18 views

Reclassifying field using Python wildcard string search?

I have a point layer with 900K Tree Point records. In that layer I have field (d_Species) that contains the tree species of each record. I've created a field (SpecieValu) to assign a value (0-3) for ...
2
votes
1answer
110 views

Partial raster reclassify in QGIS

I have a CHM model (raster) with values -10 up 100. I need to reclassify values as: value < 0 => 0 0 < value < 50 => the same value value > 50 => 0 I tried so many tools, but I cannot ...
0
votes
0answers
11 views

Reclassifying raster into float points using ArcGIS Desktop? [closed]

I want to assign float values to the classes of a raster with integer values for example, I want to assign 0.322 value for a certain class in a raster with value 1, the re-classifier tool isn't ...
0
votes
0answers
15 views

Reclassification of a two-sided significance test result of a rasterstack

I have in my project to analyze a time series of NDVI data for significant changes. For this I did a pixelwise check: # Loading all necessary libraries library(sp) library(raster) library(rgdal) ...
1
vote
0answers
36 views

Reclassify raster conditional on attribute values in R

My raster has nonsensical values (based on combination of multiple rasters in previous steps), with attributes maintained (again, due to combination of rasters in previous steps), see below for sample ...
3
votes
1answer
57 views

Reclassification of MODIS collection in Google Earth Engine

I want to reclassify the MCD43A4_006_NDVI collection and change all negative values into NAs. I have the following code but I am not sure how to do this. Any ideas? var geometry = /* color: #...
0
votes
2answers
48 views

Reclassify a raster in R based on two rasters with the output containing over 1000 bands

I am trying to convert the outputs of a model into a raster based on both a temperature raster and a seasonality raster. I have over 2100 bands so ifelse statements aren't going to cut it. An example ...
0
votes
1answer
37 views

Using ArcGIS ModelBuilder to reclassify by raster properties (mean)?

I'd like to reclassify raster using ModelBuilder based on the raster properties. For example assign 0 to all values less than mean+2, and assign 1 to other values I could do it manually by ...
1
vote
1answer
34 views

Classifying quantiles in raster dataset with ArcPy?

I am trying to write a Python script which uses the reclassify function in ArcPy to create 9 classes in a raster file. I want to use the quantile method to create the breaks, but so far, I can't seem ...
0
votes
1answer
41 views

Layer names changed after reclassification of rasterstack, R

Following one of my previous questions about looping through a rasterstack (here), I now face a different issue. My initial rasterstack had dates as names (e.g. X2000_05_08.1) and I reclassified it in ...
1
vote
0answers
30 views

Unable to select table in “reclassify by table” algorithm in QGIS Processing Modeler

In the Processing Modeler (Graphical Modeler) for QGIS 3.4.3, the "reclassify by table" tool seems bugged. I cannot select a Reclassification table, even though it's an obligatory field. Am I doing ...
0
votes
1answer
101 views

Reclassify and combine rasters in QGIS?

I have a vector layer containing watercourse location which I have rasterized. I also have a DEM containing elevation data for the region in which the watercourses are located. I would like to ...
2
votes
0answers
71 views

Using Reclass in Arcpy, Error 010005: Unable to Allocate Memory

I've derived a raster of slopes from a 10 m DEM resampled to 15 m for an area of approximately 20,000 mi^2. I want to use Python to reclassify those slopes into categories according to range, but ...
0
votes
1answer
39 views

Reclassify with attribute

So, I don't really know how to word what I want to ask, but I took a DEM file and did used the raster calculator to select a certain elevation range. After that I reclassified it to separate it into ...
1
vote
1answer
16 views

Adding values on reclassified layers using ArcMap?

I have reclassified the values on the layer I am using, however, I would like to add extra values. The final values showed in the layer should be in a scale from 0 to 10. That means, in this case, I ...
1
vote
0answers
49 views

Raster reclass can't load remap table

I have a 2017 Land Use raster of the US, shown below that I'm trying to reclassify. It has 256 different values right now and my plan is to only have nine at the end - a few crops I care about ...
0
votes
2answers
121 views

R: Reclassify a raster stack through the range of the quantiles of each layer. Generic quantiles function ; layer by layer

I have a raster stack that contains terrain bends extracted with different neighborhood windows "crosc_nxn" (e.g. 3x3, 5x5, etc ...). crosc_nxn <- raster::stack(path.files.list) > crosc_nxn ...
0
votes
0answers
30 views

Reclassifying with ArcPy from 0 to 1?

I am having trouble re-classing a field. I have two field one is called Rowid and one is Value. Rowid is being reclass from 0 to 1 Value is being reclass from 1 to 0 I was able to reclass value, ...
0
votes
1answer
69 views

Adding values from a table to an image band - Google Earth Engine

I'm trying to add values from a table to a cluster image. The cluster image has 50 cluster classes, and my table has 50 values for each cluster class. How do I add the values from that table to the ...
1
vote
2answers
260 views

Calculating statistics per area for categorical raster using R?

I am working with the area of New York City (NYC) in ArcGIS 10.1. I have a landcover raster map with several different land cover categories. What I am trying to do is to build up a table in which, ...
2
votes
2answers
66 views

Reclassifying certain values using ArcPy in ArcGIS Pro?

I need to reclassify certain values to different values in a raster using Python in ArcGIS Pro 2.2.2. I can't use reclassify because I don't want to change all values and I can't go through each one ...
2
votes
4answers
699 views

Reclassify in QGIS

I have a raster file (DEM) whose values range from 0 to 1565 meters (elevation). I want to extract a new raster file after classifying the values in four classes like this: <= to 150 meters ...
1
vote
2answers
69 views

Reclassify in python doesn't reclassify things

I'm trying to reclassify the pixel values of NLCD_2011 data to a binary representation of developed vs. undeveloped land. import arcpy arcpy.CheckOutExtension("Spatial") nlcd = ('file ...
1
vote
0answers
92 views

Reclassification and Con(0 not working arcpy [closed]

I have a raster that has three pixel values=0,1,2. I want all pixels of value 2 to be 1. The raster is in tif format, 32 bit signed type. Below is my arcpy script- inRaster1="path address/input.tif" ...
0
votes
0answers
48 views

Reclassify a raster (DEM) to create a constant slope angle

I'm trying to apply a constant slope angle to a raster (DEM) surface. The context is that I'm looking to show a land form upon final completion of works, I've reclassified a number of areas within a ...
0
votes
1answer
64 views

Reclassifying Raster to Vectorize in ArcScan

I have a raster file featuring sidewalks for an entire city. I created this raster from polygons with the intention of using ArcScan to extract a centerline from the raster. I know that the raster has ...
1
vote
1answer
43 views

Using arcpy to reclassify “NoData” to a value

There is a part in my Python script where I convert a Feature to a Raster (arcpy.FeatureToRaster_conversion). The output is a raster with a certain value (based on a field of the Feature). The rest of ...
0
votes
1answer
64 views

Reclassify raster based on cell location and value

I am working in ArcGIS 10.5 (with the spatial analyst extension); I'm relatively inexperienced but I understand what I am trying to do, just need some help on how to accomplish it. I am working with ...
0
votes
2answers
196 views

TypeError: 'int' object is not iterable in reclassifying raster using arcpy

I am trying to reclassify a raster, using arcpy in Python. My code is below from osgeo import gdal import arcpy from arcpy import env from arcpy.sa import * raster_file = 'M:/tgopalakrishna\Data\...
0
votes
0answers
21 views

Reclassifying raster dataset that is output of Mosaic to new raster?

I am trying to apply the reclassify tool on a .tif raster dataset that I produced with the tool Mosaic to new raster. I can run the tool and I receive no error messages, however the resulting values ...
2
votes
1answer
320 views

Create presence/absence (0/1) rasters for every value in categorical raster in R?

I am conducting a logistic regression analysis of spatial data for a project using STAN MCMC within R. The regression analysis itself is done, but now I need a way to apply the parameter estimates for ...
2
votes
1answer
95 views

Deleting pixels of a certain class that are connected to less than 2 other cells in R?

I want to process my data (classified single-band raster) according to a specific idea. Pixels that do have less than 2 neighbors of the same class (eg. with the value 1) shall be removed and ...
0
votes
0answers
31 views

Raster classification

I am a novice in arcgis. Initially I had a raster of land use with several classes which I used a neural network model to predict future land use based on one class which is agriculture, in the ...
0
votes
0answers
127 views

Keep getting ERROR 999999: Error executing function when invoking ReclassByASCIIFile

This error has puzzled me for days, as I can run this on my raster within Arcmap with no issues. My snippet of code is: # Process: Average FFPI cells to sub basins using Zonal Average technique ...
0
votes
1answer
51 views

Running reclassify and Int tools on raster?

I am trying to do a very simple thing - convert a raster to a polygon where positive values are one set of polygons, and negative values are another set of polygons. The raster ranges from a minimum ...
0
votes
1answer
394 views

Assigning categories to a single band raster in Google Earth Engine?

I'm trying to assign bins to a raster containing values between -1 and 1 in GEE. The bins would be 0.41<x<0.60, 0.61<x<0.80 for example. Is there a function for this? The only function I ...
2
votes
0answers
67 views

“two ways” Reclass QGIS

I'm a forestry technician and I've one question dealing with forest road planning... in order to calculate areas that can be cover by a specific machine (with a given work distance) I do as follow: "...
1
vote
0answers
59 views

Error with r.reclass on QGIS for Mac

I'm trying to use r.reclass fonction (grass7) on QGIS (2.18.15) for Mac but when I ran it, there was an error : [Errno 13] Permission denied: u'tmp152292116024' See log for more details I searched ...
1
vote
0answers
59 views

Reclassify land use map based on agricultural statistics [closed]

I'd like to create a land cover map of Greece with enhanced information on the spatial distribution of agricultural crops. As you know, common land cover products (such as ESA CCI LandCover or CORINE)...
2
votes
2answers
49 views

Ranking target features by number of near features using ArcGIS Desktop?

To help decisionmaking, I want to rank housing units by the number of grocery stores nearby, limited to a 2-mile radius for each unit. I am trying to define my mapping problem and find out what ArcMap ...
1
vote
1answer
154 views

Error while trying to use GRASS GIS' r.reclass module

I'm not sure I understand how to use r.reclass in GRASS. Can somebody go through what the inputs should be or direct me to a tutorial (I've looked...) for the current version? I get an error when I ...
0
votes
2answers
125 views

Reclassify a raster in order to polygonize python

I have a GTiff raster with values from 0 to 255 and I want to reclassify 2 values ( 1 and 2) to 1, and the rest set them to NaN, in order to polygonize later and obtain polygons only for the desired ...
1
vote
0answers
35 views

Unexpected results when reclassifying raster using GDAL/numpy

I am trying to reclassify a continuous raster(Int32) using GDAL Python/NumPy, by giving values greater than a number (in this case 60 minutes) 0, and less than/equal to the number 1. It's working for ...
0
votes
1answer
46 views

Using r.reclass.area.lesser in QGIS?

I want to reclass small areas in QGIS 2.18, but it seems to fail calling the algorithm in GRASS GIS. The interesting lines from the Log of the tool: ... C:\PROGRA~1\QGIS2~1.18\bin>g.region n=...
-3
votes
2answers
55 views

Error reclassifying in python [closed]

I am getting a syntax error here, I can't seem to see why. >>> import arcpy ... from arcpy import env ... from arcpy.sa import * ... env.workspace = "C:\\AGData.gdb" ... outReclass1 = ...
7
votes
1answer
204 views

Raster calculator reclass 0 as 0 QGIS

I want to process a raster with values 0-16. I want to set all values between 1 and 15 as 1, a value of 16 as 0 and cells with a value of 0 as 0. How do I maintain a cell value of 0? I have tried ...
3
votes
1answer
69 views

Reclassifiying a continuous raster data inside each of 4000 polygons

I have a raster data with a continuous value (from a Low 0 to a High 1). Across the whole area of the raster map, I have 4000 polygons of different shape and size. Each of these polygons is assigned a ...
1
vote
0answers
52 views

Retaining integer values in raster when reclassifying values in QGIS?

I'm trying to build an attribute table for a raster in ArcMap. The raster was created in QGIS because I needed to reclassify nodata pixels to have a zero value. ArcGIS Desktop is not letting me ...
0
votes
1answer
435 views

Reclassifying NDWI using Google Earth Engine?

I'm trying to reclassify a NDWI raster into 1 for values >0.4 and 0 for <0.4. I understand that its possible to use .remap in case of discrete values, but not sure how to reclassify NDWI raster ...
3
votes
1answer
70 views

v.reclass no output

I want to reclassify a polygon vector and use v.reclass. Feature type: boundary Name of column: LBA Reclass Rule: I use a .txt with the following content: CASE WHEN LBA = 68 THEN 2 WHEN LBA = ...