Skip to content

Error reading data with spectral reflectance attributes #658

Answered by Jean-Romain
seanreilly66 asked this question in Q&A
Discussion options

You must be logged in to vote

These loaded fine in the old version of lidR but we have been unable to open them since the major updates a bit ago

Please report an issue with a minimal reproducible example. Is is related to r-lidar/rlas#59 ?

Alternatively, is there a way to modify the attribute name (e.g., change it to nir_reflectance) so lidR will not flag it?

Sure, use names()

library(lidR)
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
n = names(las@data)
n[4] = "time"
names(las@data) = n
names(las)

You can tweak everything manually to reach your goal but I need a reproducible example to help

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@seanreilly66
Comment options

@Jean-Romain
Comment options

@seanreilly66
Comment options

Answer selected by seanreilly66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants