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

Home » Public Forums » archive » How to reform a 3-D array?
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: How to reform a 3-D array? [message #90604 is a reply to message #90603] Fri, 13 March 2015 09:24 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, March 13, 2015 at 5:20:29 PM UTC+1, Madhavan Bomidi wrote:
> Hello,
>
> I have a data array in 3-dimensions i.e., X -> BYTE = [3,360,2167]. I want to transform the data array retaining the same dimensions as X' -> BYTE = [3,2167,360]. Is there a simple function in IDL which can automatically rearrange the data to the new dimensions?
>
> Any suggestions would be of great help.
>
> Thanking you in advance,
> Regards,
> Madhavan

Would this do:
IDL> a = bytarr(3,50,100)
IDL> help, transpose(a,[0,2,1])
<Expression> BYTE = Array[3, 100, 50]

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FG translation and fg getData/setData
Next Topic: X Windows display

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

Current Time: Wed Oct 08 15:11:22 PDT 2025

Total time taken to generate the page: 0.00416 seconds