Skip to content
Snippets Groups Projects
Commit 22105b78 authored by Blodgett, David L.'s avatar Blodgett, David L.
Browse files

nits

parent a6823163
No related branches found
No related tags found
1 merge request!171Clean up and fix issues in reference flowline creation
...@@ -278,7 +278,7 @@ if(!file.exists(ref_cat)){ ...@@ -278,7 +278,7 @@ if(!file.exists(ref_cat)){
for (vpu in possible_vpu){ for (vpu in possible_vpu){
vpu_gpkg <- paste0(vpu, "_reference_features.gpkg") vpu_gpkg <- paste0(vpu, "_reference_features.gpkg")
sbtools::item_file_download("61295190d34e40dd9c06bcd7", names = vpu_gpkg, sbtools::item_file_download("6317a72cd34e36012efa4e8a", names = vpu_gpkg,
destinations = file.path(ref_fab_path, vpu_gpkg)) destinations = file.path(ref_fab_path, vpu_gpkg))
} }
......
...@@ -260,7 +260,7 @@ if(!"Type_WBOut" %in% names(tmp_POIs)) { ...@@ -260,7 +260,7 @@ if(!"Type_WBOut" %in% names(tmp_POIs)) {
tmp_POIs <- read_sf(temp_gpkg, nav_poi_layer) tmp_POIs <- read_sf(temp_gpkg, nav_poi_layer)
nhd <- read_sf(nav_gpkg, nhd_flowline) nhd <- read_sf(nav_gpkg, nhd_flowline)
ref_WB <- read_sf(temp_gpkg, WBs_layer) ref_WB <- read_sf(temp_gpkg, WBs_layer)
resops_POIs_df <- read.csv(file.path("data/reservoir_Data", paste0("resops_POIs_",vpu,".csv"))) resops_POIs_df <- read.csv(file.path("data/reservoir_Data", paste0("resops_POIs_", VPU,".csv")))
} }
mapview(filter(tmp_POIs, !is.na(Type_WBOut)), layer.name = "Waterbody outlet POIs", col.regions = "red") mapview(filter(tmp_POIs, !is.na(Type_WBOut)), layer.name = "Waterbody outlet POIs", col.regions = "red")
......
...@@ -1135,7 +1135,7 @@ wbin_POIcreation <- function(nhd, WBs_VPU, data_paths, crs, ...@@ -1135,7 +1135,7 @@ wbin_POIcreation <- function(nhd, WBs_VPU, data_paths, crs,
# Drive the inlet events # Drive the inlet events
nhd_inlet <- filter(nhd_WBs, !COMID %in% wb_outlet_events$COMID) nhd_inlet <- filter(nhd_WBs, !COMID %in% wb_outlet_events$COMID)
if(unique(nhd$VPUID) == "12"){ if("12" %in% unique(nhd$VPUID)){
nhd_inlet <- rbind(nhd_inlet, filter(nhd_WBs, COMID == 1304709)) nhd_inlet <- rbind(nhd_inlet, filter(nhd_WBs, COMID == 1304709))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment