title: find indices x,y of a matrix of specific values in python
body: <p>I convert a list of integers to a two dimensinal array like this: </p>
  
  <pre><code>data = numpy.array( l )
  shape = ( 10, 30 )
  data = data.reshape( shape )
  </code></pre>
  
  <p>I try to get the indices x,y of the matrix of the values that are bigger than some threshold and lower than some other threshold. </p>
  
  <p>I tried to make the next but it provides some errors: </p>
  
  <pre><code>data_indices = numpy.where(data&lt;=obj_value_max and data&gt;=obj_value_min) 
  </code></pre>
  
  <p>The error: </p>
  
  <blockquote>
    <p>ValueError: The truth value of an array with more than one element is
    ambiguous. Use a.any() or a.all()</p>
  </blockquote>