Be the first to rate this file! 42 Downloads (last 30 days) File Size: 11.7 KB File ID: #15279
image thumbnail

SHtools - Spherical Harmonics Toolbox

by

 

12 Jun 2007 (Updated )

Toolbox for manipulating and plotting vectors of spherical harmonic coefficients

| Watch this File

File Information
Description

This small and basic set of routines has resulted from my need to create and manipulate real spherical harmonic coefficients in the context of geomagnetic applications. These coefficients are saved as vectors, since vector manipulation in Matlab is well-developed. The toolbox supports accessing a coefficient that corresponds to specific degree l and order m (where negative m corresponds to sin(m*phi) and positive m corresponds to cos(m*phi) terms); mapping the vector to a matrix and back; mapping to a grid using Schmidt semi-normalized spherical harmonics, and basic plotting.

Vectors consisting of several 'sections' of independent sets of coefficients are also to some degree supported (in my case they correspond to parametrization of different layers of the Earth).

Also contains a set of functions to integrate it with the publicly available DOTM library by F. J. Simons. In order to use SHRotateVec (rotation of spherical harmonic coefficients) please also install his library
http://geoweb.princeton.edu/people/simons/software.html

Name inspired by Fortran SHTOOLS software http://www.ipgp.jussieu.fr/~wieczor/SHTOOLS/SHTOOLS.html

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us