comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: spherical harmonic representation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: spherical harmonic representation [message #67224] Tue, 21 July 2009 07:55 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <k-bowman-C664B6.09160321072009@news.tamu.edu>,
"Kenneth P. Bowman" <k-bowman@null.edu> wrote:

Had the theta and phi arguments switched. This works.

Ken


pro sph_plot

l=5 ;harmonic degree
m=2 ;azimuthal order |m| <= l
np = 101 ;No. of inclination angle(theta) and azimuthal angle(phi)

x = 360.0D0*DINDGEN(np)/(np-1) ;phi = 0, 360
y = 180.0D0*DINDGEN(np)/(np-1) ;theta = 0, 180
xx = REBIN(x, np, np)
yy = REBIN(REFORM(y, 1, np), np, np)

ff = real_part(spher_harm(yy*!dtor, xx*!dtor, l, m, /doub))

window, 0, xsize = 512, ysize = 512, title = 'Spherical Harmonic'

MAP_SET, /CYLINDRICAL

contour, ff, x, y-90.0, /ove, nlevels=10

isurface, ff, x, y-90.0

end
[Message index]
 
Read Message
Read Message
Previous Topic: spherical harmonic representation
Next Topic: stregex question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:51:21 PDT 2025

Total time taken to generate the page: 0.00476 seconds