ropensci / tidyhydat

An R package to import Water Survey of Canada hydrometric data and make it tidy
https://docs.ropensci.org/tidyhydat
Apache License 2.0
70 stars 19 forks source link

Missing realtime data #174

Closed giligone closed 2 years ago

giligone commented 2 years ago

Discussed in https://github.com/ropensci/tidyhydat/discussions/173

Originally posted by **giligone** June 16, 2022 I would first like to thank you for your R package “tidyhydat”. It is great and I use it regularly. I had a couple questions First, I’m trying to extract data for a site ([08NM158](https://wateroffice.ec.gc.ca/report/real_time_e.html?stn=08NM158)). The data are clearly up to date via the Water Office website (see graph). ![water office graph](https://user-images.githubusercontent.com/47872403/173957636-d472a46e-aa86-4dd6-813e-16602e75656c.png) And I can see using tidyhydat that it has found the site and shows for “REAL_TIME” that it is TRUE ![station_search](https://user-images.githubusercontent.com/47872403/173957672-9c2d116f-1456-4b75-8d47-638c676a24f1.png) But if I try and query these data I get this error ![realtime results](https://user-images.githubusercontent.com/47872403/173957692-38f8ba80-e8b0-4405-b169-6c597bc9154e.png) When I do a query with hy_daily_flows I can see potentially the problem. This site was formerly active, discontinued in 1982, and then reactivated but the tidyhydat appears only to have the old data. ![hydaily](https://user-images.githubusercontent.com/47872403/173957708-560a3dbd-06c7-40e1-acdf-cff6c4de7010.png) Is this likely to be the issue? Is there any way to work around this? My second question is that this site also stores turbidity data. I know tidyhydat does not currently support this type of data but is there any potential that it could become supported in the future? Thanks for your time Kind regards
hydropatch commented 2 years ago

Hey there. That function relies on data from the ECCC datamart: https://dd.weather.gc.ca/hydrometric/csv/BC/hourly/ For some reason the station wasn’t available on the website so I contacted ECCC and they have now made that station available so realtime_dd(station_number = "08NM158") now works! P