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 [focal-statistics]

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

0
votes
0answers
3 views

Focal / Moving Window statistics - open source

I am currently running a process that involves the creation of many "Focal Statistics" rasters in ArcGIS. These rasters use varying-radius circular search areas and calculate three different ...
0
votes
0answers
31 views

Expanding raster to fill bounding polygon using ArcGIS Desktop?

I work for an agronomy company that utilizes an EC scanner (electric conductivity) to gather point data within fields. Due to terrain constraints there are often out edges of the fields where no data ...
3
votes
2answers
66 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
53 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
75 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
90 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
45 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
53 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
78 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
189 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
68 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
71 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
34 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 ...
2
votes
2answers
119 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
38 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
717 views

Calculating Proportion of Land Cover Classes with moving window around 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
268 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
173 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
82 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
105 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
56 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
208 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
33 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
147 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
104 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
153 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
398 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
124 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
306 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
117 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
157 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
794 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. ...