Questions tagged [spatial-analyst]
Spatial Analyst is an extension within ArcGIS that provides a range of spatial modeling and analysis tools.
1,579
questions
1
vote
3
answers
3k
views
Getting latitude and longitude raster from DEM using ArcGIS Desktop?
Could anyone provide with a way to calculate latitude and longitude from DEM, for each raster cell?
In previous posts about this, I have seen that some suggest calculating lat and long in certain ...
0
votes
0
answers
25
views
Large polygon with null geometry
I have a flood hazard area polygon that I'm creating based on a depth raster for a HUC 8 watershed. The script tool I use is as follows:
import arcpy, os
arcpy.env.overwriteOutput = True
arcpy.env....
8
votes
1
answer
5k
views
Making new raster using con() script and ArcPy
I'm new to Python and have been trying to code a raster calculator style script. Basically, I want to convert a raster that has values 0 to -10,000 into a raster that is populated by 1s between ...
3
votes
1
answer
30
views
Reset the NODATA to negative value error
I have a requirement for converting NODATA to value -3 with my floating point data. I have tried to reset NODATA by using Raster Calculator with the formula of Con(IsNull("tif"),-3,"tif&...
1
vote
1
answer
298
views
Finding longest flow path in multiple basins at once using ArcGIS Pro and Spatial Analyst
In my watershed I have around 400 basins. I need to find the max flow length in each basin. The "Flow Length" tool creates the flow length for the entire watershed, not for each individual ...
2
votes
2
answers
3k
views
Tobler's hiking function in PathDistance ArcGIS 10.3.1
I am working on least cost paths for an archaeological project and I am trying to implement Tobler’s hiking function on ArcGIS 10.3.1 for Desktop.
I am using SRTM 1 arc second global downloaded on ...
1
vote
0
answers
33
views
Get the pixel value of a raster object using Python and ArcPy
I used the following code to get the pixel value of specific location of a DEM image (in GRID format):
import arcpy
from arcpy.sa import *
inRaster="C:\\data\\dem"
slop_temp=Slope(inRaster)
...
0
votes
1
answer
41
views
How do I create a polygon layer of high slope (>58%) area from a DEM in ArcGIS Pro
I am hoping to get from a slope raster (calculated from a 10m resolution DEM) to a polygon of areas above a certain grade (58%). I am using ArcGIS Pro 3.1. I have used the Raster Calculator tool to ...
0
votes
1
answer
139
views
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 = 1
I used raster ...
0
votes
0
answers
7
views
Establish a least-cost path between a point and a line (coastline)
I have a basic level of knowledge of ArcGis Pro. I need to establish a "least cost path" between a point and a line, which, in this case, is the coastline. What is the procedure?
0
votes
0
answers
41
views
ArcGIS Pro - Summarize within - 90th percentile
I have some point data which has a response time in minutes value. I've generated a hexagon tessellation and I want to calculate the 90th percentile response time for values falling within each of the ...
0
votes
0
answers
16
views
spatial query based of isochrone API
I am getting started with the Mapbox Isochrone API for a map script; I set the polygon = True. In this polygon based on 15 Minutes travel time, I want to do a spatial query: I want to return all ...
1
vote
0
answers
237
views
Raster Catalog to Raster Dataset giving ERROR 999999 [closed]
I have a problem converting my Raster Catalog to Raster Dataset. I have an error (see below) after 4-5 hours of process - all rasters have ~21Gb.
Is there something wrong with my data?
1
vote
0
answers
19
views
ENDISI calculate
I'm new to ArcGIS. Can someone tell me why my ENDISI always equal to 1?
My algorithms:
("band02.tif" - 16170.19 * (("band06.tif" / "band07.tif") + "mndwi.tif" ^ ...
0
votes
0
answers
14
views
Use raster calculator for fuzzy triangular function to fuzzify maps
Does anyone have an idea how to use the raster calculator to fuzzify maps with respect to the fuzzy triangular function?
I am using ArcGIS Pro. I am a little stuck after using Euclidean distance as I ...
0
votes
0
answers
20
views
How to change the order or sequence of land types in ArcGIS
I am trying to use the raster calculator to compute the landuse land change and to that the raster sequence has the to be the same but what it looks like currently is the following:
These maps are ...
2
votes
1
answer
129
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/...
3
votes
3
answers
1k
views
Create hachures from DEM in ArcGIS 10.1
I have created contour lines from DEM and now I need to create hachures/bergstrich for them. I believe that spatial analyst should solve this, but I'm not used to it and I didn't found any similar ...
1
vote
1
answer
29
views
Raster calculator multiple expressions
i have the following rasters: soilrisk, slope, rainfall
How can I create an expression that meets the following conditions?
(Soil risk = 1 and Slope > 7 and Rainfall < 800) OR
(Soil risk = 1 and ...
0
votes
0
answers
33
views
Why does the Least Cost Intelligence path tool work on another computer but not mine?
For my final project in my GIS class, I am creating a least-cost path pipeline from a start point to an endpoint within a study area boundary (that being a park polygon). This tool takes a total cost ...
0
votes
1
answer
227
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 ...
-4
votes
1
answer
50
views
Extract raster attribute other than value to points in ArcGIS Pro using ArcPy
I have a raster with two attributes, Value and Category. I would like to extract the Category to points. I am using Extract Multi Values to Points, but this always defaults to the Value attribute. Is ...
0
votes
1
answer
161
views
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 error :...
6
votes
4
answers
3k
views
Some zones disappear when running Zonal Statistics as Table in ArcGIS
I'm new to GIS. I want the sum of nighttime lights (DMSP) by district for some country. I'm running this arcpy.gp.ZonalStatisticsAsTable_sa(Limites_distritales, "IDDIST", rc, temp_table, "DATA", "") ...
2
votes
1
answer
541
views
Overlaying Line (Vector) Layer on Raster Zones?
I am using ArcGIS 10
I have a raster layer with 3 values that make up zones. For the purpose of this example, lets say these zones are forest, grass, and open water. My whole raster is made up of ...
1
vote
4
answers
8k
views
R Spatial Kernel Density Estimation
I am new on spatial kernel density estimation with r and need some suggestions. Saying, I like to estimate the density for some event occurring at a location, for example, the probability of ...
2
votes
0
answers
56
views
Iterate over a list of raster with Arcpy and apply Con() to each raster
I would like to iterate a list of raster objects and apply Con() to each raster. The rasters are in a specific order in the list. That's important. All I want to do is to write the value of the ...
0
votes
0
answers
27
views
Fill sink tool is returning an error on ArcMap
I am using ArcMap 10.7.1. I downloaded a DEM from the "30-Meter SRTM Tile Downloader" https://dwtkns.com/srtm30m/, then I extracted by mask the river basin DEM I want to analyze. However, ...
0
votes
1
answer
278
views
Least cost path from multiple sources to multiple destinations across resistance layer
I am using ArcGIS Pro 2.7. I have little experience with ArcPy so using geoprocessing tools would be preferable. I would like to determine the number of boats that could potentially visit coastal ...
1
vote
2
answers
2k
views
TypeError: unsupported operand type(s) for -: 'str' and 'int'
I have 732 temperature rasters (366 min and 366 max temp) that I want to manipulate depending on if the max temperature was greater than a specified and constant crop category temperature.
import ...
1
vote
1
answer
455
views
Multiple buffer ring area analysis using ArcGIS Pro
I have some sites what I've created multi ring buffers for in one shape file, each ring is 50m from the center up to 1000m. The file is one shapefile with many polygons and each ring is the full size (...
0
votes
0
answers
1k
views
Arcpy - Error 010240 - Con statement - can`t save raster dataset with output format GRID
I am trying to set an "output path" in my Arcpy script in order to not have to repeat the path everitime I want to save a dataset after applying a tool.
So I set the output path like:
output_path =...
2
votes
1
answer
390
views
Creating multiple, independent Gaussian plume outlines in ArcGIS
In an effort to create buffers that preferentially capture downwind populations of numerous air pollutant sources, I would like to create Gaussian-like plumes in arcgis (or in another program such as ...
1
vote
0
answers
35
views
Merging or dissolving smaller features completely within in ArcGIS Pro
I've got a shapefile dataset shown below.
I want to merge feature classes completely within larger ones, for example merge 325 with 314, and keep the row data of the larger feature (314).
I've tried ...
1
vote
1
answer
2k
views
Perform Radiometric Correction of Landsat images using ArcGIS Desktop
I need to run NDVI on a study area that is covered by more than one Landsat image.
The NDVI must also be run over numerous years using different Landsat sensors (eg: Landsat 7 Level 1, Landsat 4-5 ...
1
vote
1
answer
749
views
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%","...
1
vote
0
answers
20
views
Creating ArcGIS toolbox that gives minimum number of points that can observe road
I am using ArcGIS Pro.
for value in fcVertexList:
x = arcpy.sa.Viewshed(in_raster=L_34_067_BD_dted2_tif_img, in_observer_features=value)
#Raster Calculator
Visibi_raster = (...
7
votes
2
answers
6k
views
How get intersection of polygons in the same table by PostGIS?
I have a single table of over 1000 polygons in postgreSQL (with PostGIS), and I have a field "evaluation_type" that only receives two values, either 'good'(green) or 'bad'(red), as you can see in the ...
0
votes
0
answers
31
views
Excluding NoData zones in zonal statistics as table in ArcGIS Pro
I'm trying to calculate mean values of a raster within buffer zones. In the zonal statistics as table tool window, I unchecked 'Ignore NoData in Calculations' so that there is no mean calculated for ...
0
votes
0
answers
9
views
NDWI processing error -'background server threw an exception'
I was processing NDWI in ArcGIS 10.5 using Sentinel-2 Image and got the error message
background server threw an exception
How do I solve this?
I used the formula -NDWI (Sentinel 2 MSI): G=B3/ NIR=...
2
votes
1
answer
647
views
Calculating spatial correlation between two datasets using ArcMap and Spatial Analyst
I am using ArcMap and the Spatial Analyst extension.
I am trying to find a correlation between my raster datasets. For example, for Net Primary Production (NPP) model I used too many input datasets ...
1
vote
1
answer
124
views
Extracting data to table for two rasters with identical polygons (different values) using ArcGIS Pro
I have a raster image of watershed catchments where the raster value is the catchment ID. Using this raster and the "Zonal Statistics", I created a separate raster of land use where the ...
2
votes
3
answers
898
views
Accessing individual raster bands using arcpy Raster class?
I am working with rasters in arcpy and I am not able to access individual bands using the Raster class. The same code that worked about a year ago no longer works.
I should be able to access a ...
1
vote
1
answer
275
views
Aggregating pixels of raster dataset using ArcMap
*I am fairly new to working with raster data in ArcMap. *
I have a raster dataset like in the picture I have uploaded, and you can assume that each individual pixel of the raster has a value which is ...
1
vote
1
answer
306
views
Calculating zonal statistics as table for all attributes (columns) in raster using ArcGIS Desktop
I have a raster that has multiple columns in the attribute table that I can symbolize. I would like to calculate zonal statistics as a table for each of the columns in the raster attribute table ...
1
vote
2
answers
544
views
ArcGIS Spatial Analyst in arcpy - FATAL ERROR (INFDEF) DIRECTORY FULL [closed]
I have been running into this error in several geoprocessing scripts I've written lately. When I call a spatial analyst function I return this error:
FATAL ERROR (INFDEF)
DIRECTORY FULL
The exact ...
1
vote
1
answer
293
views
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 ...
1
vote
0
answers
35
views
Zonal Statistics loop using ArcPy
I am trying to loop the arcpy.sa.ZonalStatistics to calculate the mean of multiple raster files. When I'm trying the code for single file it's working perfectly fine. But when I try to loop it. ArcPy ...
0
votes
2
answers
214
views
Cost distance tool to figure out shortest distance over water between 2 points
I have multiple points in a bay and I need to figure out the distance of each point to the nearest inlet, without going over land. I have been told to use the Cost Path or the Cost Distance tool but ...
0
votes
0
answers
33
views
ArcGIS Pro RasterCalculator python code is very confusing and I have no reference because history "copy as python command" paste just does not work
The code that "copy as python command" copies:
output_raster = arcpy.ia.RasterCalculator('Con(IsNull("OMUVBd_003_UVindex_Layer1"), FocalStatistics("OMUVBd_003_UVindex_Layer1&...