Stack Exchange Network

Stack Exchange network consists of 174 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
15 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
12 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
42 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
26 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
32 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 ...
0
votes
0answers
43 views

How to reclassify cluster image based on values from zonal statistics - Google Earth Engine

I have classified an image with 50 clusters (k-means). The next step is to reclassify the image into several meaningful classes (e.g. vegetation, urban, water etc...). I want to take an automated ...
1
vote
2answers
65 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
47 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 ...
1
vote
4answers
261 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
42 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
45 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
32 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
54 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
36 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
45 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
150 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
16 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 ...
1
vote
1answer
162 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
75 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
27 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
74 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
43 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
239 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
62 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
48 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
47 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
45 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
112 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
74 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
33 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
36 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
39 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
191 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
42 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
272 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
56 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 = ...
3
votes
2answers
340 views

Reclassify raster in QGIS with GDAL raster calc

I'm trying to reclassify some categorical raster data in QGIS using GDAL raster calculator. My input Geotiff has four values, [26, 27, 31, 32] which I want reclassified to [1.25, 2.5, 3.75, 5] ...
3
votes
1answer
119 views

Algorithm r.reclass in QGIS gives same results with different reclass rules

I am trying to reclassify several rasters using the r.reclass algorithm from GRASS GIS 7, but I don't get the expected output. My input rasters have values between 0 to 1 and NaN; and I am using 2 ...
1
vote
0answers
65 views

Automatically reclassify grid into 5 classes using Processing

I am using the graphical modeler of QGIS to rasterize a vector, and then reclassify it automatically into 5 values, without the intervention of the user. I have reviewed the reclassify algorithm of ...
0
votes
0answers
12 views

Calculate percent of lower resolution raster cells containing higher resolution cells

I am using the Aggregate tool (arcpy.gp.Aggregate_sa) to generate a lower resolution raster (representing population data) from a higher resolution raster. I currently am using the "EXPAND" option, so ...
1
vote
0answers
40 views

Reclass If/then logic [closed]

Have a binary raster. I would like to remove any 'islands' that are fully surrounded by one of the classes while leaving the 'islands' that are fully surrounded by the other. If 1 is enveloped by 0, ...
0
votes
0answers
41 views

Reclassifying raster with matrix?

I have combined two rasters using the combine tool. There is a field of values for Raster1, and a field of values for Raster2. I have a lookup table that determines a new field based on the values in ...
0
votes
1answer
49 views

Reclassify Tool Resulting in NoData where Input has Data

Software: ArcGIS Pro 2 I am having an issue with the Reclassify tool. I am attempting to reclassify raster data into three classes so that I can do a habitat suitability analysis. When I use the ...
3
votes
1answer
873 views

Reclassifying raster values in Google Earth Engine?

I need to reclassify slope raster (val: 0-90) to 9 classes (1-9). I used this code but the output raster cannot be displayed. What did I do wrong? // Add features var sumatera = ee.FeatureCollection("...
1
vote
0answers
29 views

In ArcMap, why does “Reclassify Raster” tool provide different result than when reclassifying the original raster symbology?

I was reviewing the results of a string of tools I created in ModelBuilder and I noticed that the results seemed off. I was masking multiple rasters to the same boundary, then reclassifying those ...
1
vote
0answers
56 views

ASC outputs for Circuitscape don't work

I'm preparing a raster layer of combined resistances of landcover, roads and rail and a second raster layer of 'focal nodes' for a Circuitscape Analysis. I prepped the files in R and they look fine in ...
1
vote
1answer
329 views

Split a single raster into multiple rasters based on the attributes in R

I have a land cover raster which has 15 land cover classes (which previously had 70 land cover classes and I aggregated the same). However, I realized that I need 15 different rasters based on each of ...
1
vote
1answer
106 views

Reclassify Raster in ArcGIS Pro 2 by Multiple Bands

I have a raster with three bands (RGB). I have used the reclassify tool to select only pixels within a certain range of the top band (Red). Those are assigned 1 and all others are assigned 0. In ...
-2
votes
1answer
63 views

Buffering roads (<100m - 200m -400m->400m) in ArcGIS Desktop?

I want to buffer road (<100m - 200m -400m->400m) I have problem with how can I use like this photo? I dont know use any type of buffer. How can I solve my problem? I don't know will be use in ...