Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lidr]

lidR: Airborne LiDAR Data Manipulation and Visualization for Forestry Applications

2
votes
1answer
47 views

Calculating standard metrics in multiple LiDAR files with lidR 2.0 [on hold]

I am porting my existing code to lidR version 2.0 and would like someone to let me know if I am coding efficiently. My objective is: to process a directory of LAS files normalize las files calculate ...
0
votes
1answer
12 views

Using catalog_apply in the lidR 2.0 package, convert raster outputs to data frame format

I've moved over to version 2 of the lidR package. In previous versions, the output of producing stdmetrics using catalog_apply was a data frame. In version 2.0, the outputs are stored in raster ...
1
vote
2answers
106 views

File header incorrectly reporting 0 point records in R?

I have a set of 10 LiDAR files that I'm attempting to retile and eventually use to create a Canopy Height model. I'm able to import them as a catalog, however when I go to retile my catalog, I get the ...
0
votes
1answer
27 views

Why a laz file give warning about numbers of returns, using readLAS in R

Reading a laz file with the lidR package in R I have the following warning. What does it means? las = readLAS("chmp15.laz", filter = "-drop_z_below 0") #> Warning message: #> Invalid data: 8895 ...
3
votes
1answer
68 views

Error in reading point cloud data (.las) in R?

I want to generate a DEM using a point cloud (.las) for which I tried reading it in R using rlas, lidR and rLiDAR : readLAS command and none of it seems to work. The LASfile is not being read at all....
3
votes
1answer
62 views

Constructing a function to pass to lidR::grid_metrics

I am attempting to write an R function, as part of a package, that takes a lidar tile (LAS object) and a vector of cut-points defining vertical layers, and returns a RasterStack where each layer has a ...
4
votes
1answer
74 views

Is there a difference between a CRS initiliazed from epsg code and .shp basic proj string?

Can someone enlighten me if there is a difference between initializing a CRS object using the epsg code versus just the +proj string read from a shapefile? Consider the following objects A ...
3
votes
2answers
271 views

Clipping object of class LAS with polygon shapefile using lidR?

I want to make a simple clip with my .las 3D-Pointcloud. Therefor I use the lasclip() function. Import .las: lidar <- readLAS("~/data.las") lidar gives me class : LAS (LASF v1.2) memory ...
4
votes
2answers
234 views

How to filter point cloud by flightline in R?

The lidR package in R provides a way to mark individual points in a point cloud with a flightline ID by using lasflightline(). From the documentation: Retrieve each individual flightline by ...
2
votes
1answer
80 views

How to incorporate stdmetrics in gridmetrics function?

I am attempting to feed the lidR gridmetrics function a list of metrics. I can generate the list of metrics within a function (following this example): myMetrics = function(z, i) { metrics = list( ...
4
votes
2answers
489 views

How to write the results of lidR grid_metrics to a georeferenced raster?

I'm using the lidR package to calculate LiDAR grid metrics (p.18 documentation) for forestry applications. For example, the following calculates the mean elevation within a 20m cell: library(lidR) ...