python读取las
python读取las
最近发现的可以读取las的python包
1. pylas
GitHub上作者在不断完善:
基础教程 of pylas: .html
安装:pip install pylas
使用example:
import pylas
# Directly read and write las
las = pylas.read('filename.las')
las = pylas.convert(las, point_format_id=2)
las.write('converted.las')
# Open data to inspect header and then read
with pylas.open('filename.las') as f:
if f.header.point_count < 10 ** 8:
las = f.read()
print(las.vlrs)
2. laspy
GitHub: laspy
基础教程(英文): tutotial of laspy
安装:
pip install laspy
或者
python setup.py build --user
python setup.py install --user
使用example:
from laspy.file import File
import numpy as np
inFile = File('/path/to/file.las', mode='r')
I = inFile.Classification == 2
outFile = File('/path/to/output.las', mode='w', header=inFile.header)
outFile.points = inFile.points[I]
outFile.close()
3. las
GitHub: las
安装:pip install las
使用example:
import las
log = las.LASReader('example1.las')
log.start
log.data
4. pylidar
PyLidar官网
conda config --add channels conda-forge
conda config --add channels rios
conda create -n myenv pylidar
conda activate myenv
conda install pynninterp
另外python-pcl的安装:python-pcl-github
最新文章
- AQS(AbstractQueuedSynchronizer)是什么?
- 《中国垒球》:跨界联赛·完美落幕
- Linux Crontab执行hadoop命令脚本失败
- [原创] 在MFC中大家都习惯用CStdioFile来处理文本文件,可是为什么CStdioFile不叫CTextFile?
- URL 过滤技术
- Messaging——WebSocket
- 【数字图像处理】秒懂傅里叶变换,仅需此文
- 如何去英文停用词
- 什么是MVC设计模式???
- 自媒体人如何定位?自媒体大号应该怎么去运营和发展
- 移动端横屏强制横屏
- PTA 乙级难点(全部)
- 局部变量与成员变量的·区别!
- Msfvenom使用指南
- tensorflow教程——tf.GraphKeys
- 迷宫寻宝(二)
- Redis管理
- MATLAB学习笔记 函数记录(三)
- subprocess模块call的用法
- db4o数据库的基本操作