Closed lucas-johnson closed 3 years ago
Minimal reproducible example
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las <- readLAS(LASfile)
sensor <- track_sensor(las, Roussel2020(pmin = 15))
ctg = readLAScatalog(LASfile)
opt_output_files(ctg) <- tempfile()
ctg <- normalize_intensity(ctg, range_correction(sensor, Rs = 2000))
#> Erreur : Invalid function provided as algorithm.
After investigation, what is received is an Extent
from raster
and the method normalize_intensity.LAScluster
is by-passed. This is weird. I'll investigate later. This will be fixed on Monday.
Thank you for looking into it so quickly! Looking forward to hearing back from you.
By the way, the methods does not require a buffer around the processed regions. Unless you want to process small chunks, you can write a simple for
loop to process each file independently. Just saying in case you want work today. You are not necessarily limited by this bug.
Yes - thanks for the advice. I've written my own .LAScatalog
and .LAScluster
functions to work with catalog_apply()
. This is working fine for now.
Fixed. Thank you for reporting
Current Behavior
normalize_intensity
works with a single las file, but fails with a las catalog. The error indicates that the algorithm provided (range_correction(sensor_positions, Rs = 2000)
) is invalid, but it is the same for the single las file and the las catalog.Desired Behavior
normalize_intensity()
should work on a las catalog just like it works on a single las file. Or, since the algorithm used in both cases is the same, the error should describe a different issue (perhaps with my las catalog).