View source: R/run_gridmetrics.R
| run_gridmetrics | R Documentation |
<Delete and Replace>
run_gridmetrics(
proj_polys = NA,
proj_gpkg_path = NA,
layer_proj_polys = "RSForInvt_prj",
layer_proj_config = "RSForInvt_config",
dir_out = "c:/temp/test_project/gridmetrics",
n_core = 4,
gridmetrics_path = "c:\\fusion\\gridmetrics64.exe",
heightbreak = 3,
minht = NA,
cellsize = 66,
first = T,
intensity = F,
outlier = c(-5, 400),
fusion_switches = "/nointensity /first /failnoz",
xmn = NA,
xmx = NA,
ymn = NA,
ymx = NA,
temp = "c:\\temp\\run_gridmetrics\\",
new_dtm_path = c(from = NA, to = NA),
new_las_path = list(from = NA, to = c(NA, NA), prop = c(0.6, 0.4)),
skip_existing = T,
existing_coms = c(NA,
"C:\\Temp\\run_gridmetrics\\2017Aug17_100740\\all_commands.txt"),
do_run = T,
debug = F,
...
)
n_core |
number of corest to run process on |
gridmetrics_path |
where is gridmetrics.exe (FUSION) |
heightbreak |
Height break for cover calculation |
minht |
set minht for gridmetrics.ex |
cellsize |
output raster resolution |
first |
T/F use only first returns |
intensity |
T/F include intensity metrics |
outlier |
c(-5,500) range of inclusion |
fusion_switches |
other fusion switches as a string e.g. "/noground" |
xmn, xmx, ymn, ymx |
set extent for analysis |
temp |
temp folder to hold batch files for use with gridmetrics.exe |
new_dtm_path |
= c(from = NA, to = NA) rename input file paths (e.g. files have moved) |
new_las_path |
= c(from = NA, to = NA) rename input file paths (e.g. files have moved) |
skip_existing |
skip tiles if they already have output csvs |
existing_coms |
path to existing batch comamnds, incase processing was interrupted the first time |
project_gpkg |
polygon file of intersections created by project_make() function |
table |
output folder name |
<Delete and Replace>
Revision History
| 1.0 | 2018-01-28 Header added |
| 1.1 | 2020-03-17 force csv or geopackage |
| 1.2 | 2021-04-30 remove fast cache and stub for processing with lidR |
| 1.3 | 2021-07-12 split process across multiple input disk |
<Delete and Replace>
Jacob Strunk <Jstrunk@fs.fed.us>
project_make
lidR::gridmetrics
Desired updates 1. fix issues with mismatched tile size and cell size 2. allow dynamic update of tile sizes
gmi=run_gridmetrics( project_gpkg="D:\\projects\\2017_WA_DSM_Pilot_usgs\\2017Aug_NAIP_usgs\\RSForInvt_project003.gpkg" ,dir_out="I:\\projects\\2017_WA_DSM_Pilot\\2017Aug_NAIP_usgs\\gridmetrics_07\\" ,dir_dtm="c:\\usgs_dtms\\dtms\\" ,dir_las="D:\\naip_2015_laz\\" ,n_core=10 ,existing_coms="C:\\Temp\\run_gridmetrics\\2018Jan21_152618\\all_commands.txt" ,n_cache=400 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.