title: Array of xyzc values , Find out if 3rd column has any rows with c value equal to 1, or not zero
body: <p>I have a selection (i.e a neighborhood ) of points </p>
  
  <p>Each point has a XYZC value. Where C is 1 or 0.</p>
  
  <p>If any of the points has a C value of 1 I want to assign the c value of my centre point to be 0.</p>
  
  <p>If all of the points have a C value of 0 I want to assign the c value of my centre point to be 1.</p>
  
  <pre><code>    n=np.zeros((1,1))
  
      for b in range(0,6):
          bb = coordlist[b][4] 
          if bb==1:
              break
          n+=bb
  
      if n&lt; 1:
          in_cloud[point][4] =1    
  </code></pre>
  
  <p>Is this the quickest and best way of doing this? I am going to be doing it for up to 20/30 points in neighborhood.</p>