Learn R Programming

meteoland (version 2.0.1)

downloadMGcurrentday: Download data from MeteoGalicia

Description

[Deprecated]

Download data from the Galician Meterology Agency (MeteoGalicia)

Usage

downloadMGcurrentday(station_id = NULL, daily = TRUE, verbose = TRUE)

downloadMGhistorical(date_from, date_to, station_id = NULL, verbose = TRUE)

downloadMGstationlist()

Value

Function downloadMGstationlist returns a SpatialPointsDataFrame object containing the list of MeteoGalicia weather stations currently operative. Function downloadMGhistorical downloads data for the specified MG weather stations (or all) and dates and returns a SpatialPointsMeteorology-class object with the downloaded meteorology for each station (point).

Function downloadMGcurrentday downloads recent weather data (the last 24h) from all currently available stations and returns data frame if daily = FALSE or a SpatialPointsDataFrame object with observations aggregated at the daily scale otherwise.

Arguments

station_id

A string vector containing station ids (the list of stations presently operative is given by downloadMGstationlist). If NULL all stations with available data are returned.

daily

Boolean flag. Are data to be returned at a daily or hourly scale?

verbose

Boolean flag to print process information.

date_from, date_to

Strings or objects of class Date specifying first and last date of the desired period.

Functions

  • downloadMGhistorical(): [Deprecated]

  • downloadMGstationlist(): [Deprecated]

Author

Miquel De Cáceres Ainsa, CREAF

Details

See available data services of MeteoGalicia at https://www.meteogalicia.gal/web/RSS/rssIndex.action?request_locale=es.

References

MeteoGalicia (from the Conselleria de Medio Ambiente, Territorio e Vivenda of Xunta de Galicia) should be acknowledged as source of information when using this data.

See Also

SpatialPointsMeteorology-class