Trying to Load LAS file in R

504 Views Asked by At

My apologies if this question is a little rudimentary - I'm intermediately experienced in troubleshooting with R, but this issue is persistent, possibly because I'm a little new to R's spatial packages.

I'm trying to use R to process lidar data. I have a LAS file downloaded from a state website. It loads and works well on ArcGIS, and visualizes well lidarview.com.

I want to be able to not rely on ArcGIS and do all processing and analysis in R. I'm trying to start the process by reading the file, following online instructions using these examples of script:

lasfile <- system.file("extdata", "example.laz", package = "rlas")
#OR
las <- readLAS("files.las")

I get the error "File does not exist"

My script (with the file path a little redacted):

LASfile <- system.file(".../UMBC/UMBC_034.las", "UMBC_034.las", package="rlas")
las <- readLAS(LASfile)

#OR

LASfile <- readLAS(".../UMBC/UMBC_034.las")

I checked the file path thoroughly, no issues I can discern.

Any idea what is going on?

Many thanks!

0

There are 0 best solutions below