From d158c0a135128becfd2f6031c52167df70e9c30c Mon Sep 17 00:00:00 2001 From: Mike Vlah Date: Thu, 28 Jul 2022 11:22:13 -0600 Subject: [PATCH 1/2] updated nhdplusv2 web location --- R/downloading_tools.R | 4 ++-- data-raw/build_boundary_data.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/downloading_tools.R b/R/downloading_tools.R index 467e90e6..0ab1497a 100644 --- a/R/downloading_tools.R +++ b/R/downloading_tools.R @@ -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) { diff --git a/data-raw/build_boundary_data.R b/data-raw/build_boundary_data.R index 273cc5df..b10b2977 100644 --- a/data-raw/build_boundary_data.R +++ b/data-raw/build_boundary_data.R @@ -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)) From 5aa2a8275afd8340c8d30b33f51b886c79422f13 Mon Sep 17 00:00:00 2001 From: Mike Vlah Date: Thu, 28 Jul 2022 11:31:42 -0600 Subject: [PATCH 2/2] rebuilt docs, etc --- man/download_nhdplusv2.Rd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/download_nhdplusv2.Rd b/man/download_nhdplusv2.Rd index 06ee0b65..46cc964e 100644 --- a/man/download_nhdplusv2.Rd +++ b/man/download_nhdplusv2.Rd @@ -6,7 +6,7 @@ \usage{ download_nhdplusv2( 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 ) @@ -35,7 +35,7 @@ are available. 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")) }