Ross Williamson wrote:
> Hi All
>
> I want to get out the index of values in an array. Normally WHERE
> works fine for one conditional statement but it does not work for two
> - i.e.
>
> a = array([0,1,2,3,4,5,6,7,8,9])
>
> ind, = where(a > 5)
>
> Works fine but if I wanted:
>
> ind = wher
Hi All
I want to get out the index of values in an array. Normally WHERE
works fine for one conditional statement but it does not work for two
- i.e.
a = array([0,1,2,3,4,5,6,7,8,9])
ind, = where(a > 5)
Works fine but if I wanted:
ind = where((a > 5) and (a<8))
Then it bugs out with the f