In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]>
wrote:
>
> Right. "3 < data" creates an array of 0s and 1s where the condition is
> false and true, respectively. You don't need where() at all.
>
> Try
>
> mask = logical_and(3 < data, data <= 7)
Great. That's exactly what I n
Jorl Shefner wrote:
Could anyone tell me the efficient way to do this? Extracting values
from an array for a single condition (say all values greater than 'x')
using 'where' and 'compress' is simple enough.
from Numeric import arange,where,compress
data= arange(10)
data= [0, 1, 2, 3, 4, 5,
Could anyone tell me the efficient way to do this? Extracting values
from an array for a single condition (say all values greater than 'x')
using 'where' and 'compress' is simple enough.
>>> from Numeric import arange,where,compress
>>> data= arange(10)
>>> data= [0, 1, 2, 3, 4, 5, 6, 7, 8,