ropensci/hydroscoper

Name: hydroscoper

Owner: rOpenSci

Description: R interface to the Greek National Data Bank for Hydrometeorological Information

Created: 2017-12-13 08:33:53.0

Updated: 2018-03-17 16:12:44.0

Pushed: 2018-03-17 16:12:43.0

Homepage: https://ropensci.github.io/hydroscoper/

Size: 3078

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hydroscoper

Travis-CI Build Status AppVeyor Build Status codecov minimal R version CRAN\_Status\_Badge packageversion ropensci DOI DOI

hydroscoper is an R interface to the Greek National Data Bank for Hydrological and Meteorological Information, Hydroscope. For more details checkout the package's website and the vignettes:

Installation

Install the stable release from CRAN with:

all.packages("hydroscoper")

You can install the development version from GitHub with:

stall.packages("devtools")
ools::install_github("ropensci/hydroscoper")
Using hydroscoper

The functions that are provided by hydroscoper are:

The data sets that are provided by hydroscoper are:

Example

This is a minimal example which shows how to get the station's 200200 precipitation time series 56 from the kyy sub-domain.

Load libraries and get data:

ary(hydroscoper)
ary(tibble)
ary(ggplot2)

aw <- get_data(subdomain = "kyy", time_id = 56)
aw
 A tibble: 147,519 x 3
  date                value comment
  <dttm>              <dbl> <chr>  
1 1985-05-06 08:00:00    0. 1      
2 1985-05-06 08:30:00    0. 1      
3 1985-05-06 09:00:00    0. 1      
4 1985-05-06 09:30:00    0. 1      
5 1985-05-06 10:00:00    0. 1      
6 1985-05-06 10:30:00    0. 1      
7 1985-05-06 11:00:00    0. 1      
8 1985-05-06 11:30:00    0. 1      
9 1985-05-06 12:00:00    0. 1      
0 1985-05-06 12:30:00    0. 1      
 ... with 147,509 more rows

Let's create a plot:

ot(data = ts_raw, aes(x = date, y = value))+
om_line()+
bs(title= "30 min precipitation for station 200200",
   x="Date", y = "Rain height (mm)")+
eme_classic()

Meta
References

Hydroscope

ropensci\_footer


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.