added interp_polar function