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

Home » Public Forums » archive » Re: Simple syntax question dealing with arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Simple syntax question dealing with arrays [message #41585] Mon, 15 November 2004 10:17
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Nuno Oliveira wrote:
> I do believe that maybe you can give a quick answer.
>
> IDL> a = [[1], [1]]
> IDL> help, a
> A INT = Array[1, 2]
>
> IDL> a =[ [1,1] ]
> IDL> help, a
> A INT = Array[2]
>
> How can I make it Array[2,1] ?
>
>
> Thanks in advance,
>
> N.
>

IDL will delete trailing dimensions of size 1. Annoying, right? You can
do a=reform(a,2,1), but after certain operations (I'm not sure which
ones) your second dimension will be lost again.

Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Simple syntax question dealing with arrays
Next Topic: memory issues redux

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

Current Time: Wed Oct 08 19:43:07 PDT 2025

Total time taken to generate the page: 0.00511 seconds