diff --git a/workspace/00_get_data.Rmd b/workspace/00_get_data.Rmd index 5e2152403b7d6fa810bcaee1f4948b0dd5bd7ca1..ca24adecb3707212088a9cd0c6e447ef12564252 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 #