Spherical harmonic analysis and synthesis tools for geophysical data
Spherical Harmonic Tools
shtoolsMakeMagneticGravityGridsSHExpandDHSHExpandLSQ$ SHExpandDH inputgrid.dat -n maxdegree -o coefficients.txt$ MakeMagneticGravityGrids coefficients.txt outputgrid.dat -n maxdegree$ SHExpandLSQ data.txt -n maxdegree -w weights.txt -o coeff.txt