Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
SHtools - Spherical Harmonics Toolbox

5.0 | 1 rating Rate this file 37 Downloads (last 30 days) File Size: 11.7 KB File ID: #15279 Version: 1.0
image thumbnail

SHtools - Spherical Harmonics Toolbox



12 Jun 2007 (Updated )

Toolbox for manipulating and plotting vectors of spherical harmonic coefficients

| Watch this File

File Information

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

Name inspired by Fortran SHTOOLS software

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
08 Nov 2015 ashraf rateb  

Contact us