3D Spherical Harmonic Plots

This notebook demonstrates how to generate a simple 3-dimensional plot of the data in an SHGrid class instance.


In [1]:
%matplotlib inline
from __future__ import print_function # only necessary if using Python 2.x

from pyshtools import SHCoeffs

lmax = 70
coeffs = SHCoeffs.from_zeros(lmax)
coeffs.set_coeffs(values=[1], ls=[10], ms=[0])

grid = coeffs.expand('GLQ')
grid.plot_3dsphere(elevation=20, azimuth=30);