Since 2021.02 a new transformation has been added which finds peaks based on their topographic prominence
There is an option to specify <minimumPeakValueFunction>@minPeak@</minimumPeakValueFunction> so peaks with a too low height are taken out.
There is also an option to specify <minimumProminenceFunction>@minimumProminence@</minimumProminenceFunction> which ignores peaks that have a too low prominence.
The minimum prominence is a good way to take out local maxima which are not really peaks, prominence can be summarized as "how far is it needed to descend in order to reach a higher peak"
<transformation id="topographic prominence peaks"> <selection> <topographicProminencePeaks> <inputVariable> <variableId>input</variableId> </inputVariable> <minimumPeakValueFunction>@minPeakProminence@</minimumPeakValueFunction> <minimumProminenceFunction>@minimumProminence@</minimumProminenceFunction> <outputVariable> <variableId>output</variableId> </outputVariable> </topographicProminencePeaks> </selection> </transformation>