Skip to content

Commit ad033bd

Browse files
committed
remove typecasting in watershed_d_r
1 parent 1e6e11f commit ad033bd

7 files changed

Lines changed: 4 additions & 430 deletions

R/watershed_diameter_raster.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ methods::setMethod(
144144
wsh <- lidR::watershed(chm, ...)()
145145

146146
# convert to polygon
147-
poly.wsh <- terra::as.polygons(terra::rast(wsh))
147+
poly.wsh <- terra::as.polygons(wsh)
148148

149149
# tree height as highest chm value
150150
height.points <- data.table::data.table(terra::extract(chm, poly.wsh))

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,4 +336,5 @@ weights_of( points ):
336336
## References
337337

338338
<a name="ferraz2016"></a> Ferraz, A.; Saatchi, S.; Mallet, C. & Meyer, V., (2016) "Lidar detection of individual tree size in tropical forests", In: *Remote Sensing of Environment*, 183, 318-333, DOI: [10.1016/j.rse.2016.05.028](https://doi.org/10.1016/j.rse.2016.05.028)
339+
339340
<a name="ferraz2012"></a> Ferraz, A.; Bretar, F.; Jaquemond, S.; Gonçalves, G.; Pereira, L.;, Tomé, M. & Soares, P., "3-D mapping of a multi-layered Mediterranean forest using ALS data", In: *Remote Sensing of Environment*, 121, 210-223, DOI: [10.1016/j.rse.2012.01.020](https://doi.org/10.1016/j.rse.2012.01.020)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![CRAN
99
status](https://www.r-pkg.org/badges/version/crownsegmentr)](https://CRAN.R-project.org/package=crownsegmentr)
10-
10+
[![R-CMD-check](https://github.com/Lenostatos/crownsegmentr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Lenostatos/crownsegmentr/actions/workflows/R-CMD-check.yaml)
1111
<!-- badges: end -->
1212

1313
crownsegmentr is an R package with a C++ implementation of the AMS3D
@@ -511,6 +511,7 @@ lists. The syntax of these initializer lists looks like this:
511511
V., (2016) “Lidar detection of individual tree size in tropical
512512
forests”, In: *Remote Sensing of Environment*, 183, 318-333, DOI:
513513
[10.1016/j.rse.2016.05.028](https://doi.org/10.1016/j.rse.2016.05.028)
514+
514515
<a name="ferraz2012"></a> Ferraz, A.; Bretar, F.; Jaquemond, S.;
515516
Gonçalves, G.; Pereira, L.;, Tomé, M. & Soares, P., “3-D mapping of a
516517
multi-layered Mediterranean forest using ALS data”, In: *Remote Sensing

man/li_diameter_raster.Rd

Lines changed: 0 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/remove_small_trees.Rd

Lines changed: 0 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)