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

Home » Public Forums » archive » How to create a 2D mask that automatically half’s an irregularly shaped 2D array from top to bottom?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to create a 2D mask that automatically half’s an irregularly shaped 2D array from top to bottom? [message #78380] Fri, 18 November 2011 07:04 Go to previous message
Dr G. is currently offline  Dr G.
Messages: 2
Registered: November 2011
Junior Member
Hi Folks,

Q: Can the IDL geometry geniuses out there think of a fast way to
create a 2D mask that automatically half’s an irregularly shaped 2D
array along its x axis (i.e., from top to bottom) Eg:

[0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0]
[0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0]
[0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0]
[0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0]
[0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0]
[0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0]
[0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0]
[0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0]
[0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0]
[0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0]
[0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0]
[0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0]

Merci.

Gf
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Pointers and Structures and Loops - oh my!
Next Topic: Fast computation of pairwise array element differences

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

Current Time: Fri Oct 10 07:42:16 PDT 2025

Total time taken to generate the page: 0.80248 seconds