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

Home » Public Forums » archive » Re: How to create a 2D mask that automatically half�san irregularly shaped 2D array from top to bottom?
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
Re: How to create a 2D mask that automatically half�san irregularly shaped 2D array from top to bottom? [message #78378] Fri, 18 November 2011 07:28
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <8c3834d3-30ca-49a8-9d0e-6bf9d97c0c9f@l23g2000pro.googlegroups.com>,
"Dr G." <gjhay@ucalgary.ca> wrote:

> 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

What is it that you want? The index of the middle 1 in each row?

Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: new window in coyote graphics
Next Topic: Coyote Library Updates: Device Independent Graphics Windows

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

Current Time: Wed Oct 08 11:39:22 PDT 2025

Total time taken to generate the page: 0.00559 seconds