adding option for spherical coordinates or not for dispersion calculation