From 52c2418e52485284d35a980fdcb50f5e377991e7 Mon Sep 17 00:00:00 2001 From: mikejohnson51 <jmj00@ucsb.edu> Date: Tue, 3 May 2022 10:47:55 -0600 Subject: [PATCH] add ref_catchments to get_data --- workspace/00_get_data.Rmd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/workspace/00_get_data.Rmd b/workspace/00_get_data.Rmd index 5e21524..ca24ade 100644 --- a/workspace/00_get_data.Rmd +++ b/workspace/00_get_data.Rmd @@ -656,6 +656,23 @@ if(!file.exists(out$ref_flowline)) { out_list <- c(out_list, out) ``` +```{r reference_catchments} + +out <- list(ref_catchment = file.path(out_list$nhdplus_dir, (sb_c <- "reference_catchments.gpkg"))) + +if(!file.exists(out$ref_catchment)) { + if(is.null(sbtools::current_session())) + authenticate_sb() + + sbtools::item_file_download("61295190d34e40dd9c06bcd7", + names = sb_c, + destinations = out$ref_catchment) +} + +out_list <- c(out_list, out) +``` + + ```{r res} # Download Reservoir and dams data: ResOps, ISTARF and GRanDd # -- GitLab