SURFRAD.read: Read and process the SURFRAD dataset

Description Usage Arguments Details Value Author(s) See Also

View source: R/SURFRAD.r

Description

This function reads and concatenates the daily SURFRAD files.

Usage

1
2
SURFRAD.read(files, directory, use.original.qc = FALSE, use.qc = TRUE,
             test = NULL, progress.bar = TRUE, agg = 1, additional.variables = NULL)

Arguments

files

character strings indicating the file names for reading

directory

the directory for files

use.original.qc

boolean, indicating whether the SURFRAD QC flags should be used

use.qc

boolean, indicating whether the built-in QC should be used

test

vector of character strings, indicating which QC tests are used. Options include "phy", "ext", "closr", "df", "clim", and "all".

progress.bar

boolean, indicating whether the progress bar should be used

agg

numeric, aggregation interval in minute

additional.variables

four compulsory variables are included, namely, "dw_solar", "direct_n", "diffuse", and "pressure". This function parameter allows the user to set additional variables for extraction, such as "temp" or "windspd". See the code for the available variable list.

Details

It is not recommended to put all files in a same folder. The SURFRAD FTP folder directory is good, keep that, and use a loop (outside of this function) to access all folders.

Value

a tibble of the read and aggregated data.

Author(s)

D. Yang

See Also

SURFRAD.loc, SURFRAD.get


dazhiyang/SolarData documentation built on April 19, 2021, noon