Extracts the elevation of a meteorological station expressed in meters above a reference (sea level)

ElevationOf(name, station_names, elevation)

Arguments

name

character ID of the station

station_names

vector of the IDs (characters) of the considered meteorological stations. An example is STATION_NAMES, which is defined in the trentino dataset.

elevation

vector of the elevation of the considered meteorological stations. An example is ELEVATION, which is defined in the trentino dataset.

Value

the elevation given the vectors of station IDs and the respective elevations

Examples

data(trentino)
ElevationOf("T0099",station_names=STATION_NAMES,elevation=ELEVATION)
#> [1] 2125