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

Home » Public Forums » archive » Re: Undocumented array indexing feature?
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: Undocumented array indexing feature? [message #14107 is a reply to message #14104] Fri, 22 January 1999 00:00 Go to previous messageGo to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Liam Gumley wrote:
> Here's a way to index an array I hadn't seen before:
>
> a = indgen(10,10)
> x = [3,5,8,9]
> y = [2,7]
> print, (a[x,*])[*,y]
> 23 25 28 29
> 73 75 78 79
>
> Does anyone know where this feature (i.e. enclosing an array with
> parentheses and appending an index) is documented? I couldn't find it in
> my printed IDL 5.0 documentation.

To answer my own question, a careful reading of Chapter 5 of 'Building
IDL Applications' p. 60
(ftp://ftp.rsinc.com/pub/idl_5.2/info/docs/building.pdf)
revealed the following:

"The syntax of a subscript reference is:
Variable_Name[Subscript_ List]
or
(Array_Expression)[Subscript_List]"

Thanks to Bill and Craig for their replies.

---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
1225 W. Dayton St., Madison WI 53706, USA
Phone (608) 265-5358, Fax (608) 262-5974
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how do i read compressed tiff files?
Next Topic: Re: Processing Audio

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

Current Time: Sat Oct 11 08:14:28 PDT 2025

Total time taken to generate the page: 0.95847 seconds