I understand that normalize_height()
in lidR creates a Zref attribute so that it can be unnormalized. While I can print Z for the normalized file, I cannot print Zref. Subsequently, when I apply find_trees()
Z values are carried over but of course Zref again returns NULL
. My goal is to have tree tops with height and original elevation (so that it can be displayed in software that allows it to be seen in 3D along with imagery) and I was thinking this would be more efficient than extracting values from the raster DEM.
myLas <- readLAS('C:/ITD/normtest.las')
ttops <- find_trees(myLas, lmf(ws = 5))
ttops$Z # this prints a series of values for tree heights
ttops$Zref # this results in NULL