Builds a height surface from the point cloud with lidR::rasterize_canopy. The tool decides what to
produce by calling detect_normalized, which reads the first LAS/LAZ file in the folder:
If the mean |Z| of the ground points (class 2) is below 1, the data counts as
height-normalized and the tool produces a CHM.
Otherwise, including when there are no ground points, the tool produces a DSM.
Parameter
Type
Required
Description
in_las_folder
directory
Yes
Folder containing the input LAS/LAZ tiles.
out_folder
directory (output)
Yes
Folder for the output rasters.
style
tin | pitfree
Yes
Surface algorithm. The default is tin. An invalid value falls back to tin.
fromberatools.tools.rpy_CHM_DSM_byimportrpy_chm_dsm# DSM from the original tilesrpy_chm_dsm(in_las_folder="tests/data/LiDAR",out_folder="tests/data/LiDAR/Raster_Output",style="pitfree")# CHM from the output of Normalize LiDAR Datarpy_chm_dsm(in_las_folder="tests/data/LiDAR/Normalized_PC",out_folder="tests/data/LiDAR/Raster_Output",style="tin")
Command line
btchm_dsm# show the parameters
btchm_dsm--in_las_folder<las_dir>--out_folder<out_dir>--stylepitfree