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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Focal Statistics (Spatial Analyst), calculates for each input cell location a statistic of the values within a specified neighbourhood around it.

3
votes
2answers
46 views

Why different results of mean calculations with focal in R and Esri ArcGis

I want to calculate the ratio of two different classes in a raster with a circular moving window. My classes are 0 and 1 (I do not want to include the NAs). The radius should be 5 meter. I thought my ...
0
votes
1answer
29 views

Running a function on subset of a raster image instead of whole image in R

I have a wide swath raster image. I want to detect cloudy pixels based on criteria such that a pixel in raster layer only consider its 25*25 neighborhood not the entire image. My problem is here that ...
0
votes
1answer
50 views

How to use sum of circular moving window for each center cell with focal in R

I want to calculate the sum of a moving window circle in R for each center cell. Is there a way to do this in R with focal or focalWeights on my raster (preferrably with map units)? Focal does not ...
-1
votes
1answer
61 views

Determining focal statistics in QGIS?

I'm curious to know what is the counterpart for ArcGIS focal statistics tool in QGIS?
0
votes
0answers
43 views

edge effects of vector ruggedness measure (VRM) in saga gis

I'm using the VRM algorithm in SAGA GIS (through the commandline and through the QGIS processing toolbox- same results). Can someone explain to me how it deals with edge effects? When I compute TPI ...
3
votes
1answer
48 views

Interpolate for no data areas in a raster

I have a raster of the average chlorophyll-a concentration for 1 year (NASA MODIS LEVEL2 1km res). However i am still missing values for the pixels near the coastal zone (really important for our ...
1
vote
1answer
72 views

Condition and focal statisitics on multiple rasters

I'm trying to write a code in Python for several rasters, however I'm wondering if there is a faster way to do this. I'm generating several rasters from a conditional statement for each value in the ...
0
votes
0answers
144 views

Focal statistics in QGIS? [duplicate]

I would like to know if there is in QGIS a tool who is able to do the same treatment than the arcgis tool "focal statistic" (statistique focale in french)? I need to calculate value of pixels based ...
1
vote
1answer
59 views

Focal statistics on a mosaic dataset in ArcMap?

I frequently generate contours from lidar-derived elevation image tiles. My workflow is: Load the elevation image tiles into a mosaic dataset in a GDB Run focal statistics on on the mosaic dataset ...
-2
votes
1answer
69 views

Using a DEM to identify areas that are below the surrounding ground by a given value?

In ArcGIS 10.1 (advanced license) I have a bare-earth DEM (5m cell size) and I would like to identify depressions which at least, say, 4 meters below the surrounding ground. What I have tried is to ...
1
vote
0answers
33 views

Saving focal statistics in memory using ArcPy?

I'm currently working on a project where I have written a script that is suppose to do several things. one of these is creating a "quick" focal statistics, from which I extract the values to some ...
0
votes
0answers
55 views

Select which cells in Focal Statistics

I have a big raster file which shows settlement footprints (values are only 0s and 1s) of a region and a district-level shapefile showing the district zones. I need to calculate the settlement ...
2
votes
2answers
105 views

Calculating mean difference using ArcGIS focal statistics?

For each pixel of my raster, I would like to calculate the mean difference with the neighbour pixels on a given radius. The tool "focal statistic" looks like exactly what I need, however, there is ...
1
vote
0answers
37 views

Focal statistics using geodesic distance in ArcGIS Desktop?

I need to compute focal statistics (sum, mean etc.) for raster data spanning the whole globe. I want to use a constant radius e.g. 100km around each cell. However the data are geographic (WGS84), so ...
0
votes
0answers
31 views

How to locate the highest and lowest pixels within a defined neighborhood area of a central pixel

I am using the 'range' statistics type within the 'focal statistics' tool on a DEM raster. For each central pixel ArcGIS calculates the difference between the highest and lowest values in the defined ...
1
vote
2answers
646 views

Calculate Proportion of Land Cover Classes with a moving window around a point in R

I am currently using a raster that is a land cover class raster (with 50 different land cover classes at a resolution of 30m). I would like to obtain 50 different rasters (essentially predictors for a ...
3
votes
2answers
220 views

Count the number of raster cells of each land use type in neighborhood

I have a raster about different land use types(5 types),each raster cell has a categorical value(1-5). ArcGIS Focal Statistics can calculate mean, range, and even variety of each processing cell, but ...
0
votes
0answers
143 views

Selecting contiguous area with raster in ArcMap?

In ArcMap 10.4, I have created a slope raster from a DEM and am trying to select only contiguous areas of slope less than 10 degrees. I have used the raster calculator to select that subset of slopes (...
1
vote
0answers
77 views

Change map unit for focal statistics

I have around 1000 GPS Points and want to calculate the average value of Night lights, within a 10 km radius in ArcGis. My first approach was to do this with buffers, but a lot of polygons overlap and ...
1
vote
0answers
85 views

ArcGIS Focal Statistics Circular Radius Bug Work-Around

I am attempting to run focal statistics on a Raster with a circular neighborhood of 3 cells (600m radius), using the statistics type "maximum". Focal statistics calculates a seemingly nonsensical ...
1
vote
1answer
53 views

Combining between CON and Focal function in ArcGIS raster calculator?

How do you write this code in the raster calculator for ArcGIS 10.2? CON(FOCALMIN([Burning], WEDGE, 4, 285, 345 ) == -1 , -1, [Burning])
1
vote
1answer
27 views

Preserving uniqueness for overlapping points when converting from points to raster?

I'm trying to optimize outflow points based on lowest elevation within some tolerance. Using the SnapPourPoint function which does exactly this, but outputs a raster file. I've been converting this ...
3
votes
1answer
190 views

Zonal Statistics vs. Focal Statistics for GPS points

I have 200 gps points. I want to calculate total population living within a 5 km radius of the GPS point. I have a input raster for population. What is the most efficient way to make these ...
1
vote
1answer
31 views

Performing calculation in neighborhood 3x3?

I'm looking for the way to perform some calculation with each cell in neighborhood 3x3 and assign value to center cell. For example I'd like to sum z1 with z5, z2 with z5 etc. and then assign average ...
1
vote
1answer
140 views

Focal Statistics produces corrupted/ partial Output ArcMap 10.4.1

I recently encountered an issue with ArcMap that I am not able to solve by a workaround: I have a grid file covering the EU plus a couple of other countries inside a *.gdp (cell size 1000 x 1000 m). ...
3
votes
0answers
65 views

Examining each connected pixel to select its neighbors to separate clusters using ArcGIS for Desktop? [duplicate]

I am trying to develop a methodology for separating pixels from one another to determine whether they belong to a city cluster or not. Starting at the center pixel of the city I want to select all ...
1
vote
1answer
98 views

Why is Majority so much slower than mean in Focal statistics?

I am trying to use this solution to clean up small holes in my rasters. It uses focal statistics on the no data cells to replace them with a local average. The raster have a small number of unique ...
1
vote
0answers
150 views

Performing neighborhood analysis?

I have a point map of trees along with their size (diameter) as an attribute and I want to create a raster that with the output of a neighborhood analysis . Basically for every point in a raster of ...
1
vote
2answers
385 views

Extract raster values around point features with kernel

I have a point layer of known landslide locations, and a raster layer (30m) of vegetation cover (categorical). My goal is to extract the prevailing raster value around the point locations. Almost all ...
1
vote
2answers
122 views

ArcGIS Focal Statistics Returns Out-of-Bounds Result

I am trying to compute a moving window maximum on a raster, such that the output is the max within a 5 mile radius. This should result in an output grid where the maximum is equal to the maximum of ...
2
votes
2answers
292 views

Filling up river corridors in a DEM

I'm currently working with a DEM (10 m x 10 m resolution) that has a lot of faulty elevation values in river corridors. In order to run a hydrodynamic model I'm trying to get the following done in an ...
1
vote
0answers
109 views

Translate ArcPy to QGIS for focal sum statistics [closed]

Sometime ago, I asked a question (Arcpy to append results of pivot table) with the result being python 2.7 script that works in ArcGIS 10.3. It is fairly simple - it iterates over all the points in a ...
2
votes
1answer
185 views

Calculate focal range on XYZ DEM in QGIS or Spatialite

I have a XYZ DEM of a fairly mountainous terrain and would like to identify flat areas using QGIS. How can calculate focal range in QGIS? Or would there be a way to do this in Spatialite? Ideally, ...
1
vote
0answers
150 views

How can I replicate focalmean with focal statistics

I am trying to get rid of some small gaps of no data in my rasters. I would previously have used focalmean but it is no longer available. I've tried what I expected to work but I'm getting errors. ...
9
votes
1answer
775 views

Any rules of thumb for neighborhood settings in Focal Statistics?

In ArcGIS 10, users can define the neighborhood in the Focal statistics tool. The moving window shape can be set to any of the following: Wedge, annulus, circle, rectangle, irregular, and weight. ...