Ok, thank you it works with an array!
But there's still the problem to find the highest magnitude points in certain ranges...
Does anybody knows how to get on this?
Walk thru the range (array), marking (assigning) each element to highest ($high) unless the element is less than $high. Then print/save/whatever $high.