Numerical routines for working with spherical harmonic coefficients

## 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

AppVeyor:

TravisCI:

PyPI:

### 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).

## Project details

### Source Distribution

spherepy-0.0.6.zip (74.5 kB view hashes)

Uploaded source

### Built Distributions

spherepy-0.0.6-cp34-none-win_amd64.whl (55.7 kB view hashes)

Uploaded cp34

spherepy-0.0.6-cp34-none-win32.whl (50.9 kB view hashes)

Uploaded cp34

spherepy-0.0.6-cp33-none-win_amd64.whl (55.8 kB view hashes)

Uploaded cp33

spherepy-0.0.6-cp33-none-win32.whl (50.9 kB view hashes)

Uploaded cp33

spherepy-0.0.6-cp27-none-win_amd64.whl (56.1 kB view hashes)

Uploaded cp27

spherepy-0.0.6-cp27-none-win32.whl (51.2 kB view hashes)

Uploaded cp27