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

Home » Public Forums » archive » Re: value_locate.pro location in IDL library
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
Re: value_locate.pro location in IDL library [message #50098] Wed, 13 September 2006 22:57 Go to next message
IDL_Newbie_2000 is currently offline  IDL_Newbie_2000
Messages: 5
Registered: June 2006
Junior Member
Thanks, Wayne and David. The information is very helpful. Craig's
value_locate.pro still doesn't work since spl_interp is not built into
GDL yet (as far as I can tell for version 0.9). I will just wait and
use IDL instead.

BTW, I just started to use GDL and IDL student version the same time.
My hope is by using GDL, maybe I can force myself to know more about
IDL in addition to just use "plot,x,y..."

Best,

Zhonghua

wlandsman@jhu.edu wrote:
> ZMY wrote:
>> I am trying to use GDL to do some of my work and noticed it was
>> reporting a missing function of value_locate(). I looked for this
>> procedure/function in IDL library but can't find it, which is really
>> strange to me, since a lot of functions seem to use it in IDL (e.g.
>> mean()). Would any one tell me where I can find this function in the
>> computer?
>>
>
> VALUE_LOCATE was introduced as an intrinsic IDL function in IDL V5.3,
> but at the time Craig Markwardt wrote a clever non-intrinsic version
> for backwards compatibility with pre-V5.3 IDL versions. It is still
> available at
>
> http://cow.physics.wisc.edu/~craigm/idl/down/value_locate.pr o
>
> However, Craig's version uses SPL_INTERP so it will only work for you,
> if GDL has implemented SPL_INTERP... (There are also slower
> implementations that don't use SPL_INTERP.)
>
> --Wayne
Re: value_locate.pro location in IDL library [message #50099 is a reply to message #50098] Wed, 13 September 2006 19:12 Go to previous messageGo to next message
wlandsman@jhu.edu is currently offline  wlandsman@jhu.edu
Messages: 12
Registered: September 2006
Junior Member
ZMY wrote:
> I am trying to use GDL to do some of my work and noticed it was
> reporting a missing function of value_locate(). I looked for this
> procedure/function in IDL library but can't find it, which is really
> strange to me, since a lot of functions seem to use it in IDL (e.g.
> mean()). Would any one tell me where I can find this function in the
> computer?
>

VALUE_LOCATE was introduced as an intrinsic IDL function in IDL V5.3,
but at the time Craig Markwardt wrote a clever non-intrinsic version
for backwards compatibility with pre-V5.3 IDL versions. It is still
available at

http://cow.physics.wisc.edu/~craigm/idl/down/value_locate.pr o

However, Craig's version uses SPL_INTERP so it will only work for you,
if GDL has implemented SPL_INTERP... (There are also slower
implementations that don't use SPL_INTERP.)

--Wayne
Re: value_locate.pro location in IDL library [message #50104 is a reply to message #50099] Wed, 13 September 2006 14:36 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ZMY writes:

> I am trying to use GDL to do some of my work and noticed it was
> reporting a missing function of value_locate(). I looked for this
> procedure/function in IDL library but can't find it, which is really
> strange to me, since a lot of functions seem to use it in IDL (e.g.
> mean()). Would any one tell me where I can find this function in the
> computer?

It is built into IDL. Whoops! I mean built into the *real* IDL. :-)

Cheers,

David

P.S. I'm not against free software. In fact, I've been using
some (Audacity) to edit some science radio stories I've been
working on. It's just that when things go wrong, your screams
feel particularly pathetic. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: value_locate.pro location in IDL library [message #50173 is a reply to message #50098] Thu, 14 September 2006 20:38 Go to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
ZMY wrote:
> Thanks, Wayne and David. The information is very helpful. Craig's
> value_locate.pro still doesn't work since spl_interp is not built into
> GDL yet (as far as I can tell for version 0.9).

Surely you could patch in an alternative interpolation routine. Linear
interpolation would be adequate in many cases.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL on E.Soft
Next Topic: Re: IDL on E.Soft

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

Current Time: Wed Oct 08 15:26:44 PDT 2025

Total time taken to generate the page: 0.00776 seconds