Skip to main content

Numerical routines for working with spherical harmonic coefficients

Project description

SpherePy

SpherePy is a package for working with scalar and vector spherical harmonics. It provides:

  • scalar and vector spherical harmonic decompositions

  • objects for algebraically manipulating coefficients

  • the ability to plot coefficients and patterns

Badges

AppVeyor:

[![Build status](https://ci.appveyor.com/api/projects/status/ccwuv424wao4rbly?svg=true)](https://ci.appveyor.com/project/rdireen/spherepy)

TravisCI:

[![Build Status](https://travis-ci.org/rdireen/spherepy.svg?branch=master)](https://travis-ci.org/rdireen/spherepy) [![Coverage Status](https://coveralls.io/repos/rdireen/spherepy/badge.svg?branch=master)](https://coveralls.io/r/rdireen/spherepy?branch=master)

PyPI:

[![Latest Version](https://pypip.in/version/spherepy/badge.svg)](https://pypi.python.org/pypi/spherepy/) [![Supported Python versions](https://pypip.in/py_versions/spherepy/badge.svg)](https://pypi.python.org/pypi/spherepy/) [![Supported Python implementations](https://pypip.in/implementation/spherepy/badge.svg)](https://pypi.python.org/pypi/spherepy/) [![Development Status](https://pypip.in/status/spherepy/badge.svg)](https://pypi.python.org/pypi/spherepy/) [![Download format](https://pypip.in/format/spherepy/badge.svg)](https://pypi.python.org/pypi/spherepy/)

Better Documentation

I’m working on a more complete set of documentation [HERE](http://www.direentech.com/docs/spherepy).

Install

Ubuntu: Before installing SpherePy you must install build-essential, python-dev, and NumPy

` $ sudo apt-get install build-essential python-dev `

For NumPy you need to decide if you want to build it yourself with

` $ sudo pip install numpy `

or download the package with

` $ sudo apt-get install python-numpy `

I have been building NumPy using the pip method, but it takes a long time.

Then you can

` $ sudo pip install spherepy `

Windows: Make sure you have Numpy on your machine, then

` $ pip install spherepy `

Plotting

If you would like to use the plotting routines within SpherePy, install matplotlib:

` $ sudo pip install matplotlib `

Quick Example

`python import spherepy as sp c = sp.random_coefs(4, 4) # generate some random coefficients sp.pretty_coefs(c) p = sp.ispht(c, 50, 50) # inverse spherical transform to pattern sp.plot_sphere_mag(p) # plot the magnitude of the pattern `

Contributing

Reporting bugs, suggesting features, helping with documentation, and adding to the code is very welcome. See [Contributing](CONTRIBUTING.md).

License

Copyright (C) 2015 Randy Direen <spherepy@direentech.com>. SpherePy is licensed under GNU General Public License, version 3, a copy of this license has been provided within the COPYING file in this directory, and can also be found at <http://www.gnu.org/licenses/>.

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

spherepy-0.0.9.zip (110.8 kB view details)

Uploaded Source

Built Distributions

spherepy-0.0.9-cp34-none-win_amd64.whl (63.9 kB view details)

Uploaded CPython 3.4 Windows x86-64

spherepy-0.0.9-cp34-none-win32.whl (59.0 kB view details)

Uploaded CPython 3.4 Windows x86

spherepy-0.0.9-cp33-none-win_amd64.whl (63.9 kB view details)

Uploaded CPython 3.3 Windows x86-64

spherepy-0.0.9-cp33-none-win32.whl (59.0 kB view details)

Uploaded CPython 3.3 Windows x86

spherepy-0.0.9-cp27-none-win_amd64.whl (64.3 kB view details)

Uploaded CPython 2.7 Windows x86-64

spherepy-0.0.9-cp27-none-win32.whl (59.4 kB view details)

Uploaded CPython 2.7 Windows x86

File details

Details for the file spherepy-0.0.9.zip.

File metadata

  • Download URL: spherepy-0.0.9.zip
  • Upload date:
  • Size: 110.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spherepy-0.0.9.zip
Algorithm Hash digest
SHA256 10cbe4615f01c652d7866799d889e6bc639670b217245f68ec6877ce4e3382be
MD5 d1184153322c3acab99eadc23a8888fc
BLAKE2b-256 4ba4e19424ef3f243d74934ee91ac8d606931b687eed4798456d66cddb6ed6a1

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 f9440eab9a45328e214c6691d8fb0c364d7604fb60e9d82cf70e516cc4826b1f
MD5 ca36e431b2134d745f672ce3c1cefcef
BLAKE2b-256 40fbd4faccbb3d0874d14c03fea9695cf3bf0a77548a78c766d8a41419d05ac3

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp34-none-win32.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp34-none-win32.whl
Algorithm Hash digest
SHA256 3a2e1843bbae54ec26f828300b26dbec6927bd58ddf2bb431608f3d387799112
MD5 b27746d51f4ab4f6fa5dd09bbcc1f1d3
BLAKE2b-256 5fa3547681e092b6dd2e633d0ab02f331537c6554e61c3ca317869c53b1e51c5

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 caaf74d2a8a077f9de42165544e98e9f664cde441006e5873a3ca9736a965f01
MD5 20ad50b72f482f330bb3f4bfb46af18f
BLAKE2b-256 c7231fb078ac8bc8a76f4214a1686a74925c97ac3f087d3435402f8ea07d5fe0

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp33-none-win32.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp33-none-win32.whl
Algorithm Hash digest
SHA256 f7e682833df4f04e4aae7b781f6866617be0bb0776d2de12aa9ce98b272878d8
MD5 3e7e508c5ef7a4eede0696625abc8923
BLAKE2b-256 26db7ce9a75a29885b6d9128f4a5c4b228d6f1a6f8a6f754dc233852047dd9df

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 76f6ffa724eeff641454900ffe0d9ade8e7ca5223e4ac476d9b0309fe030edcd
MD5 7fc9452892abbac1409ee59fe94c786d
BLAKE2b-256 6faaa22b5646817344fef6e7352be2de095b13f0362525df1f512cc71dac09ca

See more details on using hashes here.

File details

Details for the file spherepy-0.0.9-cp27-none-win32.whl.

File metadata

File hashes

Hashes for spherepy-0.0.9-cp27-none-win32.whl
Algorithm Hash digest
SHA256 eac38ec35384c5ab8d0d211cd9afe4ae39df7667713fbba38b7a4e5015a0e12c
MD5 987b5eaa10491c1e3c3cdb994f983092
BLAKE2b-256 99bb77d565d5c40873f9a9e0c0415ed7d78b13bcb5769437e2882f80c9208f32

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