getstnname {seas}R Documentation

Get station name

Description

Retrieves the full name from mscstn using an ID

Usage

getstnname(id)

Arguments

id

numeric or character ID array

Details

This function simply converts the ID used in climate data frames into a meaningful name using mscstn. Presently it is useful only for Meteorological Service of Canada weather stations in BC, AB and YT, however getstnname can be overridden by another (similar) function and data object for other regions.

Value

Returns the station name(s). If the ID does not exist, returns NULL.

Author(s)

Mike Toews

See Also

mscstn, mscdata, .seastitle

Examples

data(mscdata)

mscdata$id[1]
getstnname(mscdata$id[1])

ids <- levels(mscdata$id)
data.frame(id=I(ids), name=getstnname(ids))

[Package seas version 0.6-0 Index]