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

Home » Public Forums » archive » Re: Subscript arrays for ROIs
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: Subscript arrays for ROIs [message #45240] Thu, 18 August 2005 07:54
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
pravesh.subramanian@gmail.com writes:

> SOme of the IDL functions return 1-D array of subscripts for the
> selected regions. Just as arr[1,1] = arr[3]
>
> Many of the IDL functions use X and Y coords explicitly. So it will not
> accept those returned by the aforementioned functions.
>
> Whats the way out (we could write a formula to convert the subscripts
> to x and y form)?

We could (in fact you could find the formulas on my web page),
but it is easier to use ARRAY_INDICES.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Subscript arrays for ROIs
Next Topic: Import .csv files

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

Current Time: Fri Oct 10 20:06:51 PDT 2025

Total time taken to generate the page: 0.40063 seconds