powered by
lasmetrics
RasterLayer
Transform a lasmetrics object into a spatial RasterLayer object
# S3 method for lasmetrics as.raster(x, z = NULL, ...)
a lasmetrics object
character. If 3 columns or more, the field to extract. If NULL return a RasterStack.
unused
A RasterLayer object from package raster or a RasterStack if there are several layers.
grid_metrics grid_canopy grid_canopy raster
Other cast: as.SpatialPixelsDataFrame, as.SpatialPointsDataFrame, as.lasmetrics
as.SpatialPixelsDataFrame
as.SpatialPointsDataFrame
as.lasmetrics
# NOT RUN { LASfile <- system.file("extdata", "Megaplot.laz", package="lidR") lidar = readLAS(LASfile) meanHeight = grid_metrics(lidar, mean(Z)) rmeanHeight = as.raster(meanHeight) # }
Run the code above in your browser using DataLab