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:
Note that the 0.0.6 version of the PyPI package you get with pip does not work on Linux, and on Windows it will try to download the latest NumPy (which you might now want). I’m fixing this issue in 0.0.7 and will hopefully have it up soon.
[](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
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
>>> 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
Built Distributions
Hashes for spherepy-0.0.7-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd316b6ea602004481142276fc653c3b16bf4f8ecabd0ec4726113d8ed2a4af2 |
|
MD5 | ab86aaaa5066b848ffa177ca39681da9 |
|
BLAKE2b-256 | 2dddd9381dfeb14c9f51bdb4438e3189a0a6e656ea43be8bc2428720c9dfec25 |
Hashes for spherepy-0.0.7-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd14d526257166b54a8833ca6caacbead3e3a2f7a362f164ecdfefcda64f86d |
|
MD5 | 60e23e2dc62c777173767b411fcec5b7 |
|
BLAKE2b-256 | 6ea7319b258d58e13011ff9819b09c64ab7451995201e7ecbbeb848ddefd5e0d |
Hashes for spherepy-0.0.7-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae48f59bbaae1ce0df3a0ee34579a2f602b7ab1c1e5422650ffb332e0eea4bd |
|
MD5 | 1e9f617310b24fd4453d31566f9bab66 |
|
BLAKE2b-256 | 198bf23cd6a04fde0f1c96705919c176eecfcd73c1ae8867d0dfc3d920a54241 |
Hashes for spherepy-0.0.7-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b1f67791fd6d5330461a9f80e44ab41558f5224232164a976a4fe77252f0a4 |
|
MD5 | 0eab1ae6cef1019ff80c2fbc0893739f |
|
BLAKE2b-256 | 06cbd5fab7df242d9ff57d27c4e9b3697dae60409b8d08999d4dd52c38b25e55 |
Hashes for spherepy-0.0.7-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f32678a7fbba81fea504375b2f1b553803c4bd48951adfb423400e32efb8f7 |
|
MD5 | cb845249b6454ef90a9c4d56a1e9b062 |
|
BLAKE2b-256 | 99b58ce4a8365655cbcd1d6f92181675bfe0786ed9e974212b2d161b9f74fa43 |
Hashes for spherepy-0.0.7-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c85ee2f62cdc0ed06e8f11e010908155f7fb3b4fedb5d414e492f696b45732e |
|
MD5 | 3f4cca3f0a918410b11d1aeb2fe17a4e |
|
BLAKE2b-256 | 26fb91c55a32fbfa0e36500c78b94ca853f06f25415aa514dc83e761a949c85a |