When executing grid_metrics
for a normalized LAScatalog
the final results are GTiff
files where each band corresponds to a metric. The problem is that the band names are "band 01", "band 02", "band 03"... and I can not identify which band is which metric.
Is there a way to keep the name of the metric as the band name?
Here is the part of the script that I use:
ctg <- readLAScatalog("C:/JAIME/dataLaS_test/", progress = TRUE)
# Load an extra buffer around the processed file to properly process the catalog without edge artifacts
opt_chunk_buffer(ctg) <- 10
# Write files to disc
opt_output_files(ctg) <- "C:/JAIME/00_tests/test2/{ORIGINALFILENAME}_normalized"
#Normalize LAS files
las <- lasnormalize(ctg, tin())
opt_filter(las) <- "-drop_z_below 0"
#export metrics
opt_output_files(las) <- "C:/JAIME/00_tests/test2/{ORIGINALFILENAME}_metrics"
#Create functionn to get metrics
get_metrics <- grid_metrics(las, .stdmetrics_z, 15.8114, filter = ~ReturnNumber == 1)