FlowWest / CDECRetrieve

An R package to retrieve CDEC data
https://flowwest.github.io/CDECRetrieve/
Other
7 stars 5 forks source link

cdec_stations() error - possibly because of new page structure at cdec.water.ca.gov #53

Closed cmkouba closed 3 years ago

cmkouba commented 3 years ago

Hello, this package has been very handy for our research project - thanks very much for developing it.

Recently, the cdec_stations() function started throwing a 404 error (specifically, "Error in open.connection(x, "rb") : HTTP error 404.") For example, the error comes up if you run this code:

library(CDECRetrieve) sisq_stations = cdec_stations(county = "siskiyou")

I investigated the cause and I think it's because the CDEC Station Search service is no longer at https://cdec.water.ca.gov/cgi-progs/staSearch. The new service might be at this url: https://cdec.water.ca.gov/dynamicapp/staSearch

Flagging this in case you want to update it to reference the new webpage.

ergz commented 3 years ago

thank you, will be looking into this