Skip to main content

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

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.


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!


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!


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