A8_readSIAR | R Documentation |
Download, interpolate and transform meteorological data fromm the SIAR network.
readSIAR(Lon = 0, Lat = 0,
inicio = paste(year(Sys.Date())-1, '01-01', sep = '-'),
final = paste(year(Sys.Date())-1, '12-31', sep = '-'),
tipo = 'Mensuales', n_est = 3)
Lon |
numeric, longitude (degrees) of the location. |
Lat |
numeric, latitude (degrees) of the location. |
inicio |
character or Date, first day of the records. |
final |
character or Date, last day of the records. |
tipo |
character, tipe of the records. To choose between
|
n_est |
integer, select that number of stations closest to the given point and then perform an IDW (Inverse Distance Weighting) interpolation with these data. |
A Meteo
object
Francisco Delgado López, Oscar Perpiñán Lamigueiro.
readG0dm
,
readBDd
library("data.table")
library("httr2")
library("jsonlite")
SIAR = readSIAR(Lon = -3.603, Lat = 40.033,
## Aranjuez, Comunity of Madrid, Spain
inicio = '2023-01-01',
final = '2023-05-01',
tipo = 'Mensuales', n_est = 3)
SIAR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.