getMeteoDataTrentino: Get data for Trentino Weather Station

View source: R/getMeteo.R

getMeteoDataTrentinoR Documentation

Get data for Trentino Weather Station

Description

Get data for Trentino Weather Station

Usage

getMeteoDataTrentino(
  station = c("T0179", "T0175"),
  url = "https://dati.meteotrentino.it/service.asmx/ultimiDatiStazione?codice=TCODE",
  verbose = TRUE,
  tz = "Etc/GMT-1",
  smet = TRUE,
  header = c("station_id", "station_name", "station_shortname", "altitude", "latitude",
    "longitude"),
  ...
)

Arguments

station

ID code

url

URL with data. Default is "https://dati.meteotrentino.it/service.asmx/ultimiDatiStazione?codice=T0179".

verbose

verbose logical argument

tz

time zone. Default is Etc/GMT-1.

smet

logical value. If it is TRUE, data are returned as a list of smet-class object(s).

header

header accepted from metedata see examples and default.

...

further arguments

Details

The data are licensed as Open Data and released by Provincia Autonoma di Trento (www.meteotrentino.it) through https://dati.trentino.it/dataset/dati-recenti-delle-stazioni-meteo. Please see the link for major details.

Author(s)

Emanuele Cordano

Examples



metadata <- getMetaDataTrentino(return.type="list")

nn <- metadata $station_id ## names(metadata)[!(names(metadata) %in% c("T0365"))]

# Please uncomment the following run to run the command
# data <- getMeteoDataTrentino(station=metadata[nn])
data <- getMeteoDataTrentino(station=nn) 

#datap <- getMeteoDataTrentino(station=metadata[["T0153"]])




ecor/MeteoDataTrentino documentation built on Aug. 30, 2023, 2:04 a.m.