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

Home » Public Forums » archive » Re: Question/Bug on Transpose
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: Question/Bug on Transpose [message #26432 is a reply to message #26338] Mon, 27 August 2001 18:09 Go to previous message
majewski is currently offline  majewski
Messages: 15
Registered: March 2000
Junior Member
On 22 Aug 2001 18:06:45 -0500, Craig Markwardt
<craigmnet@cow.physics.wisc.edu> wrote:

> inptr = ptrarr(nx, ny, nz)
> outptr = ptrarr(ny, nx, nz)
> for i = 0, nx-1 do outptr(*,i,*) = inptr(i,*,*)

or just perform the transpose on a simple index array and then subscript
your pointer array with that

nx = 2 & ny = 3 & nz = 4
testptr = ptrarr(nx, ny, nz)
outptr = testptr[transpose(indgen(nx,ny,nz))]
help, outptr

IDL> <Expression> POINTER = Array[4, 3, 2]

you can then fidget with the transpose command to get the correct output
array dimensions
leon


-------------------------
Leon Majewski

Remote Sensing & Satellite Research Group
Curtin University of Technology, Perth, Australia

email: majewski@ses.curtin.edu.au
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: tetra_volume
Next Topic: Re: is this a managed usegroup or not ?

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

Current Time: Sun Oct 12 03:53:16 PDT 2025

Total time taken to generate the page: 0.72059 seconds