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

Home » Public Forums » archive » Re: arrays vs. functions conflicts
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: arrays vs. functions conflicts [message #38467 is a reply to message #38378] Fri, 05 March 2004 08:38 Go to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
Wayne Landsman wrote:
>
>> But before going on, I just wanted to know if there is an
>> easier way ouy of this that I have overlooked (and no, I
>> definitely do not want to override useful programs written
>> by others with my own []-version, only to start all over
>> again each time a new version or bug fix of the routine
>> comes out).
>
>
> You might try the program idlv4_to_v5.pro in
> http://idlastro.gsfc.nasa.gov/ftp/contrib/landsman/v5/
> which does an automatic replacement of () subscripts with [] using
> ROUTINE_INFO() to check whether a variable is an array or a function.
> It works about 99% of the time though occasionally gets confused by
> multiple lines or execute statements. You can then add a
> compile_opt idl2 to ensure that IDL knows the difference.
> You might then give the [] version to the developers of the routines and
> tell them that "nobody is using V4.0 or earlier anymore...."
>
> --Wayne
>

Dear David, Wayne, Paul

thanks for your replies.

Well, that's exactly what I feared: no way out!

Just to show you how common the problem is one can try:

utplot,[1,2,3],[1,2,3],0
mpfit

or, if you don't have utplot,

.comp
function limits
end

mpfit

Even if utplot might not be as widespread as mpfit,I guess there are
quite a few people around using both of them...


Dear Craig,

should you ever feel like giving up idl 4, I think you could be
surprised how many people might volunteer to help you translating
some code to []-notation!

Greetings,
Paolo



--
____________________________________________________________ ________

Paolo Grigis
ETHZ - Institute of Astronomy email: pgrigis@astro.phys.ethz.ch
Scheuchzerstrasse 7
ETH Zentrum phone: ++41 1 632 42 20
8092 Zurich fax : ++41 1 632 12 05
Switzerland http://www.astro.phys.ethz.ch/
____________________________________________________________ ________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widgets in VM
Next Topic: How to get info about ROI from iTools IIMage?

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

Current Time: Wed Oct 08 15:13:30 PDT 2025

Total time taken to generate the page: 0.00376 seconds