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

Home » Public Forums » archive » Airy function implementation?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Airy function implementation? [message #86359] Wed, 30 October 2013 14:04 Go to next message
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
Hi,

Before I do this myself, does anyone have an implementation of the Airy function in IDL? (Yes, I am aware that the additional advanced math & stats module has the IMSL implementation of it but I don't have that).

Thanks,

Rob
Re: Airy function implementation? [message #86362 is a reply to message #86359] Wed, 30 October 2013 16:50 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The StarFinder package has a small program airy_pattern.pro to compute the Airy function via a Bessel function. http://www.bo.astro.it/StarFinder/paper6.htm#The%20IDL%20cod e

On Wednesday, October 30, 2013 5:04:24 PM UTC-4, Rob Dimeo wrote:
> Hi,
>
>
>
> Before I do this myself, does anyone have an implementation of the Airy function in IDL? (Yes, I am aware that the additional advanced math & stats module has the IMSL implementation of it but I don't have that).
>
>
>
> Thanks,
>
>
>
> Rob
Re: Airy function implementation? [message #86370 is a reply to message #86362] Thu, 31 October 2013 10:01 Go to previous messageGo to next message
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
On Wednesday, October 30, 2013 7:50:11 PM UTC-4, wlandsman wrote:
> The StarFinder package has a small program airy_pattern.pro to compute the Airy function via a Bessel function. http://www.bo.astro.it/StarFinder/paper6.htm#The%20IDL%20cod e

Thanks. Based on the code I found in the Starfinder program, that is an Airy pattern (http://en.wikipedia.org/wiki/Airy_disk) which is different from an Airy function (http://en.wikipedia.org/wiki/Airy_function). Sorry...I should have been precise.

Rob
Re: Airy function implementation? [message #86371 is a reply to message #86359] Thu, 31 October 2013 10:28 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Wednesday, October 30, 2013 10:04:24 PM UTC+1, Rob Dimeo wrote:
> Hi,
>
> Before I do this myself, does anyone have an implementation of the Airy function in IDL? (Yes, I am aware that the additional advanced math & stats module has the IMSL implementation of it but I don't have that).
>
> Thanks,
> Rob

You don't have IMSL, but you do have GSL (in Linux 64 bit):

function ai, x
return, call_external('/usr/lib64/libgsl.so', 'gsl_sf_airy_Ai', double(x[0]), 1l, /all_value, /d_value, /auto_glue)
end


pro test_ai ; Ai(x) in [-5,5]
x=dindgen(1001)/100-5
y=x
for j=0,1000 do y[j]=ai(x[j])
plot, y
end

Feel free to add error checking :-)

regards,
Lajos
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unequally spaced ticklabels with the FSC_COLORBAR function
Next Topic: Error when calling ENVI_WRITE_ENVI_FILE

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

Current Time: Wed Oct 08 11:42:34 PDT 2025

Total time taken to generate the page: 0.00688 seconds