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

Home » Public Forums » archive » 2D to 3D 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
2D to 3D Array [message #48322] Fri, 07 April 2006 13:00
rafaloos is currently offline  rafaloos
Messages: 15
Registered: January 2006
Junior Member
I have a Band Interleaved Image (BIL):
samples = 300
lines = 316
bands = 481

I can read this image as a 2D array of (144300, 316) Where 144300 will
be the product of samples by bands.
I would like to reformat the image so that I can put the data into an
array such as (300, 316, 481).

For example: I have this array (6,2)

array[*,0] = [1, 2, 1, 2, 1, 2]
array[*,1] = [3, 4, 3, 4, 3, 4]

What I want is a result as:

array[*,*,0] = 1, 2
3, 4

array[*,*,1] = 1, 2
3 ,4

array[*,*,2] = 1, 2
3, 4

so that my array will be (2,2,3)

Thank you,
Rafael
[Message index]
 
Read Message
Previous Topic: Curvefit issues
Next Topic: Re: 2D to 3D Array

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

Current Time: Thu Oct 09 22:41:52 PDT 2025

Total time taken to generate the page: 1.27957 seconds