Re: Matrix Transpose [message #61590] |
Tue, 22 July 2008 13:45 |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Jul 22, 3:36 pm, "R.G. Stockwell" <notha...@noemail.com> wrote:
> "xiao" <littledd...@gmail.com> wrote in message
>
> news:39798cb6-9437-4373-b45d-1d0a3ab4dc85@s50g2000hsb.google groups.com...
>
>> Hi~ Everyone~
>> I got a question here about matrix,
>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>> out using IDL. I found the index of these numbers are different , just
>> like this :
>> C IDL
>> 1,1 ,1 1,2,2
>> 1, 2, 2 0, 2, 3
>> 1, 1,3 1, 0,3
>> 0,1,2 0, 0, 1
>> 0 ,0 ,3 1, 1, 0
>> 1,1 ,2 0 ,0 ,3
>> Do can have any ideas how can I put then in the right order in Idl?
>> Thank u~~ :)
>
> Perhaps test with a 2D array first, so you can see how the
> indices change in 2D, then 3D may be obvious.
>
> Cheers,
> bob
Goood Idea :)
|
|
|
|
Re: Matrix Transpose [message #61592 is a reply to message #61591] |
Tue, 22 July 2008 13:36  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
"xiao" <littledddna@gmail.com> wrote in message
news:39798cb6-9437-4373-b45d-1d0a3ab4dc85@s50g2000hsb.google groups.com...
> Hi~ Everyone~
> I got a question here about matrix,
> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
> out using IDL. I found the index of these numbers are different , just
> like this :
> C IDL
> 1,1 ,1 1,2,2
> 1, 2, 2 0, 2, 3
> 1, 1,3 1, 0,3
> 0,1,2 0, 0, 1
> 0 ,0 ,3 1, 1, 0
> 1,1 ,2 0 ,0 ,3
> Do can have any ideas how can I put then in the right order in Idl?
> Thank u~~ :)
Perhaps test with a 2D array first, so you can see how the
indices change in 2D, then 3D may be obvious.
Cheers,
bob
|
|
|
Re: Matrix Transpose [message #61594 is a reply to message #61592] |
Tue, 22 July 2008 13:03  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Jul 22, 2:52 pm, xiao <littledd...@gmail.com> wrote:
> On Jul 22, 2:41 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>
>
>> On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
>
>>> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>>> > Hi~ Everyone~
>>>> > I got a question here about matrix,
>>>> > I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>>> > out using IDL. I found the index of these numbers are different , just
>>>> > like this :
>>>> > C IDL
>>>> > 1,1 ,1 1,2,2
>>>> > 1, 2, 2 0, 2, 3
>>>> > 1, 1,3 1, 0,3
>>>> > 0,1,2 0, 0, 1
>>>> > 0 ,0 ,3 1, 1, 0
>>>> > 1,1 ,2 0 ,0 ,3
>>>> > Do can have any ideas how can I put then in the right order in Idl?
>>>> > Thank u~~ :)
>
>>>> look into TRANSPOSE() in the help system.
>
>>> I used that but seems still wrong :(
>
>> To make the mapping easier, can you make the C matrix 1...24 (or
>> 0...23). Then you might be able to figure out what's going on.
>
> I think the nidex for them are
> C: 18,23,20,7,4,19
> IDL: 23,12,16,2,17,4
> XIAO
That's only 6?
|
|
|
Re: Matrix Transpose [message #61595 is a reply to message #61594] |
Tue, 22 July 2008 12:52  |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Jul 22, 2:41 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
>
>
>
>> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>>> Hi~ Everyone~
>>>> I got a question here about matrix,
>>>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>>> out using IDL. I found the index of these numbers are different , just
>>>> like this :
>>>> C IDL
>>>> 1,1 ,1 1,2,2
>>>> 1, 2, 2 0, 2, 3
>>>> 1, 1,3 1, 0,3
>>>> 0,1,2 0, 0, 1
>>>> 0 ,0 ,3 1, 1, 0
>>>> 1,1 ,2 0 ,0 ,3
>>>> Do can have any ideas how can I put then in the right order in Idl?
>>>> Thank u~~ :)
>
>>> look into TRANSPOSE() in the help system.
>
>> I used that but seems still wrong :(
>
> To make the mapping easier, can you make the C matrix 1...24 (or
> 0...23). Then you might be able to figure out what's going on.
I think the nidex for them are
C: 18,23,20,7,4,19
IDL: 23,12,16,2,17,4
XIAO
|
|
|
Re: Matrix Transpose [message #61596 is a reply to message #61595] |
Tue, 22 July 2008 12:41  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Jul 22, 2:35 pm, xiao <littledd...@gmail.com> wrote:
> On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
>
>
>
>> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>>> Hi~ Everyone~
>>> I got a question here about matrix,
>>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>>> out using IDL. I found the index of these numbers are different , just
>>> like this :
>>> C IDL
>>> 1,1 ,1 1,2,2
>>> 1, 2, 2 0, 2, 3
>>> 1, 1,3 1, 0,3
>>> 0,1,2 0, 0, 1
>>> 0 ,0 ,3 1, 1, 0
>>> 1,1 ,2 0 ,0 ,3
>>> Do can have any ideas how can I put then in the right order in Idl?
>>> Thank u~~ :)
>
>> look into TRANSPOSE() in the help system.
>
> I used that but seems still wrong :(
To make the mapping easier, can you make the C matrix 1...24 (or
0...23). Then you might be able to figure out what's going on.
|
|
|
Re: Matrix Transpose [message #61597 is a reply to message #61596] |
Tue, 22 July 2008 12:35  |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Jul 22, 2:21 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
>
>> Hi~ Everyone~
>> I got a question here about matrix,
>> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
>> out using IDL. I found the index of these numbers are different , just
>> like this :
>> C IDL
>> 1,1 ,1 1,2,2
>> 1, 2, 2 0, 2, 3
>> 1, 1,3 1, 0,3
>> 0,1,2 0, 0, 1
>> 0 ,0 ,3 1, 1, 0
>> 1,1 ,2 0 ,0 ,3
>> Do can have any ideas how can I put then in the right order in Idl?
>> Thank u~~ :)
>
> look into TRANSPOSE() in the help system.
I used that but seems still wrong :(
|
|
|
Re: Matrix Transpose [message #61598 is a reply to message #61597] |
Tue, 22 July 2008 12:21  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Jul 22, 2:17 pm, xiao <littledd...@gmail.com> wrote:
> Hi~ Everyone~
> I got a question here about matrix,
> I created a 3 dimensional arrary which is 2*3* 4 in C and the read it
> out using IDL. I found the index of these numbers are different , just
> like this :
> C IDL
> 1,1 ,1 1,2,2
> 1, 2, 2 0, 2, 3
> 1, 1,3 1, 0,3
> 0,1,2 0, 0, 1
> 0 ,0 ,3 1, 1, 0
> 1,1 ,2 0 ,0 ,3
> Do can have any ideas how can I put then in the right order in Idl?
> Thank u~~ :)
look into TRANSPOSE() in the help system.
|
|
|