bdmep_import_station: Import data of a meteorological station

Description Usage Arguments Details Value Author(s)

View source: R/bdmep.R

Description

Import data of a meteorological station

Usage

1
2
3
bdmep_import_station(.id = "83488", .sdate = "01/01/1961",
  .edate = format(Sys.Date(), "%d/%m/%Y"), .email = "your-email",
  .passwd = "your-password", .verbose = TRUE, .destdir = NULL, ...)

Arguments

.id

a character vector with the meteorological station code

.sdate

start date in "d/m/Y" format

.edate

end date in "d/m/Y" format, default values format(Sys.Date(), "%d/%m/%Y")

.email

e-mail to access BDMEP

.passwd

password to access BDMEP

.verbose

Optional. Logical. If set to TRUE (default), print messages.

.destdir

Optional. Character Local file path to write file out to.If NULL (default) files are not written to disk.

...

Additional arguments for the underlying export functions (see write_csv).

Details

The data are in sub-daily time scale. A minimum data quality control is applied to the data. This include: a chronological sequence check; filling data from missing dates with NA; remove duplicated data. Time variables (year, month, day, hour) are aggregated into a POSIX object in UTC

Value

a data frame with variables in columns (see bdmep_description) and observations (date and time) along rows.

Author(s)

Jonatan Tatsch


jdtatsch/inmetr documentation built on May 18, 2019, 11:37 p.m.