title: How to unpack/convert binary data in a file into readable values?
body: <p>I have a .pcd file and when I open it with i text editor, i see this:</p>
  
  <pre><code># .PCD v0.7 - Point Cloud Data file format
  VERSION 0.7
  FIELDS x y z _
  SIZE 4 4 4 1
  TYPE F F F U
  COUNT 1 1 1 4
  WIDTH 246564
  HEIGHT 1
  VIEWPOINT 0 0 0 1 0 0 0
  POINTS 246564
  DATA binary
  É,&gt;  Ì= €¿  €?  .&gt;  Ì=ÃY¿  €?  .&gt;Ì~Í= €¿  €?  2&gt;  Ì=5a¿  €?  2&gt;øuÍ= €¿  
  €?  6&gt;  Ì=Ûv¿  €?  6&gt;²vÌ= €¿  €?¹“6&gt;  Ì= €¿  €?CÊ"&gt;  Ä= €¿  €?  &amp;  Ä=…¿
  ......
  </code></pre>
  
  <p>The document of this format is here: <a href="http://pointclouds.org/documentation/tutorials/pcd_file_format.php" rel="nofollow noreferrer">http://pointclouds.org/documentation/tutorials/pcd_file_format.php</a></p>
  
  <p>Example from the documents:</p>
  
  <pre><code># .PCD v.7 - Point Cloud Data file format
  VERSION .7
  FIELDS x y z rgb
  SIZE 4 4 4 4
  TYPE F F F F
  COUNT 1 1 1 1
  WIDTH 213
  HEIGHT 1
  VIEWPOINT 0 0 0 1 0 0 0
  POINTS 213
  DATA ascii
  0.93773 0.33763 0 4.2108e+06
  0.90805 0.35641 0 4.2108e+06
  0.81915 0.32 0 4.2108e+06
  </code></pre>
  
  <p>Now I want to convert these binary datas into numbers like in the documents. As I see I can use python struck.unpack but I couldn't figure out how to do that.</p>