LasSlicer¶
LasSlicer cuts a point cloud into horizontal slices, at regular elevations, or at regular heights over the ground with an elevation model, and writes each slice as a raster of the cells with its points, or as a chart of them. A slice at a given height over the ground shows what is there: the stems near the ground, the crowns higher up.
Details¶
The slices are horizontal layers of the given thickness, with their centers on the multiples of the interval between the lowest and the highest point: with an interval of 1 m, at 1, 2, 3 m and so on. Without the dtm the values are the elevations of the points, with it their heights over the ground, so that each slice follows the terrain, as a layer of the forest at a given height.
A slice keeps the points with a value over its lower bound and up to its upper bound. With a thickness smaller than the interval there are gaps between the slices, with a larger one the slices overlap and a point can be in two of them.
In raster mode each slice is a GeoTIFF, slice_<center>.tif, on a grid of the given resolution over the bounds of the data: the cells with at least one point of the slice have the center of the slice as value, the others no value. In chart mode each slice is a png image, slice_<center>.png, with the points of the slice in plan view. The slices with no points are not written.
Parameters¶
Cuts a point cloud in horizontal slices, at regular elevations or heights over the ground, and writes a raster or a chart of the points of each slice.
Toolbox folder: Lesto › utilities
Status: Draft
Keywords: slices, lidar, las
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.utilities.LasSlicer
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
The lidar data: a las file, the index file of a folder of las files created by LasIndexer or a las database. |
||
|
raster file |
An optional dtm: if given, the slices are cut at heights over the ground instead of elevations. |
||
|
double |
m |
|
The distance between the centers of the slices, which are multiples of it. |
|
double |
m |
|
The slice thickness. |
|
double |
m |
|
With the dtm, the points not higher than this over the ground are left out. |
|
String |
|
Type of output to use. Allowed values: |
|
|
double |
m |
|
The resolution of the rasters, in raster mode. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output folder |
The folder into which the slices are written, one file each, named after the center of the slice. |
Example¶
Slices of 1 m every 5 m of height over the ground of the sample survey, as rasters of 0.5 m, in the folder las_slices:
import org.hortonmachine.lesto.modules.utilities.LasSlicer
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// slices of 1 m every 5 m of height over the ground, as rasters of 0.5 m
var slicer = new LasSlicer()
slicer.inLas = folder + "uni_bz_plot777.las"
slicer.inDtm = folder + "dtm_777.tif"
slicer.pInterval = 5.0
slicer.pThickness = 1.0
slicer.pGroundThreshold = 0.5
slicer.pMode = "raster"
slicer.pResolution = 0.5
slicer.outFolder = folder + "las_slices"
slicer.process()
The slice between 14.5 and 15.5 m over the ground, in red over the hillshade of the elevation model: rings and patches of a few meters, the crowns of the trees taller than 15 m, mostly in the north of the plot.¶
The slices are slice_5.tif, slice_10.tif, slice_15.tif and slice_20.tif.