D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] lidar data

 

 > Just found this 
 > https://environment.data.gov.uk/DefraDataDownload/?Mode=survey and 
 > wondering if anyone knows of an open source program to view/manipulate 
 > the data

>From a brief look, it seems like the download format is asc, ascii encoded 
>co-ordinate data. This can be processed with Python but you might need to tweak, 
>depending on your use case: 
>https://stackoverflow.com/questions/30117567/how-to-read-extract-climate-model-data-in-asc-file-format-by-using-python

To import into Python - use a Jupyter Notebook:

import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
lidar_data = np.loadtxt('filename.asc', skiprows=6)
plt.imshow(lidar_data) # this will display the map data inline

This article might be useful:
https://towardsdatascience.com/how-to-automate-lidar-point-cloud-processing-with-python-a027454a536c
Depending on what you're trying to achieve.


-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq