Skip to content

Commit 1f35505

Browse files
committed
Add note to moving averages
1 parent 33cca39 commit 1f35505

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ If you have additional questions about these changes, email CompTools@usgs.gov.
5454

5555
7. Find Hydro Network-Linked Data Index (NLDI) data. Start here: `?findNLDI`
5656

57+
8. Add a USGS WaterData API token to your R environment. See: <https://doi-usgs.github.io/dataRetrieval/articles/read_waterdata_functions.html#api-tokens>
58+
5759
For additional tutorials, see:
5860

5961
[Basic Tutorial](https://doi-usgs.github.io/dataRetrieval/articles/tutorial.html)

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ If you have additional questions about these changes, email
5555
7. Find Hydro Network-Linked Data Index (NLDI) data. Start here:
5656
`?findNLDI`
5757

58+
8. Add a USGS WaterData API token to your R environment. See:
59+
<https://doi-usgs.github.io/dataRetrieval/articles/read_waterdata_functions.html#api-tokens>
60+
5861
For additional tutorials, see:
5962

6063
[Basic
@@ -196,14 +199,14 @@ NWIScitation
196199
#> U.S. Geological Survey (2025). _National Water Information System data
197200
#> available on the World Wide Web (USGS Water Data for the Nation)_.
198201
#> doi:10.5066/F7P55KJN <https://doi.org/10.5066/F7P55KJN>, Accessed Nov
199-
#> 17, 2025,
202+
#> 24, 2025,
200203
#> <https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01>.
201204
print(NWIScitation, style = "Bibtex")
202205
#> @Manual{,
203206
#> title = {National Water Information System data available on the World Wide Web (USGS Water Data for the Nation)},
204207
#> author = {{U.S. Geological Survey}},
205208
#> doi = {10.5066/F7P55KJN},
206-
#> note = {Accessed Nov 17, 2025},
209+
#> note = {Accessed Nov 24, 2025},
207210
#> year = {2025},
208211
#> url = {https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01},
209212
#> }
@@ -227,14 +230,14 @@ WQPcitation <- create_WQP_bib(SC)
227230
WQPcitation
228231
#> National Water Quality Monitoring Council (2025). _Water Quality
229232
#> Portal_. doi:10.5066/P9QRKUVJ <https://doi.org/10.5066/P9QRKUVJ>,
230-
#> Accessed Nov 17, 2025,
233+
#> Accessed Nov 24, 2025,
231234
#> <https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv>.
232235
print(WQPcitation, style = "Bibtex")
233236
#> @Manual{,
234237
#> title = {Water Quality Portal},
235238
#> author = {{National Water Quality Monitoring Council}},
236239
#> doi = {10.5066/P9QRKUVJ},
237-
#> note = {Accessed Nov 17, 2025},
240+
#> note = {Accessed Nov 24, 2025},
238241
#> year = {2025},
239242
#> url = {https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv},
240243
#> }

vignettes/movingAverages.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ editor_options:
1616
chunk_output_type: console
1717
---
1818

19+
:warning:
20+
This post is very old! A better way to do all these plots and calculations can be found here: <https://doi-usgs.github.io/HASP/>
21+
22+
1923
This post will show simple way to calculate moving averages, calculate historical-flow quantiles, and plot that information. The goal is to reproduce the graph at this link:
2024
[PA Graph](http://pa.water.usgs.gov/drought/indicators/sw/images/f30_01538000.html). The motivation for this post was inspired by a USGS colleague that that is considering creating these type of plots in R. We thought this plot provided an especially fun challenge - maybe you will, too!
2125

0 commit comments

Comments
 (0)