generate.cops.DB: Generate an AOPs data base derived from COPS light profiles...

View source: R/generate.cops.DB.R

generate.cops.DBR Documentation

Generate an AOPs data base derived from COPS light profiles for a list of directories

Description

The AOPs (Kd_s, Rrs) derived from valid profiles are averaged. IMPORTANT: the only the cast selected in select.cops.dat will be average. In addition, the extrapolation method for Rrs.0p must be specified in the third column of the select.cops.dat.

Usage

generate.cops.DB(path = "./", mission = "XXX")

Arguments

path

is the path where the file directories.for.cops.dat containing the data folders to merge in the data base.

mission

is a string for the name of the mission. It will be used for the file names of the output.

wave.DB

is a vector of wavelengths to include un the data base. Default is waves.DB=c(305, 320, 330, 340,380, 412, 443, 465,490, 510, 532, 555,589, 625, 665, 683, 694, 710, 780)

Value

It returns a list object named COPS.DB containing matrices of mean and standard deviation of Kd1p, Kd10p, Kdpd, Rrs, Ed0.0p, Ed0.f.diff and vectors for stationID, date, lat, lon sunzen and waves

The object COPS.DB is saved in RData format. The data are also saved in ASCII (.dat with comma separator) and a figure showing the measured rho_w spectra of the data base is produced.


belasi01/Cops documentation built on Feb. 26, 2024, 6:52 a.m.