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
256 stars 85 forks source link

readNWISgwl does not seem to use the parameter code... #713

Open jmusgs opened 5 days ago

jmusgs commented 5 days ago

When retrieving discrete groundwater level data and specifying parameter code 72019,

dataRetrieval returns all groundwater parameter codes.

note, using the version from remotes::install_github("DOI-USGS/dataRetrieval")

I have returned to the CRAN version for now and it works correctly.

data5 <- readNWISgwl("263819081585801", parameterCd = "72019")

head(data5)

agency_cd site_no site_tp_cd lev_dt lev_tm lev_tz_cd_reported lev_va sl_lev_va sl_datum_cd lev_status_cd 1 USGS 263819081585801 GW 1982-10-12 13:15 UTC NA -10.40 NGVD29 1 2 USGS 263819081585801 GW 1982-10-12 13:15 UTC NA -11.53 NAVD88 1 3 USGS 263819081585801 GW 1982-10-12 13:15 UTC 23.4 NA 1 4 USGS 263819081585801 GW 1983-05-11 15:50 UTC NA -18.50 NGVD29 1 5 USGS 263819081585801 GW 1983-05-11 15:50 UTC NA -19.63 NAVD88 1 6 USGS 263819081585801 GW 1983-05-11 15:50 UTC 31.5 NA 1 lev_agency_cd lev_dt_acy_cd lev_acy_cd lev_src_cd lev_meth_cd lev_age_cd parameter_cd lev_dateTime lev_tz_cd 1 USGS m 2 S S A 62610 1982-10-12 13:15:00 UTC 2 USGS m 2 S S A 62611 1982-10-12 13:15:00 UTC 3 USGS m 2 S S A 72019 1982-10-12 13:15:00 UTC 4 USGS m 2 S S A 62610 1983-05-11 15:50:00 UTC 5 USGS m 2 S S A 62611 1983-05-11 15:50:00 UTC 6 USGS m 2 S S A 72019 1983-05-11 15:50:00 UTC