get_meteo | R Documentation |
The function gives back daily, monthly, or annual and aggregated or long-term means metorological data for specific location(s) and date(s) for entire World for 1961-2020 period from DailyMeteo portal (https://app.dailymeteo.com/).
get_meteo(loc,
var = "tmean",
agg_level = "agg",
time_scale = "day",
time,
from,
to,
api_key)
loc |
|
var |
|
agg_level |
|
time_scale |
|
time |
|
from |
|
to |
|
api_key |
|
data.frame object with columns loc
(location index from loc
argument), timestamp
(time reference), and value
(meteorological value).
Aleksandar Sekulić asekulic@grf.bg.ac.rs
get_coordinates
## Not run:
loc <- get_coordinates("Belgrade")
loc <- rbind(loc, get_coordinates("Kopaonik"))
loc
api_key <- "" # get API key from DailyMeteo portal (https://app.dailymeteo.com/)
result <- get_meteo(loc = loc,
var = "tmean",
agg_level = "agg",
time_scale = "day",
from = "2020-01-01",
to = "2020-01-02", # or use time = c("2020-01-01", "2020-01-02"),
api_key = api_key)
# result
# loc timestamp value
# 1 1 2020-01-01 0.7
# 2 1 2020-01-02 1.0
# 3 2 2020-01-01 -9.2
# 4 2 2020-01-02 -8.6
# 5 3 2020-01-01 -9.2
# 6 3 2020-01-02 -8.6
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.