☰ Menu
CLI Open source 2 installs/mo

shtools for Mac

shtools

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

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-02-22; current version v4.14.1, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v4.14.12026-02-22Stable39.7 MBDownload——
v4.14.02026-02-22Stable————
v4.13.12024-07-09Stable39.6 MB———
v4.12.22024-03-18Stable39.6 MB———
v4.11.102024-01-18Stable————
v4.9.12021-08-25Stable39.0 MB———
v4.92021-08-25Stable————
v4.82021-01-26Stable38.5 MB———
v4.7.12020-09-24Stable33.5 MB———
v4.72020-09-14Stable————

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.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
shtoolsv4.14.1BSD-3-ClauseCLI2
openssl@4openssl-4.1.0Apache-2.0CLI494,798
xzv5.8.40BSD AND GPL-2.0-or-laterCLI346,605
pkgconfpkgconf-3.0.10ISCCLI311,054

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…