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
13 changes: 5 additions & 8 deletions tutorials/basic_slides_deck.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ dt_me(df |>

## Workflow 1: Plot Daily Data

In our next session, we will dive into using `ggplot2` to visualize the data. Here is a sneak peak at a very simple plot:
Let's use `ggplot2` to visualize the data.

```{r}
#| echo: true
Expand Down Expand Up @@ -610,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 if you run it locally, use `View` to inspect within RStudio.
That's a LOT of columns that come back. We won't look at them here, but you can use `View` in RStudio to explore on your own.

::: footer

Expand Down Expand Up @@ -649,7 +649,7 @@ dt_me(df, escape = FALSE, paging = FALSE)

## Workflow 2: Discrete data censoring

Let's pull just a few columns out and look at those:
Let's pull a few columns out and look at those:

```{r}
library(dplyr)
Expand Down Expand Up @@ -731,7 +731,7 @@ qw_data_joined <- qw_data |>
by = c("Activity_StartDate" = "time"))
```

* "Activity_StartDate" (on the left side data frame) and "time" (on the right side data frame) need to be the same type.
* "Activity_StartDate" (on the left side data frame) and "time" (on the right side data frame) need to be the same type (in this case, both are Date objects).


::: footer
Expand Down Expand Up @@ -926,7 +926,7 @@ ggplot(data = closest_dt) +
```


## Data Discovery (if enough time!)
## Data Discovery

The process for discovering data is a bit in flux with NWIS retiring. I expect a new process will be introduced soon. For now here are some options.

Expand Down Expand Up @@ -981,8 +981,6 @@ dt_me(discrete_available |>

## characteristicUserSupplied {.smaller}

* The column "characteristicUserSupplied" is internally referred to as "observed property".

* characteristicUserSupplied can be an input to `read_waterdata_sample`

```{r}
Expand All @@ -992,7 +990,6 @@ nrow(discrete1)
```


* `summarize_waterdata_samples` may be adding a parameter code to the output in the future.

## More Information {.smaller}

Expand Down
26 changes: 2 additions & 24 deletions tutorials/changes_slides_deck.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ New to `dataRetrieval`? [Introduction to dataRetrieval](https://water.code-pages

- Timeline is very uncertain, so we wanted to get information out on replacement functions ASAP.

- Latest rumor: not before 2026, but performance degradation happening now

* New `dataRetrieval` functions are available to replace the NWIS functions

- `read_waterdata_` functions are the modern functions
Expand Down Expand Up @@ -123,26 +121,6 @@ The "develop" branch WILL change frequently, and there are no promises of future

:::

## External Documentation

![](images/documentation_1.png){width="1000" height="500"}

::: footer
<https://doi-usgs.github.io/dataRetrieval>
:::

## External Documentation

![](images/documentation_2.png){width="1000" height="500"}

::: footer
<https://doi-usgs.github.io/dataRetrieval/reference/index.html>
:::

## External Documentation

![](images/documentation_3.png){width="1000" height="500"}

## USGS Water Data OGC APIs: Current Functions {.smaller}

Open Geospatial Consortium (OGC), a non-profit international organization that develops and promotes open standards for geospatial information. OGC-compliant interfaces to USGS water data:
Expand Down Expand Up @@ -175,8 +153,8 @@ Open Geospatial Consortium (OGC), a non-profit international organization that d
* You **might** run into errors quickly. If you (or your IP!) have exceeded the quota, you will see:

```
error: HTTP 403 Forbidden.
* Query request denied. Possible reasons include query exceeding server limits.
! HTTP 429 Too Many Requests.
• You have exceeded your rate limit. Make sure you provided your API key from https://api.waterdata.usgs.gov/signup/, then either try again later or contact us at https://waterdata.usgs.gov/questions-comments/?referrerUrl=https://api.waterdata.usgs.gov for assistance.
```

## USGS Water Data API Token
Expand Down
Loading