ropensci / wateRinfo

R package to download time series data from waterinfo.be
https://docs.ropensci.org/wateRinfo
MIT License
13 stars 3 forks source link

MOW-HIC #18

Open PieterjanVerhelst opened 6 years ago

PieterjanVerhelst commented 6 years ago

The wateRinfo package is very usefull and transparant in downloading environmental data from the waterinfo.be database. However, it would be an added value if the data from MOW-HIC would be downloadable with the package as well. Now we can only get a part (i.e. the VMM part) of the available data via wateRinfo.

stijnvanhoey commented 6 years ago

This is indeed a valid question, which we'll provide to MOW-HIC. Technically, we need the representative timeseriesgroup_id of these variables. (Notice that we do not have any direct influence on the data availability and the package works with the available data)

For the moment, for some of the variables, the workflow described in this vignette will help you to get data for some (not all) MOW-HIC data already. After requesting the available variables for a station:

available_variables <- get_variables("zes42a-1066")

check the list for those variables that you need and use the representing ts_id to download the data as usual:

tide_stamands <- get_timeseries_tsid("2810011", 
                                     from = "2017-06-01", to = "2017-06-05",
                                     datasource = 2)

Remark: the necessity of datasource = 2 as argument!