DOI-USGS / dataRetrieval

This R package is designed to obtain USGS or EPA water quality sample data, streamflow data, and metadata directly from web services.
https://doi-usgs.github.io/dataRetrieval/
Other
260 stars 84 forks source link

readNWISgwl doesn't pull data for sites with other than USGS for agency code #725

Closed jmusgs closed 1 month ago

jmusgs commented 1 month ago

Description Can't pull discrete water level data for sites with an agency code other than USGS. Example An example for a site in OH. https://nwis.waterdata.usgs.gov/nwis/gwlevels?site_no=383638082103300&agency_cd=OH015&format=html

library(dataRetrieval)
temp <- readNWISgwl(
  "383638082103300",
  startDate = "",
  endDate = "",
  parameterCd = "72019",
  tz = "America/New_York"
)

Expected behavior Should return groundwater levels Screenshots No sites/data found using the selection criteria specified Error in data$lev_dt : $ operator is invalid for atomic vectors

jmusgs commented 1 month ago

[like] Mullaney, John R reacted to your message:


From: Laura DeCicco @.> Sent: Wednesday, August 21, 2024 8:35:10 PM To: DOI-USGS/dataRetrieval @.> Cc: Mullaney, John R @.>; Author @.> Subject: [EXTERNAL] Re: [DOI-USGS/dataRetrieval] readNWISgwl doesn't pull data for sites with other than USGS for agency code (Issue #725)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Closed #725https://github.com/DOI-USGS/dataRetrieval/issues/725 as completed via #726https://github.com/DOI-USGS/dataRetrieval/pull/726.

— Reply to this email directly, view it on GitHubhttps://github.com/DOI-USGS/dataRetrieval/issues/725#event-13966367691, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD7GNPCTZLSOQKGCTOADB43ZST2X5AVCNFSM6AAAAABM4BQSO6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTHE3DMMZWG43DSMI. You are receiving this because you authored the thread.Message ID: @.***>