Use case · Stream buffers
Find where to plant trees along your streams.
Trees along a stream shade the water, hold the banks and filter runoff. Cairn maps tree canopy on every stream bank from lidar and aerial photos, finds the gaps, and turns the ones you choose into a planting plan.

How it works
From a watershed to a planting plan in four steps.
The stream buffers analysis answers three questions for every bank of every stream in your area.
- GapsWhich stream banks have less than half tree canopy?
- Room to plantHow much low vegetation is there to plant in each gap?
- Second lookWhich detections should a person check before relying on them?
- Step 1 of 4
Pick the area and the data
Check the areas to include, pick watersheds on the map, or draw your own. Use public lidar, aerial photos and stream lines, or upload yours. You can mix them.

- Step 2 of 4
Run it
The run log says what each step did, in plain words: the streams found, the lidar and photo dates, the canopy mapped and the buffers scored. This 54 square mile watershed took 4 minutes.

- Step 3 of 4
Review the gaps
Each bank shows its canopy share, what covers the rest and any flags. Add it to the planting list, skip it, or mark the detection wrong. Cairn drafts; you decide.

- Step 4 of 4
Take the plan into the field
The work plan groups banks next to each other into sites, shows where they are, and gives each site a map and a table. Print it or save it as a PDF. The list also downloads as CSV or GeoJSON.

Screenshots from a real run: the Streets Run-Monongahela River watershed near Pittsburgh, with public lidar, aerial photos and stream lines.
- Step 1 of 4
Pick the area and the data
Check the areas to include, pick watersheds on the map, or draw your own. Use public lidar, aerial photos and stream lines, or upload yours. You can mix them.
- Step 2 of 4
Run it
The run log says what each step did, in plain words: the streams found, the lidar and photo dates, the canopy mapped and the buffers scored. This 54 square mile watershed took 4 minutes.
- Step 3 of 4
Review the gaps
Each bank shows its canopy share, what covers the rest and any flags. Add it to the planting list, skip it, or mark the detection wrong. Cairn drafts; you decide.
- Step 4 of 4
Take the plan into the field
The work plan groups banks next to each other into sites, shows where they are, and gives each site a map and a table. Print it or save it as a PDF. The list also downloads as CSV or GeoJSON.

Stream buffers
Five layers, from stream lines to gaps in the trees.
The stream buffers analysis stacks public data to find banks without trees. This is a square about 1,000 ft across on Glass Run, near Pittsburgh, from a real run. Read the tutorial
- Layer 1 of 5
Start with the stream lines
Streams come from the USGS National Hydrography Dataset, or from your own file. Each one is cut into reaches about 100 ft long. This square has 15.

- Layer 2 of 5
Measure height with lidar
Lidar gives the height of whatever stands above the ground. Lighter is taller. This survey was flown from November 2019 to February 2020.

- Layer 3 of 5
Check the photo for green
Height can't tell a tree from a roof. An aerial photo with a near-infrared band shows which tall things are plants. This one was taken May 9, 2022.

- Layer 4 of 5
Map the tree canopy
Canopy is anything at least 10 ft tall that is also green. A building is tall but not green, so it doesn't count.


- Layer 5 of 5
Score each bank
Each bank of each reach gets a 35 ft buffer, scored by how much of it is under canopy. Of the 30 here, 14 are gaps: less than half canopy.
- Under 25% canopy: 10 buffers
- 25–50%: 4
- 50–75%: 7
- 75% or more: 9


- Layer 1 of 5
Start with the stream lines
Streams come from the USGS National Hydrography Dataset, or from your own file. Each one is cut into reaches about 100 ft long. This square has 15.
- Layer 2 of 5
Measure height with lidar
Lidar gives the height of whatever stands above the ground. Lighter is taller. This survey was flown from November 2019 to February 2020.
- Layer 3 of 5
Check the photo for green
Height can't tell a tree from a roof. An aerial photo with a near-infrared band shows which tall things are plants. This one was taken May 9, 2022.
- Layer 4 of 5
Map the tree canopy
Canopy is anything at least 10 ft tall that is also green. A building is tall but not green, so it doesn't count.
- Layer 5 of 5
Score each bank
Each bank of each reach gets a 35 ft buffer, scored by how much of it is under canopy. Of the 30 here, 14 are gaps: less than half canopy.
- Under 25% canopy: 10 buffers
- 25–50%: 4
- 50–75%: 7
- 75% or more: 9

What you get
Canopy, gaps and a list you can act on.
One run scores both banks of every stream reach in the area.
- Canopy at three buffer widths
- Every bank is scored at 35, 50 and 100 ft from the stream line. Switch widths and the numbers and the map follow.
- Gaps, ranked by room to plant
- A gap is a bank with less than 50% canopy. The list starts with the gaps that have the most low vegetation, such as lawn or meadow.
- Flags for a second look
- Close calls, thin lidar, tall things that aren't green, and buffers that are mostly water are marked for a person to check.
- Files in open formats
- Every buffer as GeoPackage, shapefile, GeoParquet and CSV. Canopy height and land cover as GeoTIFF. The planting list as CSV or GeoJSON.

The data
Public data, or your own.
Each of the three inputs can be public or yours, and you can mix them.
Public
- Lidar
- USGS 3DEP
- Aerial photos
- USDA NAIP, with near-infrared
- Stream lines
- USGS National Hydrography Dataset
Or your own
- Lidar
- LAS or LAZ
- Orthophoto
- GeoTIFF
- Stream lines
- GeoJSON, GeoPackage or shapefile
Limits
What to keep in mind.
Every run lists these next to its results.
- Dates
- Results show the ground as of the lidar and photo dates, not today. Each run names both.
- Stream lines, not banks
- Buffers are measured from the stream line. Wide rivers and lakes aren't scored.
- Plantable is a starting point
- It means low vegetation in the buffer. Ownership, slope and utilities aren't checked.
- Check a sample
- Before you rely on the totals, look at a few buffers you know on the ground.
Try it on one of your watersheds.
Start a project, pick a watershed or draw your own area, and run the analysis. The tutorial walks through a full run first if you'd rather read.