clip_plots_fusion: clip plots or polygons form lidar

View source: R/clip_plots_fusion.R

clip_plots_fusionR Documentation

clip plots or polygons form lidar

Description

clip plots or polygons form lidar - requires that one first make a project using lasR_project which includes both lidar and dtms

Usage

clip_plots_fusion(
  idxyd = NA,
  dir_las = NA,
  dir_dtm = NA,
  dir_clipdata = "c:\\fusion\\clipdata.exe",
  dir_out = NA,
  out_f = c(".las", ".laz"),
  clipdata_switches = c("/height /shape:1", "")[1],
  n_core = 6,
  temp = "c:\\temp\\clipdata",
  run = T
)

Details

There are three ways to provide the input shapes to this function - either as a list of plot ids, coordinates and plot diameters (4 column data.frame), as a list of vertices organized by plot_id (3 column data.frame), or as a polygon shapefile (path to shapefile) inwich case the plot id field must be specified "id_field_plots".

This program is free software but it is provided WITHOUT WARRANTY and with ABSOLUTELY NO GUARANTEE of fitness or functionality for any purpose; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.


Revision History

1.0 date and revisions..

Value

<Delete and Replace>

Author(s)

Jacob Strunk <Jstrunk@fs.fed.us>

See Also

another_function
yet_another_function

Examples


cd = read.csv("D:\\data\\wadnr_hood_canal\\field_data\\hood_canal_locations.csv")
cd1 = data.frame(cd[!is.na(cd[,"x"]),c("plot_id","x","y")], width = 37.2*2 )


res=clip_plots_fusion(
  idxyd=cd1
  ,dir_las = "D:\\data\\wadnr_hood_canal\\las\\hood_canal_6in_DSM_2015\\"
  ,dir_dtm = "D:\\data\\lidar_wa_dtms\\"
  ,dir_clipdata="c:\\fusion\\clipdata.exe"
  ,dir_out = "D:\\data\\wadnr_hood_canal\\plot_clips\\6in"
  ,out_f = c(".las",".laz")[1]
  ,clipdata_switches="/height /shape:1"
  ,n_core=6
  ,temp = "c:\\temp\\clipdata"
  ,run=T
)



jstrunk001/RSForInvt documentation built on April 18, 2022, 11:03 p.m.