Last data update: 2014.03.03

R: Snow Weather Data in France
meteofranceR Documentation

Snow Weather Data in France

Description

The meteofrance data frame is a table containing snow and weather data obtained through MeteoDataFrance R package (https://github.com/ecor/MeteoDataFrance).

Usage

data(meteofrance)

Format

data.frame

Details

It is organized with the following fields:

"latitude":

latitude of the weather station;

"longitude":

longitude of the weather station;

"station_id":

id of the weather station;

"altitude":

altitude of the weather station;

"location":

location name of the weather station;

"timestamp":

POSIXlt date and time:

"VW","TA","TD","RH",...:

weather variables(name in accordance with SMET specification);

"*_reapeted":

the column is repeated

; The meteofrance data frem has an attribute: metaparam is a data frame containing meta info on the weather variables:

"Descriptif":

weather variable description provided by MeteoFrance (in French);

"IDparam","Mnemonique":

MeteoFrance id for the weather variable;

"type":

weather variable type;

"unite":

measerement unit of the weather variable;

"SMET_ID":

SMET id for the weather variable (they are used as field/column names in meteofrance);

"SMET_UNIT_MULTIPIPLIER":

SMET unit multiplier respect to the SMET_ID variable's MKSA unit (see SMET specifications);

"SMET_UNIT_OFFSET":

SMET unit offset respect to the SMET_ID variable's MKSA unit (see SMET specifications).

Author(s)

Emanuele Cordano

Source

https://donneespubliques.meteofrance.fr(in pariticular https://donneespubliques.meteofrance.fr/?fond=produit&id_produit=94&id_rubrique=32)

See Also

as.smet

Examples

 

library(ggmap)
data(meteofrance)

dates <- as.Date(meteofrance$timestamp)

data=meteofrance[dates==dates[1],]



map <- get_map(location ="France", zoom = 6)

size <- 3

gsnow <- ggmap(map) +
		geom_point(data = data,aes(x = longitude, y = latitude),size=size,  alpha
						=1, color="blue",show.legend  = FALSE)

## Uncomment if you want to save in PDF format the otput of gsnow
## ggsave("test-map.pdf", gsnow,width=10,height=10)
 

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RSMET)
Loading required package: stringr
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RSMET/meteofrance.Rd_%03d_medium.png", width=480, height=480)
> ### Name: meteofrance
> ### Title: Snow Weather Data in France
> ### Aliases: meteofrance
> 
> ### ** Examples
> 
>  
> 
> library(ggmap)
Loading required package: ggplot2
> data(meteofrance)
> 
> dates <- as.Date(meteofrance$timestamp)
> 
> data=meteofrance[dates==dates[1],]
> 
> 
> 
> map <- get_map(location ="France", zoom = 6)
Map from URL : http://maps.googleapis.com/maps/api/staticmap?center=France&zoom=6&size=640x640&scale=2&maptype=terrain&language=en-EN&sensor=false
Information from URL : http://maps.googleapis.com/maps/api/geocode/json?address=France&sensor=false
> 
> size <- 3
> 
> gsnow <- ggmap(map) +
+ 		geom_point(data = data,aes(x = longitude, y = latitude),size=size,  alpha
+ 						=1, color="blue",show.legend  = FALSE)
> 
> ## Uncomment if you want to save in PDF format the otput of gsnow
> ## ggsave("test-map.pdf", gsnow,width=10,height=10)
>  
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>