readVars: Process data from the DWD CDC FTP Server

View source: R/readVars.R

readVarsR Documentation

Process data from the DWD CDC FTP Server

Description

Read climate variables (column meta data) from zip folders downloaded with dataDWD(). The metadata file "Metadaten_Parameter.*txt" in the zip folder file is read, processed and returned as a data.frame.
file can be a vector with several filenames.

Usage

readVars(file, params = dwdparams, quiet = rdwdquiet(), progbar = TRUE)

Arguments

file

Char (vector): name(s) of the file(s) downloaded with dataDWD(), e.g. "~/DWDdata/tageswerte_KL_02575_akt.zip"

params

data.frame: Parameter explanations. DEFAULT: dwdparams

quiet

Suppress message about non-abbreviated parameters? DEFAULT: FALSE through rdwdquiet()

progbar

Logical: present a progress bar with estimated remaining time? If missing and length(file)==1, progbar is internally set to FALSE. DEFAULT: TRUE

Value

data.frame of the desired dataset, or a named list of data.frames if length(file) > 1.

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jun 2018

See Also

dataDWD(), readDWD(), dwdparams, newColumnNames()
readMeta() for complete Metadaten_Parameter file.
website use case

Examples

# see dataDWD


brry/rdwd documentation built on April 18, 2024, 4:16 a.m.