Description Usage Arguments Author(s) References See Also Examples
Get measured wether and snow data for French Alps and Pyrennes
1 2 3 4 5 6 7 8 9 10 11 12 | getMeteoDataFrance(url = "https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Nivo/nivo.XDATE.csv",
dest = system.file("dest", package = "MeteoDataFrance"),
method = c("wget", "curl"), dates = as.character(Sys.Date() - 10:1, format
= "%Y%m%d"), times = c(0, 3, 6, 9, 12, 15, 18, 21),
date_indicator = "XDATE", time_indicator = "XTIME",
force.download = FALSE, smet.output = TRUE, url_stationcoord = c(csv =
"https://donneespubliques.meteofrance.fr/\ndonnees_libres/Txt/Nivo/postesNivo.csv",
json =
"https://donneespubliques.meteofrance.fr/\ndonnees_libres/Txt/Nivo/postesNivo.json"),
spoutput = FALSE,
metaparam = read.table(system.file("metadata/paramnames.csv", package =
"MeteoDataFrance"), sep = ",", header = TRUE, stringsAsFactors = FALSE), ...)
|
url |
URL with data. See |
dest |
destination directory where the downladed csv file is saved |
method |
method applied in |
dates |
string containg dates on which date are requested to be downloaded. Actually the date format is |
times |
vector containg the hours at which date are requested to be downloaded (in case of subdaily data) |
date_indicator |
string contained in |
time_indicator |
string contained in |
force.download |
logical value. If |
smet.output |
logical value. Default is |
url_stationcoord |
string containings the |
spoutput |
logical value. Default is |
metaparam |
|
... |
further arguments |
Emanuele Cordano
https://donneespubliques.meteofrance.fr/?fond=rubrique,https://donneespubliques.meteofrance.fr/?fond=produit&id_produit=94&id_rubrique=32
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | library(stringr)
url <- "https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Nivo/nivo.XDATE.csv"
data <- getMeteoDataFrance(url=url,spoutput=TRUE)
head(data[data$numer_sta=="07729",])
## SYNOP DATE
url_synop <- "https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/synop.XDATEXTIME.csv"
url_stationcoord_synop <- c(
csv="https://donneespubliques.meteofrance.fr/
donnees_libres/Txt/Synop/postesSynop.csv",
json="https://donneespubliques.meteofrance.fr/
donnees_libres/Txt/Synop/postesSynop.json"
)
data_synop <- getMeteoDataFrance(url=url_synop,
url_stationcoord=url_stationcoord_synop,
spoutput=TRUE)
##https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/postesSynop.json
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.