i_read_ascii_spectra: Internal parser for ASCII format

View source: R/read_spectra.R

i_read_ascii_spectraR Documentation

Internal parser for ASCII format

Description

Generic parser for SVC's ‘.sig' and PSR’s '.sed'

Usage

i_read_ascii_spectra(
  file_paths,
  skip_until_tag = NULL,
  sep_char,
  header,
  wl_col,
  refl_cols,
  divide_refl_by,
  ...
)

Arguments

file_paths

paths for files already parsed by 'read_spectra'

skip_until_tag

Tag that precedes the table of value data, indicating that lines until that tag should be skipped. Tag is matched with a regexpr.

sep_char

separator

header

boolean. keep header?

wl_col

idx or name of band column

refl_cols

idx or name of value columns. MULTIPLE

divide_refl_by

divide values by this. MULTIPLE

...

additional arguments passed to read table

Value

single 'spectra' or list of 'spectra'

Author(s)

Jose Eduardo Meireles and Anna Schweiger


spectrolab documentation built on Feb. 16, 2023, 10:27 p.m.