added radial averager from minitti code