Description Usage Arguments Value Author(s) See Also
View source: R/generated.Ag.DB.R
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.
1 2 3 4 5 6 | generate.Ag.DB(
log.file = "Ag_log_TEMPLATE.dat",
data.path = "./",
MISSION = "YYY",
MEASURED = FALSE
)
|
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 |
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.
Simon BĂ©langer
process.Ag
, run.process.Ag.batch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.