Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reference-hydrofabric
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
nhgf
reference-hydrofabric
Commits
7a55dbc6
Commit
7a55dbc6
authored
3 years ago
by
Bock, Andy
Browse files
Options
Downloads
Patches
Plain Diff
Added elev/Travel time configs
parent
7cd20d29
No related branches found
No related tags found
1 merge request
!95
Travel time/Elev breaks; Maps for navigate
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workspace/R/config.R
+21
-17
21 additions, 17 deletions
workspace/R/config.R
with
21 additions
and
17 deletions
workspace/R/config.R
+
21
−
17
View file @
7a55dbc6
...
...
@@ -4,6 +4,7 @@ library(sf)
library
(
hyRefactor
)
library
(
tidyr
)
library
(
hyfabric
)
library
(
mapview
)
if
(
!
exists
(
"rpu_code"
))
{
rv
<-
get_rpu_dependent_vars
()
...
...
@@ -33,27 +34,16 @@ options(scipen = 9999)
crs
<-
5070
data_paths
<-
jsonlite
::
read_json
(
file.path
(
"cache"
,
"data_paths.json"
))
# not used?
# huc12_xWalk <- file.path(data_paths$nhdplus_dir, "CrosswalkTable_NHDplus_HU12.csv")
# HUC12 <- file.path(data_paths$nhdplus_dir, "HUC12.rds")
nav_gpkg
<-
file.path
(
"cache"
,
paste0
(
"reference_"
,
VPU
,
".gpkg"
))
# Defined at various points for HI workflow
raw_wbd
<-
paste0
(
"HU12_"
,
VPU
)
# Raw HUC12
gage_loc
<-
paste0
(
"GageLoc_"
,
VPU
)
# HI GageLoc
### Layer Names used broadly ###
TE
<-
paste0
(
"TE_"
,
VPU
)
# Thermo-electric
NID_layer
<-
paste0
(
"NID_"
,
VPU
)
# Raw NID points
gage_events_layer
<-
paste0
(
"gage_events_"
,
VPU
)
# gages with flowline index information for possible splitting
# Defined and used broadly
nhd_flowline
<-
"nhd_flowline"
nhd_catchment
<-
"nhd_catchment"
Bock, Andy
@abock
·
Sep 17, 2021
Author
Owner
added new thresholds for elev and tt breaks.
added new thresholds for elev and tt breaks.
Please
register
or
sign in
to reply
# Created and/or used during 02_Navigate
elev_diff
<-
500
# Max difference in elevation within a single segment/POI
tt_diff
<-
24
# Max number of hours between adjacent POIS
nav_gpkg
<-
file.path
(
"cache"
,
paste0
(
"reference_"
,
VPU
,
".gpkg"
))
xwalk_layer
<-
paste0
(
"HUC12_nhd_"
,
VPU
)
# HUC12 - nhdcat crosswalk, built in Nav for VPU 20
nav_poi_layer
<-
paste0
(
"
pois
_"
,
VPU
)
# Rolling Nav POI layer added to/modified througout nav workflow
nav_poi_layer
<-
paste0
(
"
POIs_tmp
_"
,
VPU
)
# Rolling Nav POI layer added to/modified througout nav workflow
WBs_layer
<-
paste0
(
"WB_"
,
VPU
)
# Waterbodies within VPU
poi_moved_layer
<-
paste0
(
"POIs_mv_"
,
VPU
)
# POIs moved from original COMID assignment
nsegments_layer
<-
paste0
(
"nsegment_"
,
VPU
)
# Minimally-sufficient network dissolved by POI_ID
...
...
@@ -61,6 +51,8 @@ pois_all_layer <- paste0("POIs_", VPU) # All POIs binded together
poi_xwalk_layer
<-
paste0
(
"poi_xwalk_layer_"
,
VPU
)
# POIs that changed COMIDS during the navigate part of the workflow
final_poi_layer
<-
paste0
(
"final_POIS_"
,
VPU
)
# Settings for refactor workflow
split_meters
<-
10000
combine_meters
<-
1000
min_da_km
<-
20
...
...
@@ -96,4 +88,16 @@ missing_cats <- paste0("miss_cats_", VPU)
# only used in HI?
inc_pois_layer
<-
paste0
(
"inc_POIs_"
,
VPU
)
# layer of POIs used to derive first cut of segments
Bock, Andy
@abock
·
Sep 17, 2021
Author
Owner
re-orged a bit.
re-orged a bit.
Please
register
or
sign in
to reply
# Defined at various points for HI workflow
#raw_wbd <- paste0("HU12_", VPU) # Raw HUC12
#gage_loc <- paste0("GageLoc_", VPU) # HI GageLoc
### Layer Names used broadly ###
#TE <- paste0("TE_", VPU) # Thermo-electric
#NID_layer <- paste0("NID_", VPU) # Raw NID points
#gage_events_layer <- paste0("gage_events_", VPU) # gages with flowline index information for possible splitting
# not used?
# huc12_xWalk <- file.path(data_paths$nhdplus_dir, "CrosswalkTable_NHDplus_HU12.csv")
# HUC12 <- file.path(data_paths$nhdplus_dir, "HUC12.rds")
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment