Skip to content

Commit

Permalink
Merge pull request #291 from vlahm/main
Browse files Browse the repository at this point in the history
updated nhdplusv2 web location
  • Loading branch information
dblodgett-usgs authored Jul 28, 2022
2 parents 3119b92 + 5aa2a82 commit b9175bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/downloading_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ download_nhdplushr <- function(nhd_dir, hu_list, download_files = TRUE) {
#' download_nhdplusV2("./data/nhd/")
#'
#' download_nhdplusv2(outdir = "./inst/",
#' url = paste0("https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/",
#' url = paste0("https://edap-ow-data-commons.s3.amazonaws.com/NHDPlusV21/",
#' "Data/NationalData/NHDPlusV21_NationalData_Seamless",
#' "_Geodatabase_HI_PR_VI_PI_03.7z"))
#' }

download_nhdplusv2 <- function(outdir,
url = paste0("https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/",
url = paste0("https://edap-ow-data-commons.s3.amazonaws.com/NHDPlusV21/",
"Data/NationalData/NHDPlusV21_NationalData_Seamless",
"_Geodatabase_Lower48_07.7z"),
progress = TRUE) {
Expand Down
2 changes: 1 addition & 1 deletion data-raw/build_boundary_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ library(archive)
library(rmapshaper)
library(nhdplusTools)

epa_path <- "https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/Data/GlobalData/NHDPlusV21_NHDPlusGlobalData_03.7z"
epa_path <- "https://edap-ow-data-commons.s3.amazonaws.com/NHDPlusV21/Data/GlobalData/NHDPlusV21_NHDPlusGlobalData_03.7z"
zip <- file.path("data/nhdglobal.7z")

GET(epa_path, write_disk(zip))
Expand Down
4 changes: 2 additions & 2 deletions man/download_nhdplusv2.Rd

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

0 comments on commit b9175bf

Please sign in to comment.