Spherical Harmonics. [message #3853] |
Mon, 10 April 1995 00:00  |
sjt
Messages: 72 Registered: November 1993
|
Member |
|
|
Does anyone have either of the following:
1) A routine to fit (low order) spherical harmonics to data. That is take
data tabulated at selected latitude & longitude values and return
spherical harmonic coefficients of the best fit.
or failing that:
2) A routine to return the value of a spherical harmonic function of
given order at a given location?
I can't find anything in the major libraries (APL, ASTRO etc.)
If not I'll have a shot at (2) and post the result.
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
|
|
|
|
|
Re: spherical harmonics [message #21981 is a reply to message #3853] |
Fri, 13 October 2000 00:00  |
John C. Wright
Messages: 1 Registered: October 2000
|
Junior Member |
|
|
On Fri, 13 Oct 2000, Klaus Gottschaldt wrote:
> Subject: spherical harmonics
>
> Hallo!
>
> I want to analyze data on a sphere, representing them by spherical
> harmonic coefficients.
> This is somehow like a Fourier transform, but based on Legendre
> polynoms, which are
> defined on the surface of a sphere.
> Unlike wavelets, this transform is global.
> My data are given in the form [longitude, latitude, data_value], where
> longitude, latitude
> and data_value are vectors of the same length.
> Data points are randomly scattered over the sphere with a resolution of
> approx. 100km
> on the Earth's surface.
>
> Does somebody know, how to do this transform with idl?
>
> Klaus
Hi Klaus,
I may be in need of such a transform in the near future, also. But for
now, the MIDL library has a function, legendre_pol.pro, that returns
associated legendre polynomials, then it would be possible to build the
transform, though I recognize this would be a bit of work, though the
longitudinal transform could be done with IDL's FFT.
A word of warning, there are many different Spherical Harmonic
decompositions, so make sure your basis functions and normalizations are
the same between applications. Let the list know if you find any publicly
available solutions, I for one, would be interested.
-john
|
|
|
Re: spherical harmonics [message #21983 is a reply to message #3853] |
Fri, 13 October 2000 00:00  |
Peter Thorne
Messages: 13 Registered: October 2000
|
Junior Member |
|
|
Klaus,
I have some code to do this, but its been released to me under licence
and therefore I am not at liberty to release it directly. If you contact
me by email I'll point you towards the people who wrote the source code
and you can approach them.
HTH
Peter
|
|
|