Skip to content

Commit

Permalink
Last updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Molina-Valero committed Feb 13, 2024
1 parent c042fe6 commit c93d4a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/tree.detection.several.plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ tree.detection.several.plots <- function(las.list, id.list = NULL, file = NULL,

dir.data = NULL, save.result = TRUE, dir.result = NULL){


# Obtaining working directory for loading files
if(is.null(dir.data))
dir.data <- getwd()

# Obtaining working directory for saving files
if(is.null(dir.result))
dir.result <- getwd()
Expand Down Expand Up @@ -104,7 +109,7 @@ tree.detection.several.plots <- function(las.list, id.list = NULL, file = NULL,
if(scan.approach == "single"){

if(i > 1)
.stem.curve <- read.csv("stem.curve.csv")
.stem.curve <- read.csv(paste(dir.data, "/stem.curve.csv", sep = ""))

.tree.tls.i <- tree.detection.single.scan(data = .data, single.tree = single.tree,

Expand Down Expand Up @@ -133,7 +138,7 @@ tree.detection.several.plots <- function(las.list, id.list = NULL, file = NULL,
if(scan.approach == "multi"){

if(i > 1)
.stem.curve <- read.csv("stem.curve.csv")
.stem.curve <- read.csv(paste(dir.data, "/stem.curve.csv", sep = ""))

.tree.tls.i <- tree.detection.multi.scan(data = .data, single.tree = single.tree,

Expand Down Expand Up @@ -167,7 +172,7 @@ tree.detection.several.plots <- function(las.list, id.list = NULL, file = NULL,

.tree.tls <- rbind(.tree.tls, .tree.tls.i)

.stem.curve <- rbind(.stem.curve, read.csv("stem.curve.csv"))
.stem.curve <- rbind(.stem.curve, read.csv(paste(dir.data, "/stem.curve.csv", sep = "")))

utils::write.csv(.stem.curve,
file = file.path(dir.result, "stem.curve.csv"),
Expand Down
Binary file modified src/FORTLS.dll
Binary file not shown.

0 comments on commit c93d4a7

Please sign in to comment.