Spherical harmonic I/O

Routine name Description
SHRead2 Read spherical harmonic coefficients from a CHAMP or GRACE-like ASCII file.

Spherical harmonic storage

Routine name Description
SHCilmToCindex Convert a three-dimensional array of complex spherical harmonic coefficients to a two-dimensional indexed array.
SHCindexToCilm Convert a two-dimensional indexed array of complex spherical harmonic coefficients to a three-dimensional array.
SHCilmToVector Convert a 3-dimensional array of real spherical harmonic coefficients to a 1-dimensional ordered array.
SHVectorToCilm Convert a 1-dimensional indexed vector of real spherical harmonic coefficients to a 3-dimensional array.
YilmIndexVector Determine the index of a 1D ordered vector of spherical harmonic coefficients corresponding to i, l, and m.

Spherical harmonic conversions

Routine name Description
SHrtoc Convert real spherical harmonics to complex form.
SHctor Convert complex spherical harmonics to real form.