getMetaDataTrentino: Get metedata for Trentino Weather Station

View source: R/getMetaData.R

getMetaDataTrentinoR Documentation

Get metedata for Trentino Weather Station

Description

Get metedata for Trentino Weather Station

Usage

getMetaDataTrentino(
  url = "https://dati.meteotrentino.it/service.asmx/listaStazioni",
  return.type = c("data.frame", "attributed.list", "list"),
  header = c("latitude", "longitude", "station_name", "station_shortname", "altitude")
)

Arguments

url

URL with data. Default is "https://dati.meteotrentino.it/service.asmx/listaStazioni".

return.type

character string indicating the requested type for the function output. Default is "data.frame".

header

string vectors of station metadata, used if return.type=="list".

Details

The data are licensed as Open Data and released by Provincia Autonoma di Trento (www.meteotrentino.it) through http://dati.trentino.it/dataset/anagrafica-stazioni-meteo-stazioni-automatiche and http://dati.trentino.it/dataset/anagrafica-campi-neve. Please see the links for major details.

Author(s)

Emanuele Cordano

Examples


# WEATHER STATIONS
url <-  "https://dati.meteotrentino.it/service.asmx/listaStazioni"
metadata <- getMetaDataTrentino(url=url)
metadata_l <- getMetaDataTrentino(url=url,return.type="attributed.list")

# SNOW MEASUREMENT STATIONS 

url_snow <- "http://dati.meteotrentino.it/service.asmx/listaCampiNeve"
#metadata_snow <- getMetaDataTrentino(url=url_snow)
#metadata_snow_l <- getMetaDataTrentino(url=url_snow,return.type="attributed.list")

### raw_out_data


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