r-lidar / rlas

R package to read and write las and laz files used to store LiDAR data
https://cran.r-project.org/package=rlas
GNU General Public License v3.0
34 stars 14 forks source link

Fail to make extra byte header if NAs only #21

Closed Jean-Romain closed 6 years ago

Jean-Romain commented 6 years ago
lazfile <- system.file("extdata", "example.laz", package="rlas")
las = read.las(lazfile)
header = read.lasheader(lazfile)
 ex = rep(NA_integer_, nrow(las))
 las$Exdata = ex
 new_header = header_add_extrabytes(header, las$Exdata, "Exdata", "Extra numeric data")
Warning messages:
1: In min(data, na.rm = TRUE) :
  aucun argument trouvé pour min ; Inf est renvoyé
2: In max(data, na.rm = TRUE) : aucun argument pour max ; -Inf est renvoyé