You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Calculate Forest Structural Metrics from lidar point clouds in Python**
11
+
3
12

4
13
5
14
## Overview
6
15
7
-
PyForestScan is a Python library designed for analyzing and visualizing forest structure using airborne
8
-
3D point cloud data. The library helps derive important forest metrics such as Canopy Height,
9
-
Plant Area Index (PAI), Canopy Cover, Plant Area Density (PAD), and Foliage Height Diversity (FHD).
16
+
PyForestScan is a Python library designed for analyzing and visualizing forest structure using airborne 3D point cloud data. The library helps derive important forest metrics such as Canopy Height, Plant Area Index (PAI), Canopy Cover, Plant Area Density (PAD), and Foliage Height Diversity (FHD).
10
17
11
18
## Features
12
19
13
20
-**Forest Metrics**: Calculate and visualize key metrics like Canopy Height, PAI, PAD, and FHD.
14
-
-**Airborne Data Compatibility**: Supports LiDAR and Structure from Motion (SfM) data from drones and UAVs.
15
-
-**Visualization**: Create 2D and 3D visualizations of forest structures.
21
+
-**Large Point Cloud Support**: Utilizes efficient data formats such as EPT for large point cloud processing.
22
+
-**Visualization**: Create 2D and 3D visualizations of forest structure and structural metrics
16
23
-**Extensibility**: Easily add custom filters and visualization techniques to suit your needs.
17
24
18
25
## Installation
@@ -26,27 +33,34 @@ pip install pyforestscan
26
33
### Dependencies
27
34
28
35
> [!IMPORTANT]
29
-
> You MUST have installed PDAL to use PyForestScan. If you use conda to install PDAL, make sure you install pyforestscan in the conda environment with PDAL. See https://pdal.io/en/latest/ for more information.
36
+
> You MUST have installed both PDAL and GDAL to use PyForestScan. If you use conda to install PDAL, make sure you install pyforestscan in the conda environment with PDAL (and GDAL if using conda). See https://pdal.io/en/latest/ for more information on PDAL and https://gdal.org/en/stable/.
30
37
31
38
- PDAL >= 2.7
39
+
- GDAL >= 3.5
32
40
- Python >= 3.10
33
41
34
42
## Quick Start
35
43
36
-
### Derive Forest Metrics from Airborne Data
44
+
### Calculate, Export, and Plot Plant Area Index
45
+
46
+
The following snippet shows how you can load a las file, create 5m by 5m by 1m voxels with points assigned to them, and generate plant area density at 1m layers and plant area index for each 5m grid cell before writing the resulting PAI layer to a geotiff and plotting.
37
47
38
-
The following snipped shows how you can load a las file, create 25m by 25m by 5m voxels with points assigned to them, and generate plant area density at 5m layers and plant area index for each 25m grid cell before writing the resulting PAI layer to a geotiff.
39
48
```python
40
49
from pyforestscan.handlers import read_lidar, create_geotiff
41
50
from pyforestscan.calculate import assign_voxels, calculate_pad, calculate_pai
0 commit comments