script for frequency mapping a set of loop orbits in a potential