title: How to create a grid from LiDAR points (X,Y,Z) with GDAL python?
body: <p>I'm new really to python programming, and I was just wondering if you can create a regular grid of 0.5 by o.5 m of resolution using LiDAR points. </p>
  
  <p>My data are in LAS format (reading with from liblas import file as lasfile) and they have the following format: X,Y,Z. Where X and Y are coordinates.</p>
  
  <p>The points are randomly positioned and some pixel are empty (NAN value) and in some pixel there are more of one points. Where there are more of one point, I wish to obtain a mean value. In the end i need to save the data in a TIF format or Ascii format.</p>
  
  <p>I am studying osgeo module and GDAL but I honest to say that i don't know if osgeo module is the best solution.</p>
  
  <p>I am really glad for help with some code that i can study and implement,</p>
  
  <p><strong>Thanks in Advance for the help, I really need</strong>. </p>
  
  <p>I don't know the best way to get a grid with these parameters.</p>