efficient and easy Spherical Harmonic Transforms for Python
A Python package to provide a unified API to perform Spherical Harmonic Transforms (SHT).
Documentation: https://fluidsht.readthedocs.io
For a basic installation it should be sufficient to run:
pip install fluidsht [--user]
You can get the source code from Heptapod or from the Python Package Index. The development mode is often useful if you intend to modify fluidsht. From the root directory:
pip install -e .
From the root directory:
make tests
Or, from the root directory or any of the "test" directories:
python -m unittest discover
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 SHTOOLS
is pip installable. There are other SHT codes such as:
which may be pursued if needed.