clip_plots: clip plots or polygons form lidar

View source: R/clip_plots.R

clip_plotsR Documentation

clip plots or polygons form lidar

Description

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

Usage

clip_plots(
  idxyd = NA,
  idxy = NA,
  plot_polys = NA,
  id_field_plots = "plot",
  project_gpkg = NA,
  intersect_gpkg = NA,
  dir_out = NA,
  height = T,
  do_plot = F,
  return = F,
  n_core = 6,
  dir_dtm = NA,
  dir_las = NA,
  skip_existing = T,
  fix_dsm_bug = F
)

Arguments

idxyd

dataframe with point id, x and y coordinates, and circle diameter

idxy

(optional) dataframe with polygon vertices (x,y) organized by point id

plot_polys

(optional) shapefile path, or sp object with plot boundaries

id_field_plots

(optional) in the event that a polygon is provided

project_gpkg

spatial polygons dataframe (intersection between dtm and las tiles)

dir_out

where to send clipped plots

height

T/F subtract the ground

do_plot

T/F make a plot of the intersections

return

T/F return intersectiosn

n_core

number of cores to use in clipping

dir_dtm

in case path to dtms has changed from project

dir_las

in case path to las has changed from project

skip_existing

skip csv files that have been processed already - in case processing was interupted

project

path to spatial polygons dataframe (intersection between dtm and las tiles)

plot_tile_intersect

path to spatial polygons dataframe representing intersection between plots and project

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.1 move to SF objects and geopackages

Value

<Delete and Replace>

Author(s)

Jacob Strunk <Jstrunk@fs.fed.us>

See Also

another_function
yet_another_function

Examples

 <Delete and Replace>


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