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

Home » Public Forums » archive » Array elements extraction
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
Array elements extraction [message #67796] Sat, 29 August 2009 09:21
moxament is currently offline  moxament
Messages: 26
Registered: April 2008
Junior Member
Dear All,

I have a question in IDL and I need your help please!! The question is
the following:

Let’s say that we have the following three-dimensional array I = array
(6, 4, 3):

3 8 9 2 9 4 2 4 1 8 9 2 6 3 6 3 4 5
2 4 8 2 1 9 3 2 3 3 9 1 2 3 1 1 9 0
2 1 3 2 3 2 2 9 0 3 0 1 3 5 2 9 9 8
4 5 1 9 2 2 2 9 3 0 2 2 2 4 8 2 9 3

I need to move a 3x3 window and extract the elements of I in each step
of the moving window in a new array. For example, when the window is
on the element (2, 1, 3) the extracted array is:

M = 8 4 3
9 1 6
2 8 3
4 2 3
8 3 1
2 3 1
1 9 5
3 0 2
2 3 9

For each step the needed number = determinant(transpose(m) # m) which
will be stored in a new array D. Attention should be paid when the
window moves on the edges of the array I.

Thank you in advance!!

MD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Compound Widgets
Next Topic: Re: Colour bars display black?

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

Current Time: Wed Oct 08 19:57:58 PDT 2025

Total time taken to generate the page: 0.00604 seconds