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

rebuilt enhd files aith this bug fix for #118

parent e9d7a287
No related branches found
No related tags found
1 merge request!167Network Update
......@@ -203,7 +203,11 @@ clean_net <- function(net, net_new, nwm) {
# NOTE: just being explicit about this for clarity.
candidate <- select(net_new, comid, tocomid, nwm_tocomid) %>%
filter(!comid %in% avoid)
filter(!comid %in% avoid) %>%
# only use nwm changes where they are reconnecting the network
# this is key since enhd changed the flow direction of some divergences
# and those changes would be lost if we do not use this filter
filter(tocomid == 0 & nwm_tocomid != 0)
mismatch <- candidate[candidate$tocomid != candidate$nwm_tocomid, ]
......
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