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:
[](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/)
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
Built Distributions
Hashes for spherepy-0.0.8-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39bf1e86b081001b44dc0addde311dc97c59cfd2498dab81d3146991fa731521 |
|
MD5 | 62007000067ef370546f064018b63054 |
|
BLAKE2b-256 | d4f8f6bd47ab416e79a1acda38d1e2a51be3e86e9e379a9b280b662b9e9bb74c |
Hashes for spherepy-0.0.8-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e406d8d427571fb57e6375a4875c871b862df1e015f1294c5ee12a7dc6ca22 |
|
MD5 | 5d44b81a22bba9b4a68dd172fdf20c12 |
|
BLAKE2b-256 | fa5888394aaca369e84426a38e5450cd7a5efc62b419cbb332dfea31fb692d9c |
Hashes for spherepy-0.0.8-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a41f5ea72120c7fffcc48b4d459e80c0b1e0dba2813ac179442506d4c21b9937 |
|
MD5 | 3b35f9b3dd4724467454279a1164fbdf |
|
BLAKE2b-256 | abfb7adf693f666f3dffca128fb5605a651e6c3d4ee30fd0e2afe69b51abb8f3 |
Hashes for spherepy-0.0.8-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f542b94ae359e89679209e0f8c7529fab4a80a51fdf7cea4a88586d78ef4db88 |
|
MD5 | a2b6086c7fcf3b0f1f30ae859e62f345 |
|
BLAKE2b-256 | 03ce8f08b6433751e9f8120664287dd78ed3ac5856e19e0983226bd8ee234682 |
Hashes for spherepy-0.0.8-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b90358931f718a322fa08e1ebfe27e89b9d6491efc6e55fb4408cde750a10ba |
|
MD5 | 160b744d0b8fbeacb9b61791b953e093 |
|
BLAKE2b-256 | 26f616e22b2098db2e4318dfa7734321545ed4f2ef0ec7bb4eb5ff4bea00b7bd |
Hashes for spherepy-0.0.8-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d95bf7d19763f5a10cb2e061ac7557db050ae2374e7a9bf3483502f0a2843d |
|
MD5 | f78023885b945a4a06a30bbc6193208a |
|
BLAKE2b-256 | 8825b9ececaa1d22246605152b402b4cc2c38f5064b5b043de87edb1dcf551b3 |