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

Home » Public Forums » archive » Re: Range of "Spherical Coordinates" in SPHER_HARM
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: Range of "Spherical Coordinates" in SPHER_HARM [message #62846 is a reply to message #62824] Thu, 09 October 2008 06:22 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <gcku0s$4t1$1@aioe.org>,
"Karlo Janos" <idl.20.beamer2@spamgourmet.com> wrote:

> Hello all!
>
> I am a little bit confused about the usage of spherical coordinates in
> the function SPHER_HARM.
> The first parameter should be the azimuthal angle theta (in the help
> document named 'polar' or 'colatitudinal') and the second parameter the
> polar angle phi (in the help document named 'azimuthal' or
> 'longitudinal').
> According to the example code at the end of the help page the range for
> theta seems to be [0; pi] as I would have presumed. But what is the
> range for phi? [0; 2pi] or [-pi; pi]? In some functions (where the
> keyword '/DEGREES' is possible) it must be the latter, relating to the
> coordinate system of the earth. But what about SPHER_HARM? I did not
> find any explanation about the definition of theta and phi there.
> Does anybody see clearly here?
> Greets
>
> Karlo

Spherical harmonics are simply sines and cosines in the azimuthal
(longitudinal) direction, so it does not matter whether you
use [0, 2 pi] or [-pi, pi]. Use whichever convention you want, but be
consistent or you will end up with phase errors.

And, as is usually the case with IDL, the easiest approach is to
try it and see if you get what you want.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ARGHHHH Min_Curv_Surf !!!!!!!!!!!
Next Topic: large matrix operations

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

Current Time: Thu Oct 09 07:47:02 PDT 2025

Total time taken to generate the page: 2.72000 seconds