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

Home » Public Forums » archive » Loop Arrays
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: Loop Arrays [message #27228 is a reply to message #26979] Tue, 16 October 2001 08:11 Go to previous messageGo to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Mon, 15 Oct 2001, R.G.S. wrote:

>
> My 2 cents:
> Just write a function ind() that accepts a string, and returns the desired
> index array.
> Then call the array as follows:
>
> b = a(ind("-70:-56)")
>
> I almost wrote that function, but I had too much work to do.
>

I like this idea even if its not as transparent as laying a filter over
the existing IDL session that re-parses your code for you. Mostly because
this could be coded fairly easily and through keywords can even supply
multiple behaviors (i.e. circular vs from_right vs reverse... )

However, how would your ind() function know what it is subscripting?
Wouldnt it have to be:

b = ind(a, "-70:-56" )

Thanks,
-k.

--
Ken Mankoff
LASP://303.492.3264
http://lasp.colorado.edu/~mankoff/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: copying a file
Next Topic: fit function

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

Current Time: Fri Oct 10 15:21:31 PDT 2025

Total time taken to generate the page: 1.12084 seconds