process_multi_pcl: Process multiplie PCL transects.

Description Usage Arguments Details Value See Also Examples

View source: R/process_multi_pcl.R

Description

process_multi_pcl imports and processes mutiple PCL transect.

Usage

1
2
3
4
5
6
7
8
9
process_multi_pcl(
  data_dir,
  user_height,
  marker.spacing,
  max.vai,
  pavd = FALSE,
  hist = FALSE,
  save_output = TRUE
)

Arguments

data_dir

directory where PCL .csv files are stored

user_height

height of laser from ground based on user in meters

marker.spacing

space between markers in the PCL data, in meters

max.vai

the maximum value of column VAI. The default is 8. Should be a max value, not a mean.

pavd

logical input to include Plant Area Volume Density Plot from [plot_pavd], if TRUE it is included, if FALSE, it is not.

hist

logical input to include histogram of VAI with PAVD plot, if TRUE it is included, if FALSE, it is not.

save_output

needs to be set to true, or else you are just going to get a lot of data on the screen

Details

This is a specific function that works using the input of a data directory of .csv files where the function cycles through the files there and processes multiple files, producing the same output files described in process_pcl

Value

writes the hit matrix, summary matrix, and output variables to csv in an output folder, along with hit grid plot

See Also

process_pcl

Examples

1
2
3
4
5
6
7
8
9
# This function works on a directory of raw PCL data
## Not run: data_directory <- "./data/PCL_transects/"  #data directory containing PCL transects
process_multi_pcl(data_directory, user_height = 1.05, marker.spacing = 10,
max.vai = 8, pavd = FALSE, hist = FALSE, save_output = FALSE)

process_multi_pcl("./data/PCL_transects/", user_height = 1.05, marker.spacing = 10,
max.vai = 8, pavd = FALSE, hist = FALSE, save_output = FALSE)

## End(Not run)

forestr documentation built on April 17, 2020, 1:26 a.m.