## Spherical harmonic I/O

Function name | Description |
---|---|

shread | Read spherical harmonic coefficients from a text file. |

SHRead2 | Read spherical harmonic coefficients from a CHAMP or GRACE-like ascii-formatted file. |

SHRead2Error | Read spherical harmonic coefficients and associated errors from a CHAMP or GRACE-like ascii-formatted file. |

SHReadJPL | Read spherical harmonic coefficients from a JPL ascii-formatted file. |

SHReadJPLError | Read spherical harmonic coefficients and associated errors from a JPL ascii-formatted file. |

read_icgem_gfc | Read spherical harmonic coefficients from an ICGEM GFC ascii-formatted file. |

## Spherical harmonic storage

Function 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 1-dimensional ordered vector of spherical harmonic coefficients corresponding to i, l, and m. |

## Spherical harmonic conversions

Function name | Description |
---|---|

convert | Convert an array of spherical harmonic coefficients to a different normalization convention. |

SHrtoc | Convert real spherical harmonics to complex form. |

SHctor | Convert complex spherical harmonics to real form. |