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

Home » Public Forums » archive » 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
Undocumented array indexing feature? [message #14114] Thu, 21 January 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
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.

Cheers,
Liam.

---
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
Previous Topic: how do i read compressed tiff files?
Next Topic: IDL Library Browser

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

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

Total time taken to generate the page: 0.21530 seconds