4.5

4.5 | 2 ratings Rate this file 37 downloads (last 30 days) File Size: 1.48 MB File ID: #8427

Fast Spherical Harmonic Transform

by Chris Rodgers

 

05 Sep 2005 (Updated 07 Sep 2005)

No BSD License  

Perform fast spherical harmonic transform and inverse transform using S2kit C code.

Download Now | Watch this File

File Information
Description

A MATLAB interface to S2kit, with routines for spherical harmonic decompositions of spherical data. Computes the fast spherical harmonic transform and its inverse.  
 
S2kit may be obtained from  
http://www.cs.dartmouth.edu/~geelong/sphere/  
 
See README.MEX for more details.  
 
See Test.m and TestInv.m for example scripts.  
 
Chris Rodgers http://rodgers.org.uk/

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements This code was developed using the GNU/Linux operating system and version of Matlab. There is no reason to believe that it will not compile under other operating systems, but I have not attempted to do so.
Zip File Content  
Other Files
mexs2kit/s2kit10.tar.gz,
mexs2kit/FST_semi_fly_mex.c,
mexs2kit/InvFST_semi_fly_mex.c,
mexs2kit/FST_semi_fly_mex.mexglx,
mexs2kit/InvFST_semi_fly_mex.mexglx,
mexs2kit/FST_semi_fly_mex.m,
mexs2kit/InvFST_semi_fly_mex.m,
mexs2kit/README.MEX,
mexs2kit/LICENSE,
mexs2kit/Test.m,
mexs2kit/TestInv.m,
mexs2kit/Ylm.m,
mexs2kit/MakeFSTGrid.m,
mexs2kit/FSTRep2SphHRep.m,
mexs2kit/SphHRep2FSTRep.m,
mexs2kit/idx2jm.m,
mexs2kit/jm2idx.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
08 Feb 2008 Enrico Onofri The package provides an excellent tool to realize spectral algorithm on the sphere, i.e. solving PDE on S2 with a very efficient representation of the Laplacian. Most welcome
28 Mar 2009 Geoffrey Adams This looks great, but I'm having trouble getting it to work properly. Since I'm running MATLAB on a Mac, I need to recompile the mex files. I followed your instructions, and everything seems to compile fine (and s2kit itself seems to work properly), and the mex commands compile without errors, but when I run Test.m, I get the following error message: 
 
??? Invalid MEX-file '/Users/gadams/Documents/MATLAB/mexs2kit/FST_semi_fly_mex.mexmaci': 
dlopen(/Users/gadams/Documents/MATLAB/mexs2kit/FST_semi_fly_mex.mexmaci, 1): Library not loaded: 
/opt/local/lib/libfftw3.3.dylib 
  Referenced from: /Users/gadams/Documents/MATLAB/mexs2kit/FST_semi_fly_mex.mexmaci 
  Reason: Incompatible library version: FST_semi_fly_mex.mexmaci requires version 6.0.0 or later, but 
  libfftw3.3.dylib provides version 5.0.0. 
 
Error in ==> Test at 37 
    SphHRep=FSTRep2SphHRep(FST_semi_fly_mex(Ylm(j,m,th,ph))); 
 
I have the latest release of FFTW installed on my computer. Do you have any suggestions of anything else I might try? 
 
Thanks!
29 Mar 2009 Geoffrey Adams I was able to get the mex file working properly by compiling it with the FFTW library that ships with MATLAB; now it works great. Thanks for a very useful submission!
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
spherical Chris Rodgers 22 Oct 2008 07:59:24
ylm Chris Rodgers 22 Oct 2008 07:59:24
harmonic Chris Rodgers 22 Oct 2008 07:59:24
transform Chris Rodgers 22 Oct 2008 07:59:24
fst Chris Rodgers 22 Oct 2008 07:59:24
s2kit Chris Rodgers 22 Oct 2008 07:59:24
mex Chris Rodgers 22 Oct 2008 07:59:24
fourier Chris Rodgers 22 Oct 2008 07:59:24
fft Chris Rodgers 22 Oct 2008 07:59:24

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com