download_time_seq: Wunderground time series from URL

Description Usage Arguments Details Examples

View source: R/DownloadWunderground.R

Description

Function to download 5min weather data from the www.wunderground.nl website. For a specific time period, station and variable(s) the data can be downloaded and saved in a directory. For each stationname a new folder is created (unless) the folder already exists. After downloading the daily files all the .txt files are combined and the daily files are deleted.

Usage

1
2
3
4
download_time_seq(stationname = "IZUIDHOL87",
  start = as.Date("2015/03/01"), stop = as.Date("2018/10/01"),
  var = "TemperatureC",
  folder.loc = "/nobackup/users/dirksen/data/wunderground/")

Arguments

stationname

Character, name of the station

start

Date, start of the download period

stop

Date, stop period of the download period

var

Character, variable(s) which you want to download

folder.loc

Character, location were the data will be stored. For each stationname a new folder is created.

Details

Download Wunderground data

Examples

1
2
3
4
5
6
7
8
9
#Run the example below to store data at the current location
download_time_seq(stationname = "IZUIDHOL87",
                  start = as.Date("2018/04/01"),
                  stop = as.Date("2018/05/01"),
                  var = "TemperatureC",
                  folder.loc = ".")
For multiple stations use lapply:
stations<-c('IZUIDHOL36','ILIMBURG36')
lapply(stations,download_time_seq)

MariekeDirk/GeoInterpolation documentation built on May 14, 2019, 8:20 a.m.