Skip to main content
Question

Minimum value per pixel in a multiband raster


wolters
Contributor
Forum|alt.badge.img+6

Is it possible to get the minimum pixel value, per pixel, in a multiband raster? Rasterstatisticscalculator seem to only do single bands. But what I want is to find the minimum value of a pixel in a raster of 20+ bands. 

 

Thank you

4 replies

AliAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • June 6, 2024

Hi @wolters,

Thank you for posting. Yep, it is possible! All you need to do is connect your raster to the RasterCellCoercer and then the ListRangeExtractor transformers. They should work with the default parameters to get the minimum pixel value, per pixel. Let me know if this helps and you need any further assistance.


wolters
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • June 6, 2024

Hi @AliAtSafe , thank you for your reply

am I correct in understanding that the RasterCellCoercer translates each pixel into its own feature? I was thinking more about the result being a singleband raster that is the minimum value of each pixel. 

 

RasterCellCoercer does not really function well if you have many pixels to deal with (100M+). Or am I missing something?

 

Thank you!


AliAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • June 7, 2024

Hi, @wolters,

I appreciate your patience. Yes, you are correct. I'm sorry for the misunderstanding earlier; thanks for clarifying. It would indeed be an inefficient process.

When recreating the raster, is your goal to have, for example, a grid with the exact dimensions of the original raster but with the minimum value in every cell; or something along those lines?

Thank you!


virtualcitymatt
Celebrity
Forum|alt.badge.img+34

You could probably use a combination of RasterBandSeparator followed by a RasterMosaiker set to pick the min value. This should give you a Raster which only has the min value of all the bands. I've not tested the workflow so I can't confirm if this actually works in practice. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings