
Last chance! 50% off unlimited learning
Sale ends in
Downloads minimum and maximum temperature station data from Argentina's National Weather Service's public access. Data availability is not guaranteed so you are encouraged to check it on the website.
GetSMNData(
date,
type = c("hourly", "daily", "radiation"),
bar = FALSE,
cache = TRUE,
file.dir = tempdir()
)
For type = "hourly"
, a data.frame with observations of
date
temperature in degrees celsius
relative humidity in %
sea level pressure in hPa
wind direction in clockwise degrees from 6 o'clock
wind magnitude in m/s
station name
For type = "daily"
, a data.frame with observations of
date
maximum daily temperature in degrees celsius
minimum daily temperature in degrees celsius
station name
For type = "radiation"
, a data.frame with observations of
date
global radiation in W/m^2
diffuse radiation in W/m^2
station name
date vector of dates to fetch data
type of data to retrieve
logical object indicating whether to show a progress bar
logical indicating if the results should be saved on disk
optional directory where to save and/or retrieve data
if (FALSE) {
dates <- seq.Date(lubridate::today() - 30, lubridate::today(), by = "1 day")
data <- GetSMNData(dates, type = "daily", bar = TRUE)
library(ggplot2)
ggplot(subset(data, station == "BASE BELGRANO II"),
aes(date, (tmax + tmin)/2)) +
geom_line()
}
Run the code above in your browser using DataLab