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 harmonic coefficients
the ability to plot coefficients and patterns
Badges (lots of them)
AppVeyor:
[](https://ci.appveyor.com/project/rdireen/spherepy)
TravisCI:
[](https://travis-ci.org/rdireen/spherepy) [](https://coveralls.io/r/rdireen/spherepy?branch=master)
PyPI:
[](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/)
[](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/) [](https://pypi.python.org/pypi/spherepy/)
Better Documentation
I’m working on a more complete documentation [HERE](http://www.direentech.com/docs/spherepy).
Install
pip
For Windows I use wheels to distribute the binaries, so make sure pip is up to date.
Ubuntu: Before installing SpherePy you must install build-essential, python-dev, and NumPy
$ sudo apt-get install build-essential python-dev $ sudo pip install numpy
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
>>> import spherepy as sp >>> c = sp.random_coefs(4, 4) # generate some random coefficients >>> 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
Built Distributions
Hashes for spherepy-0.0.6-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35febc9d81c68f834cc27f8e3299c948cfbf046a5db0fc496974fd2e4bf4369c |
|
MD5 | e358adec9feca26cf9ba2f2272c21f4b |
|
BLAKE2b-256 | f60de936d43382d5ef5ae040c357df900fa2aa854f32fba903f6efa4cb6215fe |
Hashes for spherepy-0.0.6-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ef460288ae26572595fd7fd6d00fcf34fa35faa43578f2d6586dc6b9e16cb43 |
|
MD5 | 9836775ecbce6af8469b404c915a9154 |
|
BLAKE2b-256 | 5d33ebe8051f09fc58aa35f7298130f7e43bb02a8285c1ddd5883623e6e65b36 |
Hashes for spherepy-0.0.6-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bea81e137ad21a0f4810b00a845e3734eda66b38bb0e57051da5cea3311ca9b |
|
MD5 | 6a20f6e22668565798b9b5dd682ef093 |
|
BLAKE2b-256 | 1b3ad4558f10c627f3405b250e65ee15d64d0ff0b7661eef47f3658bd701af5c |
Hashes for spherepy-0.0.6-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6fd2c0d79afbdfd4381df5f8eba388ed2c5a43d29d19c451a9e4cb55fe0092f |
|
MD5 | b97b019dde20909bc42ca5351090d970 |
|
BLAKE2b-256 | 2adab92701207183661b64bda8e4dc14207c40aea876f64dc1b9dc8f621f4102 |
Hashes for spherepy-0.0.6-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755cf66675a4c0f463885024039d98bf3928165eea742fac452aa598857d608b |
|
MD5 | aa3c241d06419f484e4d850cc247d1a0 |
|
BLAKE2b-256 | cb866e51390d1463ad03b33eeed5fffd89c6963c718739166bd42b101f51a55c |
Hashes for spherepy-0.0.6-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3cc9d426d6f477ee5ea126a03ad5a97db54d62bf679f8b3b7fdfd0653ee9e5 |
|
MD5 | 809d6dd727bf77266699de6d4a9935b0 |
|
BLAKE2b-256 | 989a792d036d0437fda58554e6cf2cad869632ff688daea265d4c61ebe71b6e1 |