Skip to content

Commit

Permalink
Last updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Molina-Valero committed Nov 20, 2024
1 parent c408c36 commit b911a87
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/auxiliary.functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@

} else {

colnames(df_out) = c('x', 'y', 'radio', 'n', 'mae', 'cv')
colnames(kk) = c('x', 'y', 'radio', 'n', 'mae', 'cv')

kk <- kk[kk$n >= max(kk$n), ]

Expand Down
14 changes: 14 additions & 0 deletions R/tree.detection.multi.scan.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ tree.detection.multi.scan <- function(data, single.tree = NULL,
verbose = FALSE,
solver_threshold = 50000)

if(is.null(VerSur$verticality) | is.null(VerSur$surface_variation)){

VerSur$verticality <- NA
VerSur$surface_variation <- NA

}

stem <- merge(stem, VerSur[, c("point", "verticality", "surface_variation")], by = "point")

rm(VerSur)
Expand Down Expand Up @@ -442,6 +449,13 @@ tree.detection.multi.scan <- function(data, single.tree = NULL,
verbose = FALSE,
solver_threshold = 50000)

if(is.null(VerSur$verticality) | is.null(VerSur$surface_variation)){

VerSur$verticality <- NA
VerSur$surface_variation <- NA

}

.cut <- merge(.cut, VerSur[, c("point", "verticality", "surface_variation")], by = "point")

rm(VerSur)
Expand Down
7 changes: 7 additions & 0 deletions R/tree.detection.single.scan.R
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,13 @@ tree.detection.single.scan <- function(data, single.tree = NULL,
verbose = FALSE,
solver_threshold = 50000)

if(is.null(VerSur$verticality) | is.null(VerSur$surface_variation)){

VerSur$verticality <- NA
VerSur$surface_variation <- NA

}

.cut <- merge(.cut, VerSur[, c("point", "verticality", "surface_variation")], by = "point")

rm(VerSur)
Expand Down

0 comments on commit b911a87

Please sign in to comment.