spec.avg: Average associated spectra files into a single spectrum....

View source: R/spectra.average.R

spec.avgR Documentation

Average associated spectra files into a single spectrum. Works on a single spectra or a directory.

Description

Average associated spectra files into a single spectrum. Works on a single spectra or a directory.

Usage

spec.avg(
  file.dir = NULL,
  out.dir = NULL,
  spec.type = "Reflectance",
  instrument = NULL,
  spec.file.ext = NULL,
  start.wave = NULL,
  end.wave = NULL,
  step.size = NULL,
  bias.threshold = NULL,
  outlier.cutoff = 2,
  suffix.length = NULL,
  output.file.ext = NULL,
  settings.file = NULL
)

Arguments

file.dir

File directory or filename of single spectra for processing

out.dir

Output directory for metadata information file

spec.type

Option to set what type of spectra to process. Options: Reflectance, Transmittance. Can be set with abbreviations: e.g. "Refl" or "Tran". Default is "Reflectance"

instrument

What instrument was used to collect spectra. Current options: ASD, SE, SVC

spec.file.ext

[Optional] Input spectra file extension. E.g. .asd (ASD), .sed (Spectral Evolution), or .sig (Spectra Vista). In not input extension is assumed based on instrument type.

start.wave

Starting wavelength of spectra files. Not needed if specified in XML settings file.

end.wave

Ending wavelength of spectra files. Not needed if specified in XML settings file.

step.size

Resolution of spectra files. E.g. 1 for 1nm, 5 for 5nm. Not needed if specified in XML settings file. **Phasing this option out through the use of spec file metadata and determining wavelength numbers from spec files


serbinsh/R-FieldSpectra documentation built on March 31, 2022, 10:08 p.m.