This is the python module to use SHTns, a high performance spherical harmonic transform and rotation library. It requires FFTW installed in your system.
GETTING STARTED
Basic Installation:
-
make sure FFTW is installed in your system; if not, install it using your system package manager.
-
run:
pip install shtns
This simple installation should work and be enough for most use cases. However, in order to have the highest possible performance, FFTW should be compiled and tuned for your machine, which is not the case with pre-compiled system packages.
Cuda GPU support:
Make sure the environment variable CUDA_PATH points to the installed cuda toolkit before running pip install shtns.
This will automatically add transparent support for nvidia gpus, in "offload" mode (that means data transfers are
performed by shtns).
Example code:
See https://bitbucket.org/nschaeff/shtns/src/master/examples/SHT_example.py and https://bitbucket.org/nschaeff/shtns/src/master/examples/shallow_water.py. For using the GPU from python, see https://bitbucket.org/nschaeff/shtns/src/master/examples/SHT_gpu_example.py
MORE INFO
See https://bitbucket.org/nschaeff/shtns/src/master/README.md
Metadata
Release files for shtns 3.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shtns-3.7.5.tar.gz | 654.3 kB | Without provenance | Details for shtns-3.7.5.tar.gz |
Release files / shtns-3.7.5.tar.gz
| Download URL | shtns-3.7.5.tar.gz |
|---|---|
| Size | 654.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94f608f3a01df892b67cf9b209b110df6b067f5fe68e3319719ab95ccc6c2a03
|
|
BLAKE2b-256 checksum How to use checksums |
3560241291c0a737d269efd0ae02a488172721f1ad4b226729613cf8d12d3a4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for shtns 3.7.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.