generate.Ag.DB: Assemble the CDOM absorption data into a single data base

Description Usage Arguments Value Author(s) See Also

View source: R/generated.Ag.DB.R

Description

This function assembles the CDOM data in a single data base and generate 1) one RData file, 2) two ASCII files and 3) one plot presenting all CDOM spectra.

Usage

1
2
3
4
5
6
generate.Ag.DB(
  log.file = "Ag_log_TEMPLATE.dat",
  data.path = "./",
  MISSION = "YYY",
  MEASURED = FALSE
)

Arguments

log.file

is the name of the ASCII file containing the list of ID to process (see details below).

data.path

is the path where the RData folder is located. So the files must be stored in data.path/RData. Default is "./".

MISSION

is a character string that will be used to name the output files. The default is "YYY". (i.e. MISSION.Ag.RData; MISSION.Ag.dat; MISSION.Fitted.params.dat; MISSION.Ag.png)

MEASURED

if a logical parameter indicating if the fitted parameter is computed using the measured Ag without the red offset. Defautl is FALSE

Value

the function returns a list containing the following fields: waves, ID, Station, Depth,Ag.raw, Ag.offset,S275_295, S350_400, S350_500, Sr, K, a440.

This list (Ag.DB) is save in MISSION.Ag.RData. The Ag.offset spectra are saved in ASCII format in MISSION.Ag.dat, while the fitting parameters are saved in MISSION.Fitted.params.dat. Finally, a PNG file showing all CDOM spectra ise created.

Author(s)

Simon BĂ©langer

See Also

process.Ag, run.process.Ag.batch


belasi01/RspectroAbs documentation built on July 27, 2020, 9:52 p.m.