shtools
« Back to VersTracker
Description:
Spherical Harmonic Tools
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Other
Tags: spherical-harmonics geophysics fortran science astronomy
Install: brew install shtools
About:
SHTOOLS (Spherical Harmonic Tools) is a Fortran 95 library designed for working with spherical harmonics. It provides a comprehensive suite of functions for spherical harmonic transforms, spectral analysis, and gravity/magnetic field modeling. Its main value is offering a robust, open-source solution for geophysics and planetary science calculations.
Key Features:
  • Spherical harmonic transforms and inverses
  • Support for multiple spherical harmonic bases (geodesy, Fourier, Schmidt)
  • Tools for gravity and magnetic field modeling
  • Interface for Python, Matlab, and Julia
  • Fortran 95 library with C wrapper
Use Cases:
  • Modeling planetary gravity and magnetic fields
  • Topographic analysis of celestial bodies
  • Geodesy and geophysics research
  • Spectral analysis of global datasets
Alternatives:
  • pyshtools – Python wrapper for SHTOOLS; the Homebrew formula installs the core Fortran library.
  • libpsht – An older library optimized for CMB analysis, focusing on performance for specific spherical harmonic transforms.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 10:05am 0 VERSION_BUMP ba0d312f
Sep 14, 2024 6:30pm 0 VERSION_BUMP d9e0816f