Skip to main content

High performance Spherical Harmonic Transform

Project description

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

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

shtns-3.7.3.tar.gz (232.9 kB view details)

Uploaded Source

File details

Details for the file shtns-3.7.3.tar.gz.

File metadata

  • Download URL: shtns-3.7.3.tar.gz
  • Upload date:
  • Size: 232.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for shtns-3.7.3.tar.gz
Algorithm Hash digest
SHA256 a94fd87e73e6071401b50a4c174d42d7da2f6626c55f9238807a9c34d0ae8da3
MD5 dc7ad60719fccd46401f105d4b18479f
BLAKE2b-256 4cb58fb6becd340764a40d0bed6dcb0e80cf2164ef6f0c26abd5863a8b370d54

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