Normalize LiDAR Data
Height-normalizes the point cloud with lidR::normalize_height: the terrain is interpolated from the
ground points (class 2) and subtracted from every point, so Z becomes height above ground. Noise
(class 7) is dropped when the tiles are read. The data must be ground-classified, so run
Ground Classify Using CSF first if it isn't.
| Parameter | Type | Required | Description |
|---|---|---|---|
in_las_folder |
directory | Yes | Folder containing the ground-classified LAS/LAZ tiles. |
out_folder |
directory (output) | Yes | Folder in which the Normalized_PC/ subfolder is created. |
style |
tin | idw | kriging |
Yes | Terrain interpolation algorithm: tin(), knnidw() or kriging(). The default is tin. An invalid value falls back to tin. |
tiling |
auto | by_file | tiling |
No | How the data is split into tiles (see Tiling). The default is auto. |
skip_existing |
bool | No | Set to True to resume a run that stopped: tiles whose outputs are complete are skipped (see Resuming a run). The default is False. |
processes |
int | No | Requested number of parallel workers. |
A tile whose ground points are fewer than 3 or lie on a line, such as a file of a few points all at Z = 0 and none of them ground, can't be normalized: it is left out, with no output file, and the run ends with a warning naming it (see Tiles left out).
Output: one <out_folder>/Normalized_PC/n_<tile>.las per input tile. Point
Generate CHM or DSM from LiDAR Data at the Normalized_PC
folder to get a CHM.
from beratools.modules.pc2products.rpy_normalized_PC import rpy_normalized_PC
rpy_normalized_PC(in_las_folder="tests/data/LiDAR",
out_folder="tests/data/LiDAR",
style="tin")
Command line
bt normalize # show the parameters
bt normalize --in_las_folder <las_dir> --out_folder <out_dir> --style tin