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

Home » Public Forums » archive » Re: Still missing features in IDL 8
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: Still missing features in IDL 8 [message #72871] Wed, 13 October 2010 09:38 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Paulo,

Great ideas! I just added #1 to the list (ha!) of potential features
for IDL 8.1.

Regarding #2, what if you could use additional indices to access array
elements within lists?

For example:

IDL> a = LIST(FINDGEN(10), BYTARR(5,3))
IDL> help, a[0]
<Expression> FLOAT = Array[10]
IDL> help, a[0,3] ; currently throws an error in IDL8.0
<Expression> FLOAT = 3.00000
IDL> a[0,3] = !pi ; currently throws an error in IDL8.0

IDL> help, a[1]
<Expression> BYTE = Array[5, 3]
IDL> help, a[1,4,2] ; currently throws an error in IDL8.0
<Expression> BYTE = 0
IDL> a[1,4,2] = 255 ; currently throws an error in IDL8.0

So the first index would give the list element, and the remaining
indices would index into the array itself. Obviously you could only
have up to 7 dimensions in your contained array, but that probably
isn't a huge limitation.

Thoughts?

-Chris
ITTVIS
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Typing Mistakes
Next Topic: Understanding IDLanROI

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

Current Time: Fri Oct 10 01:01:09 PDT 2025

Total time taken to generate the page: 1.92054 seconds