FlowWest / CDECRetrieve

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

Does not collect consecutive entries of the same number. #52

Closed mriddlebarger closed 3 years ago

mriddlebarger commented 4 years ago

ex. snow water content 4/1/1945 0.8 5/1/1945 0.8

the only data collected will be 5/1/1945, a CDEC query will show that CDECRetrieve did not collect the 4/1/1945 data point.

ergz commented 4 years ago

can you provide the CDECRretrive call that results in this?

mriddlebarger commented 4 years ago

require(CDECRetrieve) bns_snoadj <- CDECRetrieve::cdec_query("bns", "82", "M", "1945-01-01", "2020-04-01")

The specific example is 4/1/1948 13.70 and 5/1/1948 13.70, not the previous one I wrote

Thanks

ergz commented 4 years ago

when I perform the query on cdec (for a shorter date range that captures the issue dates) it creates the following url: https://cdec.water.ca.gov/dynamicapp/req/CSVDataServlet?Stations=BNS&SensorNums=82&dur_code=M&Start=1947-01-01&End=1950-01-01 it does not return an April value for 1948, can you link the query tool page you use on CDEC that returns the dataset with the April 1948 value?

mriddlebarger commented 4 years ago

https://cdec.water.ca.gov/dynamicapp/selectQuery

ergz commented 4 years ago

yeah I see it now, I will have to contact CDEC maintainers to see why two query pages return different datasets, and determine which is the correct one to use. You are using the HTML view page but CDECRetrieve uses the General Download page.

mriddlebarger commented 4 years ago

Interesting, thanks for the answers.