Several scripts to calculate correlation function, fit correlation function, write out field to poloidal plan