Native Python ASPRS LAS read/write library
Project description
Laspy is a python library for reading, modifying and creating LAS LiDAR files.
Introduction
Laspy is a pythonic library for reading, modifying and writing LAS files. Support for LAZ is limited to reading LAS version 1.0-1.3 files. Laspy is compatible with Python 2.6+ and 3.5+.
Laspy includes a set of command line tools which can be used to do basic file operations like format translation and validation as well as comparing LAS files.
Example
A simple example to show the basics of Laspy. Here we create an output file that only consists of terrain points from the input file:
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()
API Documentation and tutorials are available at PythonHosted.
Installation
Laspy can be installed either with pip:
pip install laspy
or by running the setup script included in the source distribution:
python setup.py build python setup.py install
You may need to run these commands as root/administrator.
Laspy is only dependent on numpy and should therefore work on Linux, OS X and Windows as long as a working installation of numpy is available.
Changelog
Version 1.5.1
Bug fixes (#67, #75, b02b40900b5)
Allow usage of laszip-cli when working with LAZ files (#77)
Version 1.5.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file laspy-1.5.1.tar.gz
.
File metadata
- Download URL: laspy-1.5.1.tar.gz
- Upload date:
- Size: 487.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8768499aa429c028debdff67aa738bcf323ee777025528b842f36cc22d4ccf8d |
|
MD5 | 2d45d9ca61cf2ca2ab8872d7bb3a5ed4 |
|
BLAKE2b-256 | 9d43897a2aa5869c4bbc23916abfb4038c56ef2c72870b4d8b659113ebbf0d6f |
File details
Details for the file laspy-1.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: laspy-1.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 489.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9acef26a061bb74beb38f0f1f697415e4e91454bde8615c0b070c5d3755f3211 |
|
MD5 | 6ae03205305720ef92870e71e008aa25 |
|
BLAKE2b-256 | c5fc6f947bdeeb2182574be30d97ec5deb42a3d119b11d3f58d4f452f5637f3b |
File details
Details for the file laspy-1.5.1-py2-none-any.whl
.
File metadata
- Download URL: laspy-1.5.1-py2-none-any.whl
- Upload date:
- Size: 489.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7f1f6b5e97ab5eb760bb89916ef70546cf150ee9a006f963a39245d04d66d39 |
|
MD5 | f4810e343624f05769b94f0fce822a13 |
|
BLAKE2b-256 | 0dc88f81fae4a2e7528c08fc916a853f45087a596260daed0e12a51bc5e6a7bd |