Questions tagged [spatial-analyst]
Spatial Analyst is an extension within ArcGIS that provides a range of spatial modeling and analysis tools.
1,531
questions
0
votes
1
answer
13
views
Fixing AttributeError: 'module' object has no attribute 'MakeRasterLayer_management'
I'm trying to change my slope map's labels and colors to the specific ones I want which are shown in the code, but when I run this script it produces an AttributeError that doesn't make sense to me ...
0
votes
0
answers
7
views
Changing labels and colors of slope map values in ArcPy with ArcMap
I have this code in ArcMap which produces a slope map with the correct values (the slope map is reclass.tif), but I want its labels that appear in the Table of Contents underneath it to show ...
0
votes
1
answer
26
views
Processing large number of rasters using ArcPy but it only saves last file
I am using a Python script for running an iteration of raster calculator. The operation is a conditional clause for changing no-data values to "0". The script is the following
import arcpy
...
0
votes
0
answers
18
views
ArcPy code producing slope map with wrong values
When I run my Python script in ArcMap it produces a slope map just how I want it, but it's producing it with the wrong values. The slope map produced by the script is the one named "reclass.tif&...
2
votes
1
answer
41
views
Buffer Polygons without overlapping regions of neighbouring boundaries in ArcGIS Pro
I'm struggling with a simple buffer which turns out to be way more difficult than I thought.
I just want to buffer a polygon shapefile which has many neighbouring objects (on the left picture the ...
2
votes
0
answers
23
views
ArcPy producing wrong slope map using Spatial Analyst with ArcMap
I wrote a Python script which is supposed to produce a slope map with 6 classes each one being from 0-3.99, 4-9.99, 10-15.99, 16-30.99, 31-60.99, 61+ (Although for testing purposes the max is 789.54). ...
0
votes
1
answer
15
views
Raster data summarized in different vector polygons
I am using ArcGIS Pro 2.9.2 and I have a raster dataset of noise pollution across England with different noise levels. I also have the LSOA vector shp file. I want to get the average noise level per ...
-1
votes
0
answers
14
views
Slope at Point Averaged Over 10 Feet of Elevation Change [closed]
See added clarification in my comments below.
I'm trying to run a slope analysis where the slope at a given point is calculated as the average over 10 feet of elevation change.
Does anyone know how ...
2
votes
1
answer
27
views
Creating visibility surfaces through extracting and iterating with ArcPy
I am using ArcPy with ArcGIS Pro.
I am trying to create a short script in order to create visibility surfaces from a set of points and a raster surface. I am new in ArcPy and probably this piece of ...
0
votes
0
answers
20
views
Convert Luojia1-01 DN values to radiance
I am trying to convert Luojia's DN values to radiance following the equation in the attached image.
I am using the Raster Calculator in ArcMap for this conversion and the command I am typing is image^...
0
votes
1
answer
34
views
Reclassifying in ModelBuilder of ArcGIS Pro
I am using ArcGIS Pro.
I am trying to build a model to iterate between land cover raster files and reclassify them. However when I open the Reclassify tool, the remap section has been greyed out. I'm ...
2
votes
1
answer
45
views
Zonal Statistics as table on population raster does not produce correct regional population figures using ArcGIS Pro
I have a population raster (from Worldpop.org) with data on the population count of Philippines. It is unconstrained data from 2020, 100m resolution.
Link to raster: https://www.worldpop.org/geodata/...
1
vote
1
answer
20
views
Spatially merging two netCDF raster layers into one layer while using ArcMap
I tried to merge two .nc-files into one within ArcMap. There is one file containing the specific values for North America and one containing the values for South America (see the image below).
My ...
0
votes
1
answer
38
views
Determining optimal tower placements that use line of sight in a valley in ArcGIS Pro
I am currently working on a project to determine the proper placement of towers that rely on line of sight to work in a large study area in a valley with 2 large sets of mountains on either side. I ...
0
votes
2
answers
36
views
How to create suitability map from categorical raster and Euclidean distance raster in ArcMap [closed]
If I want to create a suitability model for site location based on soil drainage and proximity to water features, what tool would I use? As well, would there be a way to add in a third raster if I ...
0
votes
0
answers
22
views
Singling out line features for an associated value in a given area in ArcMap
I have a series of lines that go between many points in a grid fashion, like below.
Each of these lines has a value associated with it, and I want to pick out a line in each of the "square" ...
1
vote
0
answers
24
views
Raster Calculator with multiple rasters
I have 2 rasters in ArcGIS Pro
Raster 1: Values of 0-100 for percentage of tree cover
Raster 2: Values of 0-19 for tree cover loss by year (0 is no loss, 1 is loss in 2001, etc.)
I am trying to find ...
1
vote
1
answer
26
views
Resampling high resolution data into lower resolution based on most common value
I want to use a high-resolution classification (3cm) as training data for a classification using Sentinel 2 data (10m).
To do so, I want find which high-res value is most common within each Sentinel &...
2
votes
1
answer
16
views
Getting the percentage of points within an area
I'm new to ArcGIS and trying to gather the number of points and a percentage of those points within a somewhat small area. How would I do this or what would this be called? Spatial query? I have ...
0
votes
0
answers
14
views
Raster Calculator output does not match polynomial equation using ArcGIS Pro
I am using ArcGIS Pro 2.7.2.
I'm trying to run a polynomial equation on a set of raster values using the following equation:
Con("Raster"<0,0,((744.183421501*("Raster")^3)-(869....
0
votes
0
answers
9
views
Using ArcGIS path distance tool and vertical factor to estimate fuel used by automobile
I am attempting to use the Path Distance tool (either in ArcMap 10.7 or ArcGIS Pro 2.8) to estimate the amount of fuel vehicles need to drive across the landscape. I have the typical gas mileage/fuel ...
0
votes
1
answer
44
views
QGIS: Multi Overlay Analysis of NetCDF-4 Raster Files to Calculate Average Values over 5 years
Issue:
I have a dataset that ranges from 2016 to 2021. The file types that I am going to use for the analysis are Aqua Modis and NetCDF-4. My data contains 650 rows and I am using parameters such as ...
0
votes
1
answer
60
views
Zonal Statistics not Working Properly in ArcGIS Desktop
I have two rasters, one that describes different zones of the world and a second one which is the input raster that has continuous values for a variable.
I am using the Zonal Statistics tool to ...
0
votes
1
answer
43
views
Watershed tool in for loop on single feature point shapefiles creates empty rasters in ArcPy
I am using ArcMap 10.8.
I have a flow direction raster and many point shapefiles with one feature each.
I want to calculate one raster watershed for each point shapefile
fd = "C:/sample/raster/...
1
vote
0
answers
27
views
Removing changed pixels in land use time series (MCD12Q1) using ArcGIS Pro
I have 20 rasters of my study area land use which is from MCD12Q1.
I want to remove the changed pixels in 20 years.
I tried to use ArcGIS Pro, but I could distinguish only two rasters with raster ...
0
votes
0
answers
24
views
Failing to correctly refer to raster layer in Raster calculator (ERROR 000539) using ArcGIS Pro
Here is my function in Raster Calculator:
Tan((Raster("MCE: TWI\Slope"))*1,570796/90)
MCE: TWI\Slope is the location for my Slope-layer.
Looks simple, but I keep getting the error 000539. It ...
0
votes
0
answers
28
views
Calculating change of slope angle within given slope interval using ArcGIS Pro
I need to find areas of rapid slope change greater than 10º within a slope interval of 28º < slope < 55º.
I created a slope layer from the DEM and then CON (spatial analysis) to isolate the ...
1
vote
1
answer
74
views
Reclassification of raster by classification method in QGIS
I am trying to reclass my raster data based on the reclassification methods ( equal interval, quantile,..) in QGIS like we do in ArcMap. I don't see any tool in QGIS to perform reclassification of ...
0
votes
2
answers
110
views
Substracting one Raster from another ArcGIS Pro
I extracted the middle and high vegetation points from a lidar-point cloud and converted the points into two separate rasters (one for the high vegetation in dark green and one for the middle ...
0
votes
0
answers
49
views
Deleting specific pixels in ArcGIS Pro?
I am trying to delete pixels in ArcGIS Pro, but could not get how to achieve it.
In the screenshot shared below:
The white pixels encircled in orange markers are the ones I want to delete.
I did try ...
0
votes
1
answer
23
views
How to define a raster in ArcGIS Pro for use in the Raster Calc. tool with Python script
As part of a lab for an intro GIS course, I'm trying to create a new elevation layer from an existing elevation raster, to create a raster layer that only displays where the elevation is above 224 ...
1
vote
1
answer
35
views
Giving constant inside greater than function or in raster calculator
threshold=arcpy.GetParameterAsText(2)
stream=GreaterThanEqual(facc_clip,threshold)
Error: Input Raster: Dataset 570416 does not exist or is not supported
Here 570416 is the value I input in the ...
3
votes
1
answer
301
views
Arcpy Traceback error 000210: Cannot create output
I have been given the task of taking a script that was made by someone who has left and altering where it saves the files. This is originally a simple folder system but we are moving over to file ...
0
votes
1
answer
53
views
Raster calculator not performing sum
I have multiple rasters, which I reclassed to values from 0 to 10.
I weighted those rasters in "raster calculator" with my weight values and I obtained the correct values for each raster.
...
2
votes
1
answer
44
views
Raster calculator does not show right result ( only show true)
I am using ArcGIS 10.5. From a DEM, I have created a new raster showing slope using the slope tool. The colour scheme was automatically classified into 9 tiers. What I want to do is query this raster ...
0
votes
1
answer
97
views
Connecting address points to nearest part of a road network that has matching street name
In ArcGIS Pro (or ArcMap), using built-in Esri geoprocessing tools, how can I create connection lines between address points and the nearest part of a road segment with a matching street name (e.g. '...
0
votes
0
answers
7
views
STARS toolbox segment PI returning nulls
I am working to create an isoscape using the STARS toolbox in ArcGIS, and have come back to it to rerun a few things. I had previously run the segment PI (proportional influence) using watershed area ...
0
votes
0
answers
29
views
How to find optimal store location considering road availability and road condition using ArcGIS Pro
Recently, I am struggling with how to find optimal store location considering road availability and road condition using ArcGIS Pro. I have tried the location-allocation function in ArcGIS Pro. But I ...
2
votes
0
answers
42
views
Using LiDAR-Derived DEM to Identify Aerial Sewer Lines
I am trying to come up with the best process for identifying aerial sewer lines (typically over streams) using the pipe inverts and a LiDAR-derived DEM. In other words, locate the lines where the Z ...
0
votes
0
answers
33
views
RasterCalculator Not defined even thought imported arcpy library
I get an error message saying that "RasterCalculator is not defined" even though I have imported everything from arcpy.sa.
Why is this happening?
Code:
import arcpy
from arcpy import env
...
1
vote
1
answer
34
views
Testing if two different rasters have overlapping data (not extents) before using raster calculator tool in ArcMap
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 ...
0
votes
0
answers
33
views
Processing Extent in ArcPy with polygon to raster
I want to do a multicriteria analysis. To do that I have buffered layers that I want to convert to rasters, but I want to set a processing extent and make so where the buffer area is gets value 1 for ...
2
votes
1
answer
103
views
Changing inline variable %name% in ModelBuilder of ArcMap
I have a lot of MODIS tif files in a folder and I want to calculate zonal statistics of each tiff file according to polygon in my shapefile. I am trying this in ModelBuilder of ArcMap 10.3.1
However, ...
1
vote
0
answers
27
views
Layer and Buffer Creator - custom method
I am trying to make a script function that creates layers for further use to buffer the layer. My code doesn't give me any error but neither any buffered layer.
My code is below:
import arcpy
from ...
1
vote
0
answers
51
views
Taking min and max values out of certain polygons
I have taken out DEM data over a specific area and converted the raster to polygons.
Now I want to code so I get the max value and the min value of "gridcode" of every set of polygons that ...
1
vote
0
answers
26
views
Creating custom statistic type for use in focal statistics in ArcGIS Pro
I am trying to analyze raster data using a moving window. I am doing this in ArcGIS Pro, but at this point I'm getting stuck on how to use the formula I need as the statistic type of the moving window....
0
votes
1
answer
40
views
Digitizing topographic contours to produce DEM from it using ArcMap
I have four topographic maps spanning 60 years all of which have the same scale (1:62,500). I have digitized contours (5 feet interval, 4 contours 285, 290, 295 and 300 feet) of the same section in ...
0
votes
0
answers
19
views
How to extract feature values to an existing raster?
What tool would I use to extract the value of a field in a polygon, store it in a raster, and perform a calculation, ideally without creating a new raster for each polygon I needed to look at?
I have ...
0
votes
0
answers
18
views
Merging Tabulate Area Results by County using ArcGIS Pro
I'm working in ArcGIS Pro v2.4 with all extensions. I have a bunch of tables that are the result of running the Tabulate Area tool on a series of raster map tiles to calculate land cover by county in ...
0
votes
0
answers
79
views
Calculating height difference between feature and surroudings using DEM in ArcMap
I have a raster file of drainage ditches. I also have the digital elevation model. The goal is to calculate the depth of each drainage ditch. So therefore I want to use the DEM. Below you can see a ...