download.ClimateData: Base utility for Bulk Climate Data fetching

Description Usage Arguments Details References Examples

View source: R/Util.R

Description

Download climate data from begin:end station is provided by Station.ID in stations.csv timeframe is either "hourly", "daily", or "monthly"

Usage

1
2
download.ClimateData(station, begin, end, timeframe = c("hourly",
  "daily", "monthly"), method = c("curl", "wget"))

Arguments

station

to download

begin

year

end

year

timeframe

of station/datastream

method

curl or wget

Details

wget is the supported utility but curl works fine and is more accessible on all systems

References

ftp://client_climate@ftp.tor.ec.gc.ca/Pub/Get_More_Data_Plus_de_donnees/Readme.txt ftp://ftp.tor.ec.gc.ca/Pub/Get_More_Data_Plus_de_donnees/Station%20Inventory%20EN.csv

Examples

1
2
3
4
# Station 51423 is KAMLOOPS A
begin <- 2014
end <- 2017
df <- download.ClimateData(51423, begin, end, "hourly", "curl")

immackay/plotlyclimateca documentation built on May 20, 2019, 5:42 p.m.