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

Home » Public Forums » archive » Question/Bug on Transpose
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
Question/Bug on Transpose [message #26342] Wed, 22 August 2001 11:10 Go to next message
Joe Means is currently offline  Joe Means
Messages: 44
Registered: November 1996
Member
Hello IDL group,
I have this problem transposing 3-D pointer arrays. Try this example:

testptr = ptrarr(2,3,4)
ccc = Transpose(testptr)
;This gives an error:
% TRANSPOSE: Pointer expression not allowed in this context: TESTPTR.

;What I really want to do is:
ccc = Transpose(testptr,[1,0,2]) ;But this gives the same error

;The problem does not occur with a 2-D pointer array:
testptr2d = ptrarr(2,3)
bbb = Transpose(testptr2d)
I run IDL 5.4 on Win2000Pro. I'd like workaround suggestions!

--
Joseph E. Means
Assistant Professor, joe.means@orst.edu
Department of Forest Science
Oregon State University
Corvallis, OR 97331-5752
541-750-7351
Re: Question/Bug on Transpose [message #26470 is a reply to message #26342] Thu, 23 August 2001 10:04 Go to previous message
Joe Means is currently offline  Joe Means
Messages: 44
Registered: November 1996
Member
Thanks to Julio and Craig for their thoughtful replies. I have emailed
RSI tech support, directing them to this thread.
Joe Means

Joe Means wrote:

> Hello IDL group,
> I have this problem transposing 3-D pointer arrays. Try this example:
>
> testptr = ptrarr(2,3,4)
> ccc = Transpose(testptr)
> ;This gives an error: % TRANSPOSE: Pointer expression not allowed in
> this context: TESTPTR.
>
> ;What I really want to do is:
> ccc = Transpose(testptr,[1,0,2]) ;But this gives the same error
>
> ;The problem does not occur with a 2-D pointer array:
> testptr2d = ptrarr(2,3)
> bbb = Transpose(testptr2d)
> I run IDL 5.4 on Win2000Pro. I'd like workaround suggestions!
>
--
Joseph E. Means
Assistant Professor, joe.means@orst.edu
Department of Forest Science
Oregon State University
Corvallis, OR 97331-5752
541-750-7351
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: incremental time data file.....
Next Topic: Re: "private" and "public" attributes in IDL.

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

Current Time: Sun Oct 12 14:17:57 PDT 2025

Total time taken to generate the page: 1.68062 seconds