/treebeard

Identifying canopy gaps/tree gaps for foresters

Primary LanguageJupyter NotebookMIT LicenseMIT

treebeard

DOI

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.

Quick Links

Project Background

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.

Objectives

  1. Develop image segmentation method
  2. Develop LIDAR processing method
  3. Develop QGIS plug-in

Data Source

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.

Output Folder Location

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

Project Workflow

Treebeard Project Workflow

Results

The results from image segmentation and LIDAR processing yield similar outcomes except the highlighted areas:

Compare Results

How to Run Jupyter Notebooks

  1. Set up the environment / Update environment
  2. Run treebeard_image_segmentation.ipynb
  3. Run treebeard_lidar.ipynb

How to Run the QGIS Plug-in

Please refer to the README file at qgis_build/treebeard/README.md.

Appendix

Pre-requisites

Setup Instructions

Set up Environment (First Time)

conda activate base
conda install -c conda-forge mamba
mamba env create -f environment.yml
conda activate treebeard

Update Environment

conda activate treebeard
mamba env update -f environment.yml

Image Segmentation Method

Here are illustrations of image segmentation:

Image Segmentation 01 Image Segmentation 02 Image Segmentation 03 Buffer Area Bin

LIDAR Processing Method

Here are illustrations of LIDAR processing: LIDAR Processing 01 LIDAR Processing 02