Commit b5bb8342 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle
Browse files

add example for multi-stations and multi-elements

parent a15b4b7a
......@@ -25,12 +25,22 @@ tmp <- frostr::get_short_data(frostObj=frostr,stations="SN18700",referencetime='
tmp <- frostr::get_short_data(frostObj=frostr,stations="SN18700",referencetime='2017-01-01T00:00:00Z/2017-01-02T12:00:00',elements='sum(precipitation_amount PT1H)')
west <- 10
south <- 60
north <- 65
east <- 11
res <- frostr::get_short_meta_station_with_element(frostObj=frostr,west=10,south=60,east=11,north=65,elements='sum(precipitation_amount PT1H)')
tmp <- frostr::get_short_data(frostObj=frostr,stations=res$ID,referencetime='2017-01-01T00:00:00Z',elements='sum(precipitation_amount PT1H)')
referencetime <- '2017-01-01T00:00:00Z/2017-01-02T12:00:00'
elements <- c("sum(precipitation_amount PT1H)",
"wind_from_direction",
"wind_speed",
"surface_air_pressure",
"mean(surface_downwelling_shortwave_flux_in_air PT1H)",
"air_temperature",
"relative_humidity")
res <- frostr::get_short_meta_station_with_element(frostObj=frostr,stations=NULL,west=10.57,south=59.75,east=60.07,north=10.89,elements=elements)
tmp <- frostr::get_short_data(frostObj=frostr,stations=res$ID,referencetime='2017-01-01T00:00:00Z/2017-01-02T12:00:00',elements=elements,timeresolutions="PT1H")
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment