Skip to main content

SHTOOLS - Spherical Harmonic Tools

Project description

Documentation DOI Paper Join the chat at https://gitter.im/SHTOOLS/SHTOOLS Twitter

SHTOOLS/pysthools is a Fortran-95/Python library that can be used to perform spherical harmonic transforms, multitaper spectral analyses on the sphere, expansions of functions into Slepian bases, and standard operations on global gravitational and magnetic field data.

FEATURES

  • A wide range of supported spherical harmonic functions:

    • real and complex,

    • all standard normalizations (Geodesy 4π, Schmidt semi-normalized, orthonormalized, unnormalized),

    • Condon-Shortley phase factor of (-1)m.

  • Clean implementation of the spherical harmonic transforms:

    • exact quadrature rules using the sampling theorem of Driscoll and Healy (1994) or Gauss-Legendre quadrature,

    • accurate and fast to approximately degree 2800,

    • OpenMP compatible and OpenMP thread-safe.

  • Selected applications and routines:

    • global spectral analysis, spherical harmonic rotations, and Wigner 3j symbols,

    • localized multitaper spectral analyses, and expansions in Slepian basis functions,

    • standard gravity and magnetic field calculations, computation of the geoid, and finite-amplitude potential from topography.

  • SHTOOLS is open source software (3-clause BSD license).

INSTALLATION

pyshtools for Python

Binary install for linux and macOS:

pip install pyshtools

Upgrade to a new version:

pip install --upgrade pyshtools

Build from source:

pip install pyshtools --no-binary pyshtools

pyshtools for developers

Linux requirements:

sudo apt-get install libblas-dev liblapack-dev g++ gfortran libfftw3-dev tcsh

macOS requirements:

brew install fftw

To install the develop branch:

pip install git+https://github.com/SHTOOLS/SHTOOLS@develop

Alternatively, clone the shtools repo and then install:

git clone https://github.com/SHTOOLS/SHTOOLS.git
cd shtools
git checkout develop
pip install .  # install into the active python environment lib folder, or
pip install -e .  # install into the SHTOOLS/pyshtools folder and link to the active python environment

Fortran Library

Clone the shtools repo, and then execute one of the following commands in the shtools directory:

make fortran
make fortran-mp  # for OpenMP Fortran routines

Or use the brew package manager (macOS):

brew tap shtools/shtools
brew install shtools
brew install shtools --with-openmp # to install shtools with the OpenMP components.

More installation instructions and options can be found in the web documentation.

HOW TO USE

SHTOOLS can be invoked in any Fortran 95 or Python program. The core software is written in Fortran 95, and Python wrappers allow simple access to the fortran-compiled routines. A variety of Python notebooks and example files are included that demonstrate the major features of the library.

To get started, check out the following Python tutorial notebooks:

DEVELOPERS

We work on the develop branch and only push releases to master. Please base all pull requests on develop.

CITATION

Mark A. Wieczorek and Matthias Meschede (2018). SHTools — Tools for working with spherical harmonics, Geochemistry, Geophysics, Geosystems, 19, 2574-2592, doi:10.1029/2018GC007529.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyshtools-4.5.tar.gz (29.7 MB view details)

Uploaded Source

Built Distributions

pyshtools-4.5-cp38-cp38-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyshtools-4.5-cp37-cp37m-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyshtools-4.5-cp37-cp37m-manylinux1_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.7m

pyshtools-4.5-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

pyshtools-4.5-cp36-cp36m-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.6m Windows x86-64

pyshtools-4.5-cp36-cp36m-manylinux1_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.6m

pyshtools-4.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

pyshtools-4.5-cp35-cp35m-manylinux1_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.5m

pyshtools-4.5-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.5m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

pyshtools-4.5-cp34-cp34m-manylinux1_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.4m

pyshtools-4.5-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.4m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

pyshtools-4.5-cp27-cp27mu-manylinux1_x86_64.whl (10.8 MB view details)

Uploaded CPython 2.7mu

pyshtools-4.5-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9 MB view details)

Uploaded CPython 2.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

File details

Details for the file pyshtools-4.5.tar.gz.

File metadata

  • Download URL: pyshtools-4.5.tar.gz
  • Upload date:
  • Size: 29.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for pyshtools-4.5.tar.gz
Algorithm Hash digest
SHA256 a3ccd13786dddd15074c7645af0813a7e67d6bdd8ee6bfefb44ed5f78d5c7b3b
MD5 800ecf585c5672d538b099568a90d00b
BLAKE2b-256 8b7cddf453344fb83a2f0f369d6fcd84c47f8a047def704dbaabe49d7921065a

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0

File hashes

Hashes for pyshtools-4.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d914768229008b157d4eece2b4345c28e1ecd4580035abdd484a2c888cac9937
MD5 609d54fa495f1fa05f41f3c70bc46fca
BLAKE2b-256 d14ab0575a726611ffa3207517a9deb723abebe4e31bdbfe20e0d0821627dce8

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for pyshtools-4.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 351c9c770930c0d84cbf4564ebeedf28acf7734537f6bfdf27b8268ef8110432
MD5 92c784adb751dd2265a4a4cf7cc35e66
BLAKE2b-256 7f8133470df07fad08ce8f5b22e47674d40e0c9614238fe41be2a15d80d1e984

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for pyshtools-4.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fef499ade4b55dcfcbdba3d8e930112a06478fa21f04836a20a776f5cde3d314
MD5 6cd733cce3286d9a7226cad2346f7d1b
BLAKE2b-256 5b723cbf300c8caa302995a4e9faff0391320dd53d464b39f6e553532d828304

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for pyshtools-4.5-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 9beab56db0eb1f36078fecf35fde09f7997f745443177d96b4b4500714319bca
MD5 8c65243b59ce16bc85daa9c79a41f0b4
BLAKE2b-256 454543db04c2653e88c69c7b7fe27813286adf8aac2b53562f8feb8d6637079a

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for pyshtools-4.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f667487879084dfb66e66caba48bb1ac2c82a59fcab3abb47caa7a4ff385db3f
MD5 35daeb810f356a9db69d0075dc9a7f6b
BLAKE2b-256 7a83a1d3beaa92d03437e04e29f7275e0bdddfa9e1cfa8cbb9b163fafb3f0de2

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for pyshtools-4.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a98ee87df463007134c3e89b868b9b303bd16ebfc66a49908c990f35af0f1e56
MD5 f96fed09b589a3df85b8a6e6cff009ff
BLAKE2b-256 291b82add53008887caddadf0f4f2c4b1bb855e9b6b92159da0135bf373686d6

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for pyshtools-4.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 d83f2548bd15697caa2f9863e73fa7202f93a8a0994bc9e94b9afdfcc37f5c89
MD5 e2c794f2d37a4b1f532b1f6896b02d83
BLAKE2b-256 d6637d15907adb67c6ed308a53ea861f0ff6bf3e23d3516dd0f45df2c86342e0

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for pyshtools-4.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1b6af69520d515474d49bd769822ae60e6667781bf07db12076cd4bfe1d07e52
MD5 13c4ef714fc6dfa9e163021d69bfdf4b
BLAKE2b-256 030b31ff0a35b122ddaf8c6df7fd33950f093ee3d6e6ef9e9837e32721abb4d0

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for pyshtools-4.5-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 ee47bb87d4c86b9d4aa469ede708a2c99e261bea8b66d9fee3b97117ee27e6ed
MD5 f9d4aba56aa958a957b3fe8e7cb71c4c
BLAKE2b-256 2ac1e764ec0c13ab5f1d3422620c509bfe45d65f363952f129c57d076b26e734

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for pyshtools-4.5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 60899be32bb2abbee4358f019eab05be6641f29572776edbc3cde657bfef241d
MD5 f0b8c237637d80af9fe5048047dd0d3c
BLAKE2b-256 abeae854b94ca2e6e2c2c819a22cced0a416ce7747d769f0b0c207f7482e6ecc

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for pyshtools-4.5-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 c7488acd80b6016e981730b3f237177ee4f6bd3710995de5d7b276a18e3109eb
MD5 f021f2629a02c52bd6905fafb7a1b794
BLAKE2b-256 cdd03fb29cb6be0ca249d20724f4fc8e2aa11381417f4d782c308dce2b1ca8b4

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyshtools-4.5-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for pyshtools-4.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 219c02f14ec97e5b91ef072e2aec2b916fdc72154c497fae9c87e959619cad28
MD5 26a561cbf73a9634c05bdb0af0282300
BLAKE2b-256 afb5492b5095eb556725b5bf726b067aad8450d8fb16c95c3414331e38e530b0

See more details on using hashes here.

File details

Details for the file pyshtools-4.5-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for pyshtools-4.5-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 720ec3d40fadda03c8ec07d4bb78fb6abeab5c6ff70d5395cf980f1f26eff37b
MD5 44d57ad8bfb9e9ac4a29beb4d0f543f1
BLAKE2b-256 16ef57342cb19b191c83c63066424f7436bb69d121b3fe393d22753eb5aa31dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page