getTraceMax function

Get the annual maximum for each trace