You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the WQP ocean country queries are not working. Using USGS dataRetrieval in R I received a more helpful error message than when I queried the WQP service directly. The error message that DR reports is that the codes must be in the format [A-Z]{2}, meaning two capital letters. It seems like all the ocean codes won’t work because they include numbers: https://www.waterqualitydata.us/Codes/countrycode
To Reproduce
Code to reproduce the behavior:
library(dataRetrieval)
test= readWQPdata(countrycode="3M", dataProfile="resultPhysChem", ignore_attributes=TRUE, startDate="2013-01-01")
library(TADA)
test= TADA_DataRetrieval(countrycode="3M", startDate="2013-01-01")
[1] "Downloading WQP query results. This may take some time depending upon the query size."Requestfailed [400].Retryingin1seconds...Requestfailed [400].Retryingin1.6seconds...Bad Request (HTTP400).299WQP"The value of countrycode=3M must match the format [A-Z]{2}"Errorin attr(retval, "queryTime") <- Sys.time() :attempttosetanattributeonNULL
Expected behavior
We should be able to query the WQP for ocean data using the country codes.
The text was updated successfully, but these errors were encountered:
Describe the bug
I noticed the WQP ocean country queries are not working. Using USGS dataRetrieval in R I received a more helpful error message than when I queried the WQP service directly. The error message that DR reports is that the codes must be in the format [A-Z]{2}, meaning two capital letters. It seems like all the ocean codes won’t work because they include numbers: https://www.waterqualitydata.us/Codes/countrycode
To Reproduce
Code to reproduce the behavior:
Expected behavior
We should be able to query the WQP for ocean data using the country codes.
The text was updated successfully, but these errors were encountered: