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

Home » Public Forums » archive » Re: Converting a 1D index into its original 2D index?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Converting a 1D index into its original 2D index? [message #68739 is a reply to message #68729] Fri, 20 November 2009 05:07 Go to previous messageGo to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
Chris Chronopoulos wrote:
> Hello,
>
> I'm looking for the indeces of a 2D array which satisfy a logical
> condition, so naturally I tried to use WHERE. However, I found that it
> returns the indeces in 1D form. This is fine for subscripting, but
> actually I want to interpret the index values themselves. Is there a
> good way to convert these back to 2D format, or otherwise get around
> the problem of WHERE confounding my indeces?
>
> Thanks,
> Chris


Chris,

see ARRAY_INDICES

Jean
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Cubic root finding on a grid
Next Topic: Reading IDL save files into Python

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

Current Time: Wed Oct 08 17:44:19 PDT 2025

Total time taken to generate the page: 0.00397 seconds