Re: Converting a 1D index into its original 2D index? [message #68729] |
Fri, 20 November 2009 18:44 |
Chris Chronopoulos
Messages: 4 Registered: July 2009
|
Junior Member |
|
|
On Nov 20, 5:07 am, jeanh
<jghasb...@DELETETHIS.environmentalmodelers.ANDTHIS.com> wrote:
> 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
Ah, thanks guys! Just what I was looking for.
_chris
|
|
|
Re: Converting a 1D index into its original 2D index? [message #68739 is a reply to message #68729] |
Fri, 20 November 2009 05:07  |
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
|
|
|
|