stations: Access Station data downloaded from Environment and Climate...

View source: R/stations.R

stationsR Documentation

Access Station data downloaded from Environment and Climate Change Canada

Description

This function access the built-in stations data frame. You can update this data frame with stations_dl() which will update the locally stored data.

Usage

stations()

Format

A data frame:

prov

Province

station_name

Station name

station_id

Environment Canada's station ID number. Required for downloading station data.

climate_id

Climate ID number

WMO_id

Climate ID number

TC_id

Climate ID number

lat

Latitude of station location in degree decimal format

lon

Longitude of station location in degree decimal format

elev

Elevation of station location in metres

tz

Local timezone excluding any Daylight Savings

interval

Interval of the data measurements ('hour', 'day', 'month')

start

Starting year of data record

end

Ending year of data record

normals

Whether current climate normals are available for that station

normals_1981_2010

Whether 1981-2010 climate normals are available for that station

normals_1971_2000

Whether 1981-2010 climate normals are available for that station

Details

You can check when this was last updated with stations_meta().

A dataset containing station information downloaded from Environment and Climate Change Canada. Note that a station may have several station IDs, depending on how the data collection has changed over the years. Station information can be updated by running stations_dl().

Source

https://climate.weather.gc.ca/index_e.html

Examples



stations()
stations_meta()

library(dplyr)
filter(stations(), interval == "hour", normals == TRUE, prov == "MB")



ropensci/weathercan documentation built on Sept. 24, 2023, 6:21 p.m.