LasHeightDistribution

LasHeightDistribution maps the vertical structure of a forest. In each tile of a grid it looks at how the heights of the points over the ground are distributed: each peak of the distribution is a layer of the vegetation. Each cell of the elevation model is then classified as no forest, single layer, single layer of variable height, as trees of different heights side by side, or double layer, as trees over a lower layer.

Details

In each tile, the heights over the ground of the points higher than the threshold are counted in bins of 0.5 m. The counts are smoothed with a gaussian kernel of a radius of 12 bins, 6 m, and the ranges of heights where their second derivative is negative, the peaks of the distribution, are the layers of the vegetation of the tile.

Each cell of the elevation model is then classified by the layers that have points in it:

Category

Cell

0 no forest

no points in any layer

1 single layer

points in one layer

2 single layer of variable height

points in more layers, in a tile whose layers are side by side, as trees of different heights

3 double layer

points in more layers, in a tile where two consecutive layers overlap, as trees over a lower layer: the cells with points in both are more than the given percentage of the cells of one of them

The tiles are snapped on the cells of the elevation model, so that each cell belongs to a single tile. The cells must be large enough to contain enough points of each layer: with a few points per square meter, use an elevation model of 2 m or more, resampling it if needed. The tiles must be large enough to have a meaningful height distribution, as some tens of meters.

Parameters

Maps the vertical structure of a forest from the height distribution of the lidar points: no forest, single layer, single layer of variable height or double layer.

Toolbox folder: Lesto › filter
Status: Experimental
Keywords: las, distribution
Authors: Andrea Antonello
Class: org.hortonmachine.lesto.modules.filter.LasHeightDistribution

Inputs

Parameter

Type

Unit

Default

Description

inIndexFile

LAS file

The lidar data: a las file, the index file of a folder of las files created by LasIndexer or a las database.

inDem

raster file

The elevation model of the ground: the heights of the points are taken over it, and the categories are mapped on its cells.

inVector

vector file

The tiles to analyze, as polygons with an id: the height distribution is analyzed in each tile.

pThres

double

m

2.0

The minimum height of the points over the ground: the lower points, as the ground and the low vegetation, are not used.

pOverlapPerc

double

%

80.0

The minimum percentage of the cells of a layer that have points also in the next layer, to call the forest of the tile double layered.

fId

String

id

The field of the id of the tiles.

Outputs

Parameter

Type

Unit

Description

outCats

output file

The raster of the categories of the forest: 0 no forest, 1 single layer, 2 single layer of variable height, 3 double layer.

Example

The sample plot divided in 3 x 3 tiles of 20 m by GridsGenerator, with the categories mapped on the elevation model resampled to 2 m by RasterResolutionResampler, so that each cell contains enough points:

import org.hortonmachine.lesto.modules.filter.LasHeightDistribution
import org.hortonmachine.modules.GridsGenerator
import org.hortonmachine.modules.RasterResolutionResampler

// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"

// the categories are mapped on the cells of the elevation model: 2 m cells
// contain enough points to tell the layers apart
var resampler = new RasterResolutionResampler()
resampler.inGeodata = folder + "dtm_777.tif"
resampler.pXres = 2.0
resampler.pYres = 2.0
resampler.outGeodata = folder + "dtm_777_2m.tif"
resampler.process()

// the tiles to analyze: 3 x 3 squares of 20 m over the plot, with an id field
var grid = new GridsGenerator()
grid.inRaster = folder + "dtm_777.tif"
grid.pRows = 3
grid.pCols = 3
grid.pWidth = 20.0
grid.pHeight = 20.0
grid.outMap = folder + "forest_tiles.shp"
grid.process()

var distribution = new LasHeightDistribution()
distribution.inIndexFile = folder + "uni_bz_plot777.las"
distribution.inDem = folder + "dtm_777_2m.tif"
distribution.inVector = folder + "forest_tiles.shp"
distribution.fId = "id"
distribution.outCats = folder + "forest_layers.tif"
distribution.process()
The structure of the forest of the plot: mostly a single layer, no forest along the road at the north-west corner and in some gaps, a double layer in a few cells at the north-west and south-west corners.

The structure of the forest of the plot: mostly a single layer, no forest along the road at the north-west corner and in some gaps, a double layer in a few cells at the north-west and south-west corners.