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

Home » Public Forums » archive » Re: Hankel Transform in IDL
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: Hankel Transform in IDL [message #31082 is a reply to message #31081] Tue, 18 June 2002 08:02 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
jl0477@hotmail.com (Jerome LOUIS) writes:

> I am looking for a routine to compute Hankel transforms in IDL,
> and I wonder if someone have it and could send it to me..

> Thanks

> J*r*me

> ps: I saw on this group that Georg Pabst had this program one year
> ago. I tried but could not reach him...

Here's one I wrote a long time ago.

Bill Thompson


FUNCTION HANKEL,F
;
; This function returns the Hankel transform of the argument.
;
S = SIZE(F)
IF S(0) NE 1 THEN BEGIN
PRINT,'*** Variable must be a one-dimensional array, name= F, routine HANKEL.'
RETURN,F
ENDIF
;
X = INDGEN(F)
K = ( 2. * !PI / FLOAT(N_ELEMENTS(X)) ) * X
SC = 0.*X + 1.
IF N_ELEMENTS(SC) GT 3 THEN BEGIN
SC(0) = 3.D0 / 8.D0
SC(1) = 7.D0 / 6.D0
SC(2) = 23.D0 / 24.D0
ENDIF
;
H = BES0( K # X ) # ( K * F * SC )
;
RETURN,H
END
[Message index]
 
Read Message
Read Message
Previous Topic: BUG in PV-Wave 7.5: Print,0.1 produces 0.0000
Next Topic: Format codes in IDL

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

Current Time: Tue Dec 02 15:31:44 PST 2025

Total time taken to generate the page: 1.28185 seconds