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
273c7316
Commit
273c7316
authored
3 years ago
by
Bock, Andy
Browse files
Options
Downloads
Patches
Plain Diff
case-sensitivty on vpu
parent
10eec626
No related branches found
No related tags found
1 merge request
!107
Non-dendritic work and outlet mapping, SWIM in get data
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workspace/R/config.R
+22
-22
22 additions, 22 deletions
workspace/R/config.R
with
22 additions
and
22 deletions
workspace/R/config.R
+
22
−
22
View file @
273c7316
...
...
@@ -9,11 +9,11 @@ library(mapview)
if
(
!
exists
(
"rpu_code"
))
{
Bock, Andy
@abock
·
Jan 19, 2022
Author
Owner
Thought we had tackled this before, but changed all VPU variable call-outs to lower-case ('vpu')
Thought we had tackled this before, but changed all VPU variable call-outs to lower-case ('vpu')
Please
register
or
sign in
to reply
rv
<-
get_rpu_dependent_vars
()
rpu_code
<-
rv
$
r
VPU
<-
rv
$
v
vpu
<-
rv
$
v
}
if
(
!
exists
(
"
VPU
"
))
{
VPU
<-
get_rpu_dependent_vars
(
rpu_code
)
$
v
if
(
!
exists
(
"
vpu
"
))
{
vpu
<-
get_rpu_dependent_vars
(
rpu_code
)
$
v
}
if
(
!
nchar
(
out_agg_gpkg
<-
Sys.getenv
(
"OUT_GPKG"
))
>
5
)
...
...
@@ -41,15 +41,15 @@ nhd_catchment <- "nhd_catchment"
# 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_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
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
)
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_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
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
...
...
@@ -59,7 +59,7 @@ min_da_km <- 20
# parallel factor for catchment reconciliation.
para_reconcile
<-
2
para_split_flines
<-
2
keep_cat_points
<-
NULL
keep_cat_points
<-
1
nhd_outlet
<-
"nhd_outlet"
nhd_catchment
<-
"nhd_catchment"
...
...
@@ -73,20 +73,20 @@ agg_fline_layer <- "agg_fline"
agg_cats_layer
<-
"agg_cats"
outlets_layer
<-
"outlets"
mapped_outlets_layer
<-
"mapped_outlets"
lookup_VPU_layer
<-
paste0
(
VPU
,
"_lookup"
)
lookup_VPU_layer
<-
paste0
(
vpu
,
"_lookup"
)
# Defined during NonDend.Rmd
ND_gpkg
<-
file.path
(
"cache"
,
paste0
(
"ND_"
,
VPU
,
".gpkg"
))
divides_xwalk
<-
paste0
(
"divides_nhd_"
,
VPU
)
HRU_layer
<-
paste0
(
"poi_cats_"
,
VPU
)
divides_nd
<-
paste0
(
"divides_nd_"
,
VPU
)
missing_terms
<-
paste0
(
"miss_terms_"
,
VPU
)
cat_boundary
<-
paste0
(
"boundaries_"
,
VPU
)
missing_cats
<-
paste0
(
"miss_cats_"
,
VPU
)
ND_gpkg
<-
file.path
(
"cache"
,
paste0
(
"ND_"
,
vpu
,
".gpkg"
))
divides_xwalk
<-
paste0
(
"divides_nhd_"
,
vpu
)
HRU_layer
<-
paste0
(
"poi_cats_"
,
vpu
)
divides_nd
<-
paste0
(
"divides_nd_"
,
vpu
)
missing_terms
<-
paste0
(
"miss_terms_"
,
vpu
)
cat_boundary
<-
paste0
(
"boundaries_"
,
vpu
)
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
inc_pois_layer
<-
paste0
(
"inc_POIs_"
,
vpu
)
# layer of POIs used to derive first cut of segments
# Defined at various points for HI workflow
#raw_wbd <- paste0("HU12_", VPU) # Raw HUC12
...
...
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