Geomagnetic spherical harmonic analysis