 The most common way of analyzing the global variations in the Earth's magnetic field is to fit the measurements to a set of spherical harmonics.This was first done by Carl Friedrich Gauss.Spherical harmonics are functions that oscillate over the surface of a sphere.