Treebeard is a project for identifying canopy gaps/tree gaps for foresters, developed during Earth Data Analytics Professional Graduate Certificate Program at CU Boulder by these students: Ed Chan, Chris Griego, and Peter Kobylarz.
- Project Background
- Objectives
- Data Source
- Project Workflow
- Results
- How to Run Jupyter Notebooks
- How to Run the QGIS Plug-in
- Appendix
The Watershed Center is interested in identifying canopy gaps and binning them by size (1/8 acre, 1/4 acre, 1/2 acre, and 1+ acre).
To quote the forester Eric Frederick:
Forest structural diversity is a key component of forest ecosystem health, as forests that contain structural heterogeneity are critical for providing wildlife habitat and can be more resilient to natural disturbances. Being able to quantify forest structural heterogeneity is important to be able to assess the need for potential management actions, and it allows us to ensure that our forest management projects are creating structural heterogeneity rather than homogeneity. This tool will allow us to better determine the need for canopy gaps in project areas, and it will allow us to more accurately pinpoint beneficial locations for creating canopy gaps of various sizes when implementing projects.
- Develop image segmentation method
- Develop LIDAR processing method
- Develop QGIS plug-in
- Shape files representing study areas from the Watershed Center
- It's already part of the repo at
assets/
which you get from cloning this repository - You can prepare your own study area shapefiles and specify them as inputs:
- In
treebeard_image_segmentation.ipynb
, update these variables:STUDY_AREA
andAOI_SHAPEFILES
. - In
treebeard_lidar.ipynb
, make sure to include the column calledProj_ID
that contains values of study area names.
- In
- It's already part of the repo at
- Aerial Data: "Denver Regional Aerial Photography Project (DRAPP)", Denver Regional Counsel of Governance, 2020.
- LIDAR Data: "DRCOG LIDAR QL2 INDEX IN CO SP NORTH 2020", Denver Regional Counsel of Governance.
Notes:
- Beware the notebooks will download these aerial imagery tiles and LIDAR tiles for you. Please review the download destinations accordingly for your needs.
- This tool should work with other imagery and LIDAR data sources. You will need to adjust the code to point to the download URLs for index layers and tile downloads.
This workflow uses the EarthyPy libary. This library has a default data directory, and the sub directories set up used in the code have the EarthPy directory as parent. You can change your parent directory by adjusting the "data_dir" path variable near the beginning of the notebooks. The default folder path is:
Windows
C:\Users\[username]\earth-analytics\data
MacOS
/Users/[username]/earth-analytics/data
The results from image segmentation and LIDAR processing yield similar outcomes except the highlighted areas:
- Set up the environment / Update environment
- Run
treebeard_image_segmentation.ipynb
- Run
treebeard_lidar.ipynb
Please refer to the README file at qgis_build/treebeard/README.md
.
- Install Conda
conda activate base
conda install -c conda-forge mamba
mamba env create -f environment.yml
conda activate treebeard
conda activate treebeard
mamba env update -f environment.yml
Here are illustrations of image segmentation: