# Questions tagged [average]

The tag has no usage guidance.

48 questions
Filter by
Sorted by
Tagged with
1 vote
28 views

### Find the average of pairs with the same first element in FME

I have a list of pairs in FME: and need to calculate the average of each set of pairs with the same first element. I came up with this code, but it takes a lot of time to paste and copy the list. Is ...
• 11
25 views

### Plotting a yearly average density map in ArcMap 10.8

I have one million rows of lightning data that covers 5 years (2017-2021), and the data includes latitude, longitude, and current. I used the latitude and longitude to create yearly maps in ArcMap ...
• 21
1 vote
81 views

### Calculate sum/average of variable within each group of neighboring counties using R

I am trying to calculate the sum and/or average value of a variable for each group of neighboring counties in the US. I realized this needs at least two steps: For every county, find the set of ...
68 views

### Calculating number of days where a condition is met over multiple regions in Google Earth Engine

I have been trying to calculate the number of days where the wind speed average per day exceeded 25 m/s for all municipalities in Colombia during the year 2015. My goal is to know how many days ...
47 views

### Determine average noise in a shapefile using QGIS

I am completely new to QGIS. I am currently undertaking an analysis on urban green spaces (UGSs) in the city of Luxembourg. I have noise data (expressed in Lden (dB)) on car, rail and air traffic ...
• 31
43 views

### Taking average of long term daily rainfall values if it contains lots of zero values

I wanted to interpolate my daily rainfall data into ArcGIS for visual representation. I have almost 10 years of daily rainfall data which contains lots of zeros. When I take the average daily for ...
26 views

### Averaging raster layers in QGIS, values changed, but image looks the same?

I am trying to average two raster layers together, but am getting results that are really confusing me, which is making me even question if an average is actually what I want to do to begin with. I ...
70 views

### Calculating distance-weighted average of many rasters?

I have multiple raster layers representing "cooling influence" being emitted from multiple urban green spaces in all directions (or we could say pollution emitted from factories, the ...
72 views

### Rasterize points QGIS average

When I convert points into raster using rasterize (vector to raster) tool, if there are two points in one pixel the pixel takes the bigger one. But I need the pixel to take the average of the values ...
• 41
119 views

### Sampling raster values into attribute table of polyline layer

I have several raster layers and one vector polyline layer. I'd like to sample the rasters into the attribute table of the vector layer. Because the lines span multiple raster cells, this can be done ...
• 152
224 views

### Combine nearby points into single point with average location in ArcGIS Pro

I've added GPS waypoints to my ArcGIS Pro map using the GPX to Feature conversion. However, some points are clearly "duplicates" of the same location because they are so close together. (...
1 vote
71 views

### Calculate Average Vector Value Based on Points in Polygon

I initially had two layers that I "joined attributes by location." Now I have one layer. In this layer I have several points with values from 1 - 10 and several polygons that are census ...
• 11
50 views

### Average of elevation values not for the entire raster but for created tiles in the raster

I have a raster representing the elevation of an entire city (1-meter resolution LiDAR DSM) and I would like to calculate the average height of the features in the city for 200mx200m squares. I am ...
• 21
60 views

### Taking weighted average over overlapping polygons in QGIS

I am trying to find source emissions values for a roads lines layer based on emissions rates tied to polygons. Here is an illustrative depiction of the two layers I am working with: Each polygon has ...
84 views

### Trying to delineate areas (riparian zones) from a DEM, with same height difference to a polyline (reach)

I'm trying to delineate riparian zones. The idea is to define a mean depth of the drainage net (constant), and then, draw a buffer around the reaches that will include all the terrain within this ...
86 views

### Calculating average of columns of singleparts in QGIS

I have singleparts (pipes) with name and depth. I need to count the average depth based on name. So for e.g. pipe 'cont500str1' has average depth (2,93+2,03+1,99+1,17+2,12)/5 = 2,048. The complication ...
• 415
419 views

### Getting values from adjacent polygons or nearest point

I have joined temperature values from the point layer to intersecting polygons but I have few polygons (yellow in the image) that don't contain any point data. Can I somehow get average temperature ...
132 views

### How to average data from Sentinel-5p collection ignoring zero?

I am working with CH4 product Sentinel-5p provided by ESA Copernicus. Remote User Support provided a script to extract averaged CH4 anomalies for a certain period for the Earth Engine. However, I ...
1 vote
68 views

### Calculating average depth of a 250m square using points at 125m spacing using QGIS

I have a set of points spaced at 125m intervals across an area, an average depth value is assigned to each point. I need to calculate from these points a single average depth value for a 250m square, ...
238 views

### Error in r: "mean" is not a valid subset when averaging over years in a raster

I am using a moving window average to estimate change between historical climate (here, a 36-year average for a period) and the moving window averages of climate into the future. Each moving window ...
1 vote
173 views

### GDAL - average and mode resampling

I could not understand the source code of GDAL. The task is to understand and implement the above resampling algorithms for images. What is the main idea of ​​average resampling in GDAL? Official ...
173 views

### Aggregate data from several polygons into one in QGIS [duplicate]

I am using QGIS 3.10.1, and I am trying to aggregate Census data (polygons) according to another set of polygons (neighbourhood areas that I have drawn). While I am able to clip the Census data to ...
224 views

### Tabulating average value through spatial join in QGIS

Previous ArcGIS user and have now switched over to QGIS for a project. I am performing a spatial join of two shapefiles - one of census tracts and the other of zctas. In ArcGIS you can set the merge ...
• 23
249 views

### Calculating monthly averages from daily precipitation data

I have a raster brick for daily precipitation data and I need to convert it to monthly data, how would I go about doing this? Each layer is a day and there are 34698 days (i.e. too many to go through ...
1 vote
73 views

### Creating composite raster from rasters with different spatial extent without losing information using ArcGIS Pro

I am creating a composite raster using several individual rasters with different spatial extents (captured from different times), see image below. The idea here is that I want to create one mosaic ...
• 11
1 vote
2k views

### How to calculate mean for multiple raster files and multiple variables using R

I have a folder with multiple raster files (.asc) which contains the biomass of different fish species (e.g., Anglerfish, Bathydemersal etc) for different years (e.g., 00012, 00024, 00036 etc) I want ...
1 vote
142 views

### Binning of satellite Level 2 data

I can see that for the Aqua instruments (AIRS, MODIS, CERES etc), the Level 2 data are binned into Level 3 data providing average values for (say) a 1° x 1° cells grid. Let's say that I would like to ...
• 111
1 vote
197 views

### Calculating average of values in raster in QGIS?

I want to get the average of values in a raster. How do I get this using Raster Calculator? I was looking for this kind of function: AVE("yourraster@1") in the raster calculator.
• 430
1 vote
88 views

### Fit a line to 3 spatial points

I have a set of lon/ lat coordinates that locates lines. Each line is characterized by 3 points, the start, center and end which were measured using a handheld GPS. Since the individual coordinates ...
• 271
425 views

### Calculate moving average (low pass filter) using fft in GRASS

I am interested in calculating a moving average for a raster in GRASS/QGIS. In other words, each cell needs to receive as value the average of its current value and the neighboring cells in a square (...
• 101
1k views

### Calculating daily average using hourly data in Google Earth Engine

I want to get daily data such as net radiation, sensible heat flux and latent heat flux. NOAA NWS National Centers for Environmental Prediction (NCEP)[ee.ImageCollection("NOAA/CFSV2/FOR6H")] ...
• 17
1k views

### Tool in QGIS to Get Area Weighted Average

I am looking for a tool that can give me an area-weighted average. I have a shapefile of parcels and another shapefile with Curve Numbers. I want to get Area Weighted CN for each parcel. If I do it ...
• 1,424
34 views

### GRASS r.statistics method=average for non-integer maps

I need use the functionality of r.statistics using the average method. I have one map with cell clumps for a base layer and another containing various non-integer cell values for a cover layer. ...
• 147
109 views

### Finding average distance to nearest point

I would like to find out the average distance from high schools (represented as a point in QGIS) to libraries (represented as another point in QGIS) in New York's 32 districts. I have already ...
• 31
3k views

### Calculate multiple bands average raster in QGIS with high number of bands

I am a new user of raster layers in QGIS. I need to generate a new raster file with the average value for each pixel, from a raster file with 600 bands. The average has to be calculated from all the ...
• 51
791 views

### QGIS: Creating average of a precipitation multiple raster set?

I have a set of 12 precipitation raster layers downloaded from WorldClim, each one representing monthly precipitation data on a global scale. I've clipped all 12 layers with the area of interest. How ...
1 vote
70 views

### Band rerendering netcdf file by variable not time. Using gdal, nco, cdo

I want to average netcdf data (band1: precipitation) in bins (i.e. 0.01,0.10,0.25,0.5,0.75,1.0, etc.). What nco, gdal, or nco tools can I use to regrid the netcdf file this way?
• 11
1 vote
108 views

### Average of specific pixels

I have a raster of estimated soil moisture values and 30 points of field measurements. I wanted to correlate the measured and estimated values using scatterplot but the result in not good. There ...
• 463
1k views

### Weighted mean of raster by polygons in R?

I have two rasters, raster_a and raster_b, and a shapefile, world_shapefile. Both rasters are of the world extent and overlay each other. What I want to do is to create a weighted average of raster_a,...
• 21
1 vote
111 views

### Missing values when calculating mean

I have uploaded a table containing information on river basins within countries (https://code.earthengine.google.com/?asset=users/basins/TFDD_BCU). I want to calculate the mean population density in ...
1 vote
80 views

### Mean values from a table in Earth Engine

I have uploaded a table containing information on river basins within countries (https://code.earthengine.google.com/?asset=users/basins/TFDD_BCU). I want to calculate the mean population density in ...
160 views

### Computing the harmonic mean of an image collection in the Google Earth Engine

How can I compute the harmonic instead of arithmetic mean for a series of images in Google Earth Engine? There is a build-in function to compute the arithmetic mean and median, but there is no ...
1 vote
300 views

### Calculating meshes average within boundary?

I have mesh data of elevations. Each mesh has a value of elevation (e.g. 87, 60, 33, ...). And I also have data of administrative boundaries. I want to calculate the average of each administrative ...
• 11
57 views

### Polygon interpolation neighbour average?

I am trying to estimate empty values based on a polygon layer we received from another study. Is there a way to calculate an average value for polygon A based on neighbours B,C, etc that border it? I ...
• 257
529 views

### Weighted Average of Band Based on another Band in Image Collection [Google Earth Engine]

Using monthly VIIRS data, I'm trying to estimate a weighted average of radiance where I want to weight by the number of cloud free days. Each image in the image collection has two bands: "avg_rad" ...
• 367
1 vote
788 views

### GEE: apply ee.Reducer.mean to a list

After classification of an image in GEE, I got 2 lists of user's and producer's accuracies (1*7 and 7*1 dimensions). How can I calculate an average value for each of them now? print('Validation ...
• 13
308 views

### How to smooth a classified raster layer in QGIS?

In QGIS 3.0.2, I want to smooth a reclassified raster layer by r.neighbor tool. In this process I use average operation. The raster layer created from this tool is empty. I tested this process with ...
• 1,004