if (interactive()) {
# worldmet data
library(worldmet)
worldmet_stations <- worldmet::getMeta(lat = 42, lon = 0, n = 2, plot = FALSE)
worldmet_subdaily_2022 <-
worldmet::importNOAA(worldmet_stations$code, year = 2022, hourly = TRUE)
# just convert
worldmet2meteoland(worldmet_subdaily_2022)
# convert and complete
worldmet2meteoland(worldmet_subdaily_2022, complete = TRUE)
}
Run the code above in your browser using DataLab