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 coefficients

• the ability to plot coefficients and patterns

AppVeyor:

TravisCI:

PyPI:

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

 $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

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

## Project details

### Source Distribution

spherepy-0.0.9.zip (110.8 kB view hashes)

Uploaded source

### Built Distributions

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

Uploaded cp34

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

Uploaded cp34

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

Uploaded cp33

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

Uploaded cp33

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

Uploaded cp27

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

Uploaded cp27