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

Home » Public Forums » archive » Writing an efficient array operation in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Writing an efficient array operation in IDL [message #74839] Wed, 02 February 2011 17:14
Rony K Varghese is currently offline  Rony K Varghese
Messages: 3
Registered: January 2011
Junior Member
Dear ALL,

Suppose, I have to create an output array B filled with value 8 as
follows, from the input 5x5 array A.

A = 0 0 4 0 0
0 4 0 4 0
4 0 0 0 4
0 4 0 4 0
0 0 4 0 0

B = 0 0 8 0 0
0 8 8 8 0
8 8 8 8 8
0 8 8 8 0
0 0 8 0 0

The logic is to fill the whole region bounded by value 4 in the input
array, with the value 8 in the output array.
How i can do this efficiently in IDL, like using array operations?
I need to apply for a large sized array.
Thanks in advance..

- Rony
[Message index]
 
Read Message
Previous Topic: Re: how to loop through data?
Next Topic: cosine weighting

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

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

Total time taken to generate the page: 0.00448 seconds