read.ahccd: Read AHCCD data

View source: R/ahccd.R

read.ahccdR Documentation

Read AHCCD data

Description

Read Adjusted and Homogenized Canadian Climate Data files. Data can be downloaded from the ftp site at ftp://ccrp.tor.ec.gc.ca/pub/AHCCD/ . It is required that the data file be downloaded along with the associated stations excel file. For example, if the 'Adj_monthly_rain.zip' file is downloaded, then the 'Precipitation_Stations.xls' file should also be downloaded whether it be using download.file(), or manually from the site.

Flag description from 'Temperature_Documentation.doc', which is on the ftp site, last downloaded : 20190723, M = missing value, E = estimated during archiving process, a = value has been adjusted due to homogeneity and no flag indicates original unaltered value.

Usage

read.ahccd(file, longitude = NULL, latitude = NULL, elevation = NULL)

Arguments

file

a connection or a character string giving the name of the file to load.

longitude

optional numerical value containing longitude in decimal degrees, positive in the eastern hemisphere.

latitude

optional numerical value containing the latitude in decimal degrees, positive in the northern hemisphere.

elevation

optional numerical value containing the elevation of the station in meters.

Value

named list of data for each station provided in stns


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.