Learn R Programming

solaR (version 0.23)

A8_readMAPA: Meteorological data from www.mapa.es/siar

Description

Download and transform meteorological data from www.mapa.es/siar for a station of a province (Spain) in a time period.

Usage

readMAPA(prov, est, start, end, lat=0, format='%d/%m/%Y')

Arguments

prov
numeric, number of the spanish province according to the information of RedEstaciones.
est
numeric, number of the station according to the information of RedEstaciones.
start
character, first day of the time period.
end
character, last day of the time period.
lat
numeric, latitude (degrees) of the station.
format
character string with the format of the start and end dates. (Default: '%d/%m/%Y')

Value

  • Meteo object, with the information available at www.mapa.es/siar.

    It should be noted that SIAR uses MJ/m² units for the irradiation data and readMAPA converts the values to Wh/m².

encoding

UTF-8

References

www.mapa.es/siar

See Also

readG0dm, readBD, fTemp, RedEstaciones.

Examples

Run this code
#Aranjuez, Madrid
BD<-readMAPA(28,3,'01/01/2008','31/12/2008')

xyplot(TempMedia~G0|equal.count(VelViento),data=BD)

Run the code above in your browser using DataLab