Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions R/read_waterdata_field_measurements.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
#'
#' old_df <- read_waterdata_field_measurements(monitoring_location_id = "USGS-425957088141001",
#' time = c("1980-01-01", NA))
#'
#' surface_water <- read_waterdata_field_measurements(
#' monitoring_location_id = c("USGS-07069000",
#' "USGS-07064000",
#' "USGS-07068000"),
#' time = "2024-07-01T00:00:00Z/..",
#' parameter_code = "00060")
#'
#'
#' }
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If you have additional questions about these changes, email [email protected].

2. Get daily USGS data (for example, mean daily discharge). Start here: `?read_waterdata_daily`

3. Get USGS groundwater data. Start here: `?read_waterdata_field_measurements`
3. Get discrete USGS groundwater data. Start here: `?read_waterdata_field_measurements`

4. Get discrete water quality data from a cooperative service that integrates publicly available water-quality data from the USGS, EPA, and over 400 state, federal, tribal, and local agencies. Start here: `?readWQPdata`

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you have additional questions about these changes, email
2. Get daily USGS data (for example, mean daily discharge). Start here:
`?read_waterdata_daily`

3. Get USGS groundwater data. Start here:
3. Get discrete USGS groundwater data. Start here:
`?read_waterdata_field_measurements`

4. Get discrete water quality data from a cooperative service that
Expand Down Expand Up @@ -196,15 +196,15 @@ NWIScitation <- create_NWIS_bib(dv)
NWIScitation
#> U.S. Geological Survey (2025). _National Water Information System data
#> available on the World Wide Web (USGS Water Data for the Nation)_.
#> doi:10.5066/F7P55KJN <https://doi.org/10.5066/F7P55KJN>, Accessed Jul
#> 21, 2025,
#> doi:10.5066/F7P55KJN <https://doi.org/10.5066/F7P55KJN>, Accessed Aug
#> 14, 2025,
#> <https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01>.
print(NWIScitation, style = "Bibtex")
#> @Manual{,
#> title = {National Water Information System data available on the World Wide Web (USGS Water Data for the Nation)},
#> author = {{U.S. Geological Survey}},
#> doi = {10.5066/F7P55KJN},
#> note = {Accessed Jul 21, 2025},
#> note = {Accessed Aug 14, 2025},
#> year = {2025},
#> url = {https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01},
#> }
Expand All @@ -228,14 +228,14 @@ WQPcitation <- create_WQP_bib(SC)
WQPcitation
#> National Water Quality Monitoring Council (2025). _Water Quality
#> Portal_. doi:10.5066/P9QRKUVJ <https://doi.org/10.5066/P9QRKUVJ>,
#> Accessed Jul 21, 2025,
#> Accessed Aug 14, 2025,
#> <https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv>.
print(WQPcitation, style = "Bibtex")
#> @Manual{,
#> title = {Water Quality Portal},
#> author = {{National Water Quality Monitoring Council}},
#> doi = {10.5066/P9QRKUVJ},
#> note = {Accessed Jul 21, 2025},
#> note = {Accessed Aug 14, 2025},
#> year = {2025},
#> url = {https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv},
#> }
Expand Down
7 changes: 7 additions & 0 deletions man/read_waterdata_field_measurements.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions tutorials/basic_slides_deck.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@ library(dataRetrieval)

:::

## Installation Notes

* Lots of R-package tips in [Best Practices](https://water.code-pages.usgs.gov/wq-visualizations-tools/training/postsbest_practices/best_practices.html#sec-packages)

* **Warning messages**: usually can ignore!

* **Error messages**: can't ignore!


## dataRetrieval: External Documentation

Expand Down Expand Up @@ -618,7 +610,7 @@ qw_data <- read_waterdata_samples(monitoringLocationIdentifier = site,
ncol(qw_data)
```

That's a LOT of columns that come back. We won't look at them here, but let's jump over to RStudio to look through the results.
That's a LOT of columns that come back. We won't look at them here, but if you run it locally, use `View` to inspect within RStudio.

::: footer

Expand Down
29 changes: 25 additions & 4 deletions tutorials/changes_slides_deck.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Open Geospatial Consortium (OGC), a non-profit international organization that d

* [read_waterdata_latest_continuous](https://doi-usgs.github.io/dataRetrieval/reference/read_waterdata_latest_continuous.html) - Latest continuous data

* [read_waterdata_field_measurements](https://doi-usgs.github.io/dataRetrieval/reference/read_waterdata_field_measurements.html) - Latest continuous data
* [read_waterdata_field_measurements](https://doi-usgs.github.io/dataRetrieval/reference/read_waterdata_field_measurements.html) - Discrete hydrologic data (gage height, discharge, and readings of groundwater levels)

* [read_waterdata](https://doi-usgs.github.io/dataRetrieval/reference/read_waterdata.html) - Generalized function

Expand Down Expand Up @@ -679,7 +679,7 @@ leaflet(data = sites_mn_wi |>

## read_waterdata HUCs

HUCs that fall within 02070010. Use the wildcard `%`
Let's find a list of sites with HUCs that fall within 02070010. Use the wildcard `%`

```{r}
# Here's how to get
Expand Down Expand Up @@ -776,11 +776,32 @@ In GitHub:
API_USGS_PAT: ${{ secrets.API_USGS_PAT }}
```

## Adding API token: Posit Connect
## Adding API token: Posit Connect {.smaller}

You'll want to add a token for any Posit Connect product (Shiny app, Quarto slides, etc.).

![](images/posit_connect.png)
:::: {.columns}

::: {.column width="35%"}

![](images/posit_connect.png){width=225}
:::

::: {.column width="5%"}
OR
:::

::: {.column width="60%"}

![](images/publish.png){width=600}

:::

::::

::: footer

:::

## Discrete Data {.smaller}

Expand Down
Binary file modified tutorials/images/publish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading