0

I have a raster.

I have a point layer.

The point layer is a line of points and where the two overlap, there are multiple points overlapping each pixe.

I want the mean and standard deviation of the points for each corresponding pixel. I.e. I want to know the pixel value, mean point value and standard deviation point value at each pixel location.

I cannot find a tool to do this? I suppose it is like 'join attributes by location (summary)' where joining to pixels rather than polygons.

3
  • 1
    Try the point sampling tool plugin Jun 29, 2023 at 20:46
  • I dont understand what your point layer is. If there are multiple points in the same pixel you will get the same statistics for all the points inside it. You want the stats for each "line of points"? Can you add a screenshot showing your data?
    – BERA
    Jun 30, 2023 at 8:44
  • I want the stats for the points within a pixel - there are multiple points within a pixel with different values, I want a mean and SD value for each pixel from the points.
    – Beardsley
    Jun 30, 2023 at 17:00

1 Answer 1

1

I propose a 2 steps methods that can answer your question with Qgis :

  1. You go in Qgis toolbox and use "Raster Sampling point tools" with your raster and your point layer.

This will make a new point layer with the value of the raster on each point.

  1. Then you use agregate function with some SQL queries to look for any combination of stats you would like to have (AVG, group by ) from this new layer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.