process_multi_pcl: Process multiple PCL transects.

View source: R/process_multi_pcl.R

process_multi_pclR Documentation

Process multiple PCL transects.

Description

process_multi_pcl imports and processes multiple PCL transect.

Usage

process_multi_pcl(
  data_dir,
  user_height = NULL,
  method = NULL,
  k = NULL,
  marker.spacing = NULL,
  max.vai = NULL,
  ht.thresh = NULL,
  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

method

"MH" is MacArthur-Horn and "Bohrer" is the Bohrer method

k

correction coeff for MH method (default is 1)

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.

ht.thresh

the height at which to filter values below

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


# 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, ht.thresh = 60, pavd = FALSE, h
ist = FALSE, save_output = FALSE)

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

## End(Not run)


atkinsjeff/forestr documentation built on Dec. 12, 2023, 5:36 a.m.