NCAR / rwrfhydro

A community-contributed tool box for managing, analyzing, and visualizing WRF Hydro (and NWM) input and output files in R.
Other
74 stars 68 forks source link

coData <- GetUsgsHucData(huc=huc8) Error: All components of query must be named #119

Open LilyZ123 opened 1 year ago

LilyZ123 commented 1 year ago

Dear Sir/Madam,

I am trying to learn to use rwrfhydro to evaluate streamflow. I used the example in /vignettes/streamflowEvalUsgsObs.R. When I run the lines below, there is an error. I doubt if GetUsgsHucData still works. Could you help me with this error?

---- results='hold', eval=FALSE-----------------------------------------

coData <- GetUsgsHucData(huc=huc8) ## this can take a little while... Error: All components of the query must be name

Thank you.

Lily

LilyZ123 commented 10 months ago

I found it may be related with the line in usgs_ingest.R: need to add siteNumber = to fix it meta <- dataRetrieval::whatNWISdata(siteNumber = stns$site_no, service = "uv")