efficient and easy Spherical Harmonic Transforms for Python
A Python package to provide a unified API to perform Spherical Harmonic Transforms (SHT).
For a basic installation it should be sufficient to run:
pip install fluidsht [--user]
pip install -e .
From the root directory:
Or, from the root directory or any of the “test” directories:
python -m unittest discover
How does it work?¶
For the uninitiated, SHT is the spherical coordinates equivalent of FFT for cartesian coordinates. The aim of this package is to provides Python wrapper classes to facilitate SHT and related operators, very similar to FluidFFT, using various libraries such as:
SHTns and SHTOOLS are an OpenMP implementations while, libsharp is an MPI
implementation. All the libraries have built-in python bindings and
is pip installable. There are other SHT codes such as:
which may be pursued if needed.
Follow the links to understand the classes, methods and functions available to use FluidSHT:
FluidSHT: Spherical Harmonics Transform API
2D Spherical Harmonics Transform classes (