stationInfo: Retrieve station info

View source: R/dataInventory.R

stationInfoR Documentation

Retrieve station info

Description

Get a quick overview of the stations contained in a stations dataset

Usage

stationInfo(dataset, plot = TRUE)

Arguments

dataset

A character string indicating the database to be accessed. For station data in standard ASCII format, this is the path to the directory the dataset lives in.

plot

Logical indicating if a map displaying the station locations should be displayed. Default to TRUE.

Value

A data.frame with the station codes in its first column, followed by longitude and latitude, and the rest of metadata (if any) in the following columns. If plot = TRUE, also a map of the station locations.

Note

For an adequate map display the station coordinates must be in decimal degrees.

Author(s)

J. Bedia

See Also

dataInventory to obtain a more exhaustive report the dataset.

Examples


dir.create("mydirectory")
download.file("http://meteo.unican.es/work/loadeR/data/VALUE_ECA_86_v2.tar.gz", 
              destfile = "mydirectory/VALUE_ECA_86_v2.tar.gz")
# Extract files from the tar.gz file
untar("mydirectory/VALUE_ECA_86_v2.tar.gz", exdir = "mydirectory")
# Data inventory
value <- "mydirectory/VALUE_ECA_86_v2"
print(stationInfo(value))



SantanderMetGroup/loadeR documentation built on July 4, 2023, 4:29 a.m.