Open GeoKL opened 2 years ago
The error occurs at the line?
plot(las, bg = "darkblue", color = "Z",backend="rgl")
if so just drop the argument backend="rgl"
In addition pls check if all packees are up to date.
The error occurs at the last line: cloud_metrics(las, func = ~mean(Z))
Okay, I'll do that, thanks.
Okay, I found the problem: my las file is a matrix. But putting lidR:: in front of readLAS(las_files[1]) seems to have solved that.
Hello @gisma, as I was trying to calculate more metrics, my script did not run anymore. I can neither plot the las file nor calculate metrics. The script up to that point looks like this:
When plotting, I do not get an Error, but the pop up window just does not open. When trying to calculate the cloud_metrics, I get this Error: Error in UseMethod("cloud_metrics", las) : no applicable method for 'cloud_metrics' applied to an object of class "c('matrix', 'array', 'double', 'numeric')"
I first tried with the data from "https://github.com/gisma/gismaData/raw/master/uavRst/data/lidR_data.zip" and now tried the mof data - both didn't work. I restarted and cleaned up the environment several times. I don't understand this, because I didn't change the script before and it was running..
Best regards