Closed flottsam closed 1 year ago
lidR
does not include smart pipe that optimally combine commands. What you wrote actually is equivalent to:
opt_output_files(ctg) <- here("plot_clips_voxelized/{ORIGINALFILENAME}_5cm")
opt_independent_files <- TRUE
library(future)
plan(multisession, workers = 12L)
# creates plot_clips_voxelized/plot_A_1_5cm
gnd = classify_ground(ctg, csf(rigidness=3L))
# creates plot_clips_voxelized/plot_A_1_5cm_5cm
# because the file template has been inherited from `ctg`
nor = normalize_height(gnd, knnidw())
# `nor` being a LAScatalog this should not work
# because filter_poi() does not apply to a LAScatalog
pos = filter_poi(nor, Z >= 0)
vox = voxelize_points(pos, res=0.05)
thnk you
I'm trying to understand why this chain of functions would write two files instead of a single file as expected.
The expected output is: plot_A_1_5cm.las But I'm getting two files: plot_A_1_5cm.las plot_A_1_5cm_5cm.las