https://github.com/carlos-alberto-silva/spanner
Utilities to support landscape-, forest-, and tree-related data collection, manipulation, analysis, modelling, and visualization.
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.2%) to scientific vocabulary
Repository
Utilities to support landscape-, forest-, and tree-related data collection, manipulation, analysis, modelling, and visualization.
Basic Info
- Host: GitHub
- Owner: carlos-alberto-silva
- License: other
- Default Branch: master
- Size: 4.9 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
spanner 
Definition of spanner
1 (chiefly British): WRENCH
2: a wrench that has a hole, projection, or hook at one or both ends of the head for engaging with a corresponding device on the object that is to be turned
3: utilities to support landscape-, forest-, and tree-related data collection, manipulation, analysis, modelling, and visualization.
Install spanner
Get the latest released version od spanner from github. Also, spanner requires TreeLS, which isn't currently on CRAN, so you'll need to get that first...
r
remotes::install_github('tiagodc/TreeLS')
remotes::install_github('bi0m3trics/spanner')
Example usage

The following is the full processing pipeline described in Donager et al. (2021), and provides an example from downloading an example dataset, preprocesing it using lidR's functionality, estimating tree locations and DBH by rasterizing individual point cloud values of relative neighborhood density (at 0.3 and 1 m radius) and verticality within a slice of the normalized point cloud around breast height to
(1.34 m), to individual tree segmentation following ecological principles for “growing” trees based on input locations in a graph-theory approach inspired by work of Tao and others (2015).
Citation: Donager, Jonathon J., Andrew J. Sánchez Meador, and Ryan C. Blackburn 2021. Adjudicating Perspectives on Forest Structure: How Do Airborne, Terrestrial, and Mobile Lidar-Derived Estimates Compare? Remote Sensing 13, no. 12: 2297. https://doi.org/10.3390/rs13122297
```r library(spanner)
set the number of threads to use in lidR
setlidrthreads(8)
download and read an example laz
getExampleData("DensePatchA") LASfile = system.file("extdata", "DensePatchA.laz", package="spanner") las = readTLSLAS(LASfile, select = "xyzcr", "-filterwithvoxel 0.01")
Don't forget to make sure the las object has a projection
projection(las) = sp::CRS("+init=epsg:26912")
pre-process the example lidar dataset by classifying the ground points
using lidR::csf(), normalizing it, and removing outlier points
using lidR::ivf()
las = classifyground(las, csf(sloopsmooth = FALSE, classthreshold = 0.5, clothresolution = 0.5, rigidness = 1L, iterations = 500L, timestep = 0.65)) las = normalizeheight(las, tin()) las = classifynoise(las, ivf(0.25, 3)) las = filterpoi(las, Classification != LASNOISE)
plot the non-ground points, colored by height
plot(filter_poi(las, Classification!=2), color="Z", trim=30)
perform a deep inspection of the las object. If you see any
red text, you may have issues!
las_check(las)
find individual tree locations and attribute data
myTreeLocs = getrastereigentreelocs(las = las, res = 0.05, ptspacing = 0.0254, densthreshold = 0.2, neighsizes=c(0.333, 0.166, 0.5), eigenthreshold = 0.5, gridslicemin = 0.6666, gridslicemax = 2.0, minimumpolygonarea = 0.025, cylinderfittype = "ransac", outputlocation = getwd(), max_dia=0.5, SDvert = 0.25)
plot the tree information over a CHM
plot(lidR::grid_canopy(las, res = 0.2, p2r())) points(myTreeLocs$X, myTreeLocs$Y, col = "black", pch=16, cex = myTreeLocs$Radius^2*10, asp=1)
segment the point cloud
myTreeGraph = segmentgraph(las = las, tree.locations = myTreeLocs, k = 50, distance.threshold = 0.5, use.metabolic.scale = FALSE, subsample.graph = 0.1, return.dense = FALSE, outputlocation = getwd())
plot it in 3d colored by treeID
plot(myTreeGraph, color = "treeID") ```
Owner
- Name: Carlos Alberto Silva
- Login: carlos-alberto-silva
- Kind: user
- Company: University of Florida
- Website: https://carlos-alberto-silva.github.io/silvalab/home.html
- Twitter: Web_LiDAR
- Repositories: 100
- Profile: https://github.com/carlos-alberto-silva
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Andrew Sánchez Meador | a****r@n****u | 45 |
| JDonager | j****r@g****m | 9 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- lidR * depends
- magrittr * depends
- FNN * imports
- RANN * imports
- Rcpp * imports
- Rfast * imports
- conicfit * imports
- cppRouting * imports
- data.table * imports
- dbscan * imports
- dplyr * imports
- igraph * imports
- lidR * imports
- lwgeom * imports
- mathjaxr * imports
- sf * imports
- sfheaders * imports
- stringr * imports
- terra * imports
- testthat >= 3.0.0 suggests