Skip to content

Commit 3f4bd7c

Browse files
committed
calc_tcc_metrics(): include landfire stand height when returning full output
1 parent 9aaf67e commit 3f4bd7c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎R/calc_tcc_metrics.R‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ calc_tcc_metrics <- function(tree_list, stem_map = TRUE, full_output = TRUE,
271271

272272
if (full_output) {
273273
if (stem_map) {
274+
standHt <- calc_landfire_stand_ht(
275+
subp_overlay_tcc, micr_overlay_tcc, ht_metrics$numTrees,
276+
ht_metrics$meanTreeHtDomBAW, ht_metrics$meanTreeHtBAW,
277+
ht_metrics$meanTreeHtBAW)
274278
return(c(
275279
model_tcc = model_tcc,
276280
subp1_crown_overlay = subp_overlay[1],
@@ -287,7 +291,8 @@ calc_tcc_metrics <- function(tree_list, stem_map = TRUE, full_output = TRUE,
287291
L_8ft = L$iso[9],
288292
L_10ft = L$iso[11],
289293
L_12ft = L$iso[13],
290-
ht_metrics))
294+
ht_metrics,
295+
standHt = standHt))
291296
} else {
292297
return(c(
293298
model_tcc = model_tcc,

0 commit comments

Comments
 (0)