Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.24 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.24 KB

sphericalharmonics

Generate animated gifs of spherical harmonics, like this:

Example spherical harmonic animation

A description of how these animations are made can be found on my blog.

Run from the Terminal with these options:

usage: python shanimate.py [-h] [-o OUTFILE] [-i INC] [-s SIZE] [-n NFRAMES]
                    [-d DURATION] [--nlon NLON] [--nlat NLAT] [--dpi DPI]
                    ell m

Generate animated gif of spherical harmonic.

positional arguments:
  ell                   spherical degree
  m                     azimuthal order

optional arguments:
  -h, --help            show this help message and exit
  -o OUTFILE, --outfile OUTFILE
                        output gif filename
  -i INC, --inc INC     inclination (degrees from pole)
  -s SIZE, --size SIZE  image size (inches)
  -n NFRAMES, --nframes NFRAMES
                        number of frames in animation
  -d DURATION, --duration DURATION
                        animation duration (seconds)
  --nlon NLON           number of longitude samples
  --nlat NLAT           number of latitude samples
  --dpi DPI             dots per inch