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

Home » Public Forums » archive » Arrays of Structures
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 of Structures [message #52449 is a reply to message #20472] Thu, 08 February 2007 11:44 Go to previous messageGo to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Mick Brooks" <mick.brooks@gmail.com> wrote in message
news:1170962868.330264.257780@q2g2000cwa.googlegroups.com...
> On Feb 8, 7:09 pm, "R.G. Stockwell" <n...@email.please> wrote:
>
>>> ... but this is where you lose me. Doesn't the the first line that you
>>> showed say that structs.a is an array of 50 ints?
>>
>> Not exactly. The key point is that structs.a is an EXPRESSION.
>> Also, "struct" is an array of structures.
>
> Yes, this struck me as I drove home from work. I don't have IDL here,
> but will be trying
> IDL>print, INDGEN(50)[23]

syntax error

> All that's left is to explain why we get the extra leading dimension
> when subscripting an expression-which-evaluates-to-an-array-of-ints
> thing (i.e. structs.a) with multiple indices (or [*]).

ah yes, the extra leading dimension. That is because IDL hates you (lol).


Cheers,
bob
[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
Read Message
Read Message
Previous Topic: image rotation Fits headers?
Next Topic: .sav format

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

Current Time: Thu Oct 09 23:12:39 PDT 2025

Total time taken to generate the page: 0.01548 seconds