High-level python library to manipulate LIDAR raster and point cloud.
Install and update using pip:
pip install lidario
Lidario depends on Rasterio, which depend on many other Python and C libraries. In case of problem, please refer to the Rasterio installation instructions.
lidario.Translator transform a given data structure (ie: a raster), to a point cloud (ie: a numpy array).
import lidario as lio
# Translate a raster to a numpy point cloud.
translator = lio.Translator("geotiff", "np")
point_cloud = translator.translate("/path/to/file.tif")
# point_cloud: np.array([...])
In this example, we initialize a Translator object to convert a geotiff file into a numpy array cloud point. Then, we use this object to effectively convert a tif file.
Transform Rasterio mask and GeoTiff files into numpy array, pandas dataframe, CSV, PLY, and many other format:
Read the documentation on ReadTheDocs.io.
Joffrey Bienvenu, Machine Learning student @ Becode.
- Website: https://joffreybvn.be
- Twitter: @joffreybvn
- Github: https://github.com/Joffreybvn