selecting metrics from "stdmetrics" #674
-
Hi, I am trying to create the equation using selected "stdmetrics" variables. As far as I known, it is not possible to select certain stdmetrics variables (such as zq5, pzabove2, zpcum6,,,,). Could you please guide me on how I can define each variable manually? I feel like I can define these variables like zmean = mean(z), Even I checked the description of each variable (from here: https://github.com/r-lidar/lidR/wiki/stdmetrics), I have no idea how I can express 'zpcum', 'p1th', 'pabove2'. in R code. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can copy the source code. https://github.com/r-lidar/lidR/blob/master/R/metrics_stdmetrics.R#L123 Or ou can simply compute all metrics and select the ones of interest. myMetrics = function(Z)
{
ans = stdmetrics(Z)
ans = ans[c("zmean", "zsd", "...")]
return(ans)
} |
Beta Was this translation helpful? Give feedback.
You can copy the source code.
https://github.com/r-lidar/lidR/blob/master/R/metrics_stdmetrics.R#L123
Or ou can simply compute all metrics and select the ones of interest.