Skip to content

Commit

Permalink
fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Tompalski committed May 3, 2024
1 parent 6c19232 commit a9bafad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: lidRmetrics
Title: Suplemetary point cloud metrics.
Version: 0.1.2
Title: Point cloud metrics for the lidR package.
Version: 0.1.3
Authors@R: c(
person("Piotr", "Tompalski", email = "[email protected]", role = c("aut", "cre")),
person("Jean-Romain", "Roussel", email = "", role = c("ctb")),
Expand Down
14 changes: 7 additions & 7 deletions R/metrics_voxels.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ metrics_voxels <- function(x, y, z, vox_size=1, zmin = NA) {
vn <- NA_integer_
vFRall <- vFRcanopy <- NA_real_

if (length(z) > 2) {
# if (length(z) > 2) {

vox <- lidRmetrics:::create_voxels(x = x, y = y, z = z, vox_size = vox_size, zmin = zmin)

Expand Down Expand Up @@ -76,12 +76,12 @@ metrics_voxels <- function(x, y, z, vox_size=1, zmin = NA) {

mlefsky <- lidRmetrics:::metrics_lefsky(x = vox$X, y = vox$Y, z = vox$Z, n=vox$n)

} else {

mhist <- lidRmetrics:::metrics_voxstructure(z = NA) #this is temporary fix
mlefsky <- lidRmetrics:::metrics_lefsky(x = NA, y = NA, z = NA, n=NA) #this is temporary fix

}
# } else {
#
# mhist <- lidRmetrics:::metrics_voxstructure(z = NA) #this is temporary fix
# mlefsky <- lidRmetrics:::metrics_lefsky(x = NA, y = NA, z = NA, n=NA) #this is temporary fix
#
# }


output = list(vn = vn,
Expand Down

0 comments on commit a9bafad

Please sign in to comment.