Skip to main content

Questions tagged [average]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
65 views

How to merge sample points that are within a certain distance of each other and calculate mean attributes values for merged points in QGIS?

I have a data set like the following in .csv: sample latitude longitude variable1 variable2 variable3 A 37.18 -115.85 1 0 0 B 37.18 -115.85 1 0 0 C 37.18 -115.85 1 0 0 D 39.44 -117.66 0 1 0 E 39....
goshawk's user avatar
  • 53
0 votes
0 answers
20 views

Overlapped point data

I have recently used QGIS and tried some mapping functions based on my data but I have faced an issue with creating meshes. My data is route-based with overlapping points and I want to visualize them ...
Lova's user avatar
  • 51
3 votes
1 answer
126 views

How to obtain the closest mean distance between two pseudoparallel lines

From two layers (LINE_1 and LINE_2) with a irregular pseudoparallel lines geometry, my goal is to obtain the closest mean distance between two pseudoparallel lines. Here I publish a screenshot with ...
Ingrid Ingravida's user avatar
2 votes
2 answers
119 views

Calculating the average of one field dependent on another in QGIS

I have a land use shapefile, which has a column: labelled "LU_1", categorising different areas quite broadly (9 categories total, they are numbered 1-7, U and V). There's also a field with ...
OFLO's user avatar
  • 21
0 votes
1 answer
996 views

How to calculate mean values of all cells of raster files in R?

I have monthly raster (.tiff) files such as 200501.tif, 200502.tif and so on...till 202012.tif. I want to calculate mean values of each raster (i.e. of all the cells (all rows and columns) of each ...
Alexia k Boston's user avatar
3 votes
0 answers
83 views

How to create an average polygon from multiple one

I have in a layer multiple polygons representing for 1 point the potential driving distance in 1 hour like this: For each white cross I have 4 different polygons (based on different driving date/time)...
stéphane Briand's user avatar
1 vote
1 answer
125 views

Add attribute to polygon layer that is average of polylines that lie within border qgis

I Have two layers, one is a polygon and the other is a polyline. I would like the solution to be using QGIS. I want to create a new attribute in the polygon layer that take the average of the ...
vermicellion's user avatar
1 vote
0 answers
80 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 ...
Ellen Wu's user avatar
0 votes
0 answers
37 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 ...
MicO's user avatar
  • 21
1 vote
2 answers
666 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 ...
wbmason88's user avatar
0 votes
2 answers
206 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 ...
Perla Rivadeneyra's user avatar
3 votes
0 answers
173 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 ...
Sam's user avatar
  • 31
0 votes
2 answers
193 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 ...
MacBrown's user avatar
0 votes
0 answers
48 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 ...
LostinSpatialAnalysis's user avatar
4 votes
1 answer
229 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 ...
Anas's user avatar
  • 41
4 votes
2 answers
962 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 ...
qsfzy's user avatar
  • 152
3 votes
1 answer
1k 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. (...
theforestecologist's user avatar
1 vote
1 answer
210 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 ...
Kyle's user avatar
  • 11
0 votes
0 answers
80 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 ...
anna's user avatar
  • 21
2 votes
0 answers
95 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 ...
LostinSpatialAnalysis's user avatar
2 votes
1 answer
209 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 ...
Pablo Navarro's user avatar
2 votes
2 answers
509 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 ...
pazelvak's user avatar
  • 415
7 votes
1 answer
1k 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 ...
Luonnontieteilija's user avatar
0 votes
1 answer
315 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 ...
Mikhail Svideniuk's user avatar
1 vote
1 answer
119 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, ...
Ewan Kimsey's user avatar
4 votes
1 answer
588 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 ...
Joanne Bentley's user avatar
0 votes
1 answer
395 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 ...
RJ_mapper's user avatar
2 votes
1 answer
533 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 ...
CGS's user avatar
  • 23
0 votes
1 answer
543 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 ...
Teya Hutchison's user avatar
1 vote
1 answer
144 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 ...
Brent's user avatar
  • 11
1 vote
1 answer
4k 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 ...
Chiara Piro's user avatar
1 vote
1 answer
428 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 ...
duff18's user avatar
  • 111
1 vote
1 answer
1k 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.
Nikko's user avatar
  • 611
1 vote
0 answers
156 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 ...
Manuel Popp's user avatar
1 vote
0 answers
818 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 (...
JMenezes's user avatar
  • 113
0 votes
1 answer
2k 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")] ...
Bhagya's user avatar
  • 17
5 votes
2 answers
2k 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 ...
ar-siddiqui's user avatar
  • 1,768
0 votes
0 answers
44 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. ...
HelloWorld's user avatar
3 votes
1 answer
203 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 ...
ray's user avatar
  • 31
6 votes
2 answers
4k 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 ...
Filippo's user avatar
  • 61
2 votes
1 answer
1k 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 ...
Giacomo  Ponticelli's user avatar
1 vote
0 answers
96 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?
jwxgirl's user avatar
  • 11
1 vote
1 answer
180 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 ...
Paris's user avatar
  • 591
3 votes
1 answer
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,...
Picko90's user avatar
  • 31
1 vote
2 answers
148 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 ...
Sven Christens's user avatar
1 vote
1 answer
89 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 ...
Sven Christens's user avatar
2 votes
1 answer
253 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 ...
Jakolien van der Meer's user avatar
1 vote
1 answer
457 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 ...
Hayato's user avatar
  • 11
0 votes
0 answers
73 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 ...
jrowley's user avatar
  • 257
4 votes
1 answer
859 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" ...
Rob Marty's user avatar
  • 369