title: Python: Filter List of Coordinates
body: <p>Hello i have the following problem. I have a list of tuples, where each tuple consists of 3D coordinates. Every coordinate is at another time step. They are really close together. Is there a possibiity to maniupulate/filter the list, so that there are only coordinates which have for example a distance of 1?. So for example i have </p>
  
  <pre><code>list1=[(x1,y1,z1),(x2,y2,z2),(x3,y3,z3),(x4,y4,z4),(x5,y5,z5),(x6,y6,z6) 
  </code></pre>
  
  <p>and the filter would produce </p>
  
  <pre><code>list2=[(x1,y1,z1),(x3,y3,z3),(x4,y4,z4),(x6,y6,z6)], 
  </code></pre>
  
  <p>because <code>(x1,y1,z1),(x2,y2,z2)</code> and <code>(x4,y4,z4),(x5,y5,z5)</code> are too close.</p>