Skip to main content
Solved

Raster Sampler to band values

  • November 29, 2021
  • 2 replies
  • 18 views

deanhowell
Influencer
Forum|alt.badge.img+24

Is it possible to resample a raster so the values left are one of the existing band values?

 

If I use the raster re-sampler with the average 16 interpolation type, I get an average of the 16 cells but what I need is the value that occurs the most in these 16 cells.

Best answer by bartjannink

With the RasterConvolver you can get the value that occurs most with the setting Operation: Majority. It doesn't change the raster size so you still need to use to RasterResampler on the output of the RasterConvolver.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img
  • 11 replies
  • Best Answer
  • November 29, 2021

With the RasterConvolver you can get the value that occurs most with the setting Operation: Majority. It doesn't change the raster size so you still need to use to RasterResampler on the output of the RasterConvolver.


deanhowell
Influencer
Forum|alt.badge.img+24
  • Author
  • Influencer
  • 315 replies
  • November 30, 2021

Thanks @bartjannink​ that is exactly what I need.