Skip to content

Commit bfec837

Browse files
Merge pull request #801 from ldecicco-USGS/main
latest id
2 parents 6d8dd47 + ab17e65 commit bfec837

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,4 @@ vignettes/messyData.png
9999
^docker$
100100
vignettes/WQX_3.Rmd
101101
vignettes/samples_data.Rmd
102+
tests/manual/*

R/read_waterdata_latest_continuous.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' @param last_modified `r get_params("latest-continuous")$last_modified`
1414
#' @param time_series_id `r get_params("latest-continuous")$time_series_id`
1515
#' @param qualifier `r get_params("latest-continuous")$qualifier`
16-
#' @param daily_id `r get_params("latest-continuous")$id`
16+
#' @param latest_continuous_id `r get_params("latest-continuous")$id`
1717
#' @param properties A vector of requested columns to be returned from the query.
1818
#' Available options are:
1919
#' `r schema <- check_OGC_requests(endpoint = "latest-continuous", type = "schema"); paste(names(schema$properties), collapse = ", ")`
@@ -67,7 +67,7 @@ read_waterdata_latest_continuous <- function(monitoring_location_id = NA_charact
6767
statistic_id = NA_character_,
6868
properties = NA_character_,
6969
time_series_id = NA_character_,
70-
daily_id = NA_character_,
70+
latest_continuous_id = NA_character_,
7171
approval_status = NA_character_,
7272
unit_of_measure = NA_character_,
7373
qualifier = NA_character_,

man/read_waterdata_latest_continuous.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/tutorial.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ For a longer introduction to the `dataRetrieval` package, see:
6868

6969
* National Water Information System (NWIS)
7070
* Water Quality Portal (WQP)
71-
* USGS APIs (USGS), which are new or in-development .
71+
* USGS APIs (Water Data), which are new or in-development .
7272

7373
Functions in `dataRetrieval` look like `readNWISdv`, `readNWISuv`, `readWQPqw`, `whatNWISdata`, etc. What does that mean? The functions are generally structured with a prefix, middle, and suffix:
7474

7575
* _Prefix_: "read" or "what"
7676
+ "read" will access full data sets
7777
+ "what" will access data availability
78-
* _Middle_: "NWIS", "USGS", "WQP":
78+
* _Middle_: "NWIS", "waterdata", "WQP":
7979
+ NWIS functions get data from legacy NWIS web services.
80-
+ USGS functions are the functions that will eventually replace the legacy NWIS functions. These pull from modern USGS API services.
80+
+ Water Data (waterdata) functions are the functions that will eventually replace the legacy NWIS functions. These pull from modern USGS API services.
8181
+ WQP functions are for discrete water-quality data from the Water Quality Portal.
8282
* _Suffix_: "data" or other:
8383
+ Functions that end in "data": These are flexible, powerful functions that allow complex user queries.
@@ -94,7 +94,7 @@ There are many types of data served from NWIS. To understand how the services ar
9494
* Legacy NWIS services will be retired (scheduled 2026, but uncertain):
9595
* <https://waterdata.usgs.gov/blog/nwisweb-decommission-summary/>
9696

97-
* USGS functions will slowly replace NWIS functions
97+
* USGS water data functions will slowly replace NWIS functions
9898
* `read_waterdata_samples` has replaced `readNWISqw`
9999
* `read_waterdata_daily` can replace `readNWISdv`
100100
* `read_waterdata_monitoring_location` can replace `readNWISsite`

0 commit comments

Comments
 (0)