Importing, Preprocessing, and Writing Data¶
To use pyforestscan, first import it in your Python project:
1 |
|
Then, you can use it to load point cloud data and extract forest structure metrics.
The following sections will provide an overview of usage of the major functions of pyforestscan. For a complete reference of all functions in pyforestscan, please check the API documentation. For comprehensive examples of these functions, please see the example jupyter notebooks.
Importing Point Cloud Data¶
pyforestscan supports reading from the following point cloud data formats:
- las
- laz
- copc
- ept
and reading point clouds is done using the read_lidar
function:
1 2 3 4 5 |
|
Preprocessing Point Cloud Data¶
pyforestscan provides some basic functionality to help preprocess point cloud data. Many of these functions are wrapped PDAL routines. For example, to remove outliers and classify ground points:
1 2 3 4 |
|
Exporting Point Clouds¶
pyforestscan supports exporting processed point clouds to las and laz formats. To export a point cloud as a LAZ file:
1 2 3 |
|