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

Home » Public Forums » archive » Re: Getting x and y positions from a mask
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: Getting x and y positions from a mask [message #77086] Fri, 29 July 2011 04:23
S. Murray is currently offline  S. Murray
Messages: 6
Registered: July 2010
Junior Member
Oops, apologies for the double post!

> I'd do something like this:
> indices = Where(mask EQ 1)
> xy = Array_Indices(mask, indices)
> x = Reform(xy[0,*])
> y = Reform(xy[1,*])
> Cheers,
> David

The above works perfectly, thanks a million!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Getting x and y positions from a mask
Next Topic: Re: PARTVELVEC procedure not overplotting despite setting over keyword, Trouble with OPLOT

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

Current Time: Wed Oct 08 13:32:15 PDT 2025

Total time taken to generate the page: 0.00528 seconds