shtools for Mac
Spherical Harmonic Tools
shtools — overview
SHTOOLS/pyshtools is a Fortran-95/Python library that can be used for spherical harmonic transforms, multitaper spectral analyses, expansions of gridded data into Slepian basis functions, standard operations on global gravitational and magnetic field data.
FEATURES HOW TO USE INSTALLATION pyshtools (for Python) Install using conda Install using pip For Developers SHTOOLS (for Fortran 95) Install using the brew package manager (MacOS, Linux, Windows) Install using the macports package manager (MacOS) Install from source CONTRIBUTING MAINTAINERS AND CONTRIBUTORS LICENSE REFERENCES
FEATURES
Supports all standard normalizations and phase conventions of the spherical harmonic functions.
Effortless conversion between real and complex harmonics, and between different normalization and phase conventions.
Use of both regularly sampled geographic grids and grids appropriate for Gauss-Legendre quadrature.
Spherical harmonic transforms proven to be accurate up to about degree 2800 for the native Fortran 95 backend and beyond using the DUCC0 backend.
Perform localized multitaper spectral analyses, or expand gridded data in terms of localized Slepian basis functions.
Support for standard data and file formats, including xarray and netcdf.
Import research-grade gravity, topography, and magnetic field datasets with a single command.
Creation of publication quality maps using Cartopy and PyGMT.
Support multithreaded programming using the OpenMP API.
HOW TO USE
A variety of Python tutorials and guides are available to explain the main library features. To get started, click on the following Python tutorials and run them interactively in Binder:
Spherical harmonic coefficients and grids Localization windows and spectral analysis Gravity and magnetic fields Plotting maps
INSTALLATION
SHTOOLS can be invoked in any Fortran 95 or Python program. The core software is written in Fortran 95, and Python wrappers and dedicated classes allow simple access to the fortran-compiled routines. To install it, run these commands below:
pyshtools (for Python)
Install using conda:
Install using pip:
For developers: Install the system level build requirements:
Then clone the shtools repo, install the other dependencies, and install manually in a conda environment:
SHTOOLS (for Fortran 95)
Install using the brew package manager (MacOS, Linux, Windows):
Install using the macports package manager (MacOS):
Install from source: Clone or download the this repo, and then execute one (or both) of the following commands in the shtools directory:
Further installation instructions and options can be found in the web documentation.
CONTRIBUTING
We work on the develop branch and only push releases to master. Please base all pull requests on develop.
CONTRIBUTORS
For the full list of contributors, see the AUTHORS file.
LICENSE This project uses the BSD 3-Clause license, as found in the LICENSE file.
Details
球面谐波工具
How to install shtools
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-02-22; current version v4.14.1, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v4.14.1 | 2026-02-22 | Stable | 39.7 MB | Download | — | — |
| v4.14.0 | 2026-02-22 | Stable | — | — | — | — |
| v4.13.1 | 2024-07-09 | Stable | 39.6 MB | — | — | — |
| v4.12.2 | 2024-03-18 | Stable | 39.6 MB | — | — | — |
| v4.11.10 | 2024-01-18 | Stable | — | — | — | — |
| v4.9.1 | 2021-08-25 | Stable | 39.0 MB | — | — | — |
| v4.9 | 2021-08-25 | Stable | — | — | — | — |
| v4.8 | 2021-01-26 | Stable | 38.5 MB | — | — | — |
| v4.7.1 | 2020-09-24 | Stable | 33.5 MB | — | — | — |
| v4.7 | 2020-09-14 | Stable | — | — | — | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| shtools | v4.14.1 | BSD-3-Clause | CLI | 2 |
| openssl@4 | openssl-4.1.0 | Apache-2.0 | CLI | 494,798 |
| xz | v5.8.4 | 0BSD AND GPL-2.0-or-later | CLI | 346,605 |
| pkgconf | pkgconf-3.0.10 | ISC | CLI | 311,054 |
Similar apps: Command-line Tools
openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…node
Node.js is an open-source, cross-platform JavaScript runtime environment.gh
GitHub command-line toolcmake
CMake is a cross-platform, open-source build system generator.Categories: Command-line Tools