diff --git a/workspace/R/user_vars.R b/workspace/R/user_vars.R new file mode 100644 index 0000000000000000000000000000000000000000..5444fa215a2371f950d5942b9f4e9f45a842e5df --- /dev/null +++ b/workspace/R/user_vars.R @@ -0,0 +1,54 @@ +Sys.setenv(sb_user = "abock") + +# Path mods +path_mod <- TRUE +if (path_mod){ + old_path <- Sys.getenv("PATH") + Sys.setenv(PATH = paste(old_path, "C:\\Program Files\\7-zip", sep = ";")) +} + +# CRS for projected and geographic reference systems +geo_crs <- 4326 +proj_crs <- 5070 + +# Variables used in 01_Gage_Selection +# Earliest start data for streamgage inclusion into POI selection +# with mean daily streamflow +POR_Start <- as.Date("1979-10-01") +# Minimum number of days with mean daily streamflow to be considered as +# inclusion into POI selection (non-inclusive of start date) +min_obs <- 90 + +# POI thresholds +# Minimum drainage area for gages (square kilometers) +min_da_km_gages <- 5 +# Variables used during 02_Navigate +wb_area_thresh <- 1 # Waterbody size for inclusion as POI +# minimum/max drainage area for headwaters(square kilometers) +min_da_km_hw <- 40 +max_da_km_hw <- 60 +# Max difference in elevation within a single segment/POI (centimeters) +elev_diff <- 50000 +# Max number of travel time hours between adjacent POIS +travt_diff <- 24 +# Maximum total drainage area to consider a travel time break +max_elev_TT_DA <- 10 +# maximum proportional drainage area difference to collapse adjacent POIs +poi_dar_move <- .05 +poi_distance_move <- 2.5 + + +# Settings for refactor workflow +split_meters <- 10000 +combine_meters <- 1000 +min_da_km <- 40 +reach_meas_thresh <- 10 +aggregate_da_thresh_sqkm <- 3 + +# parallel factor for catchment reconciliation. +para_reconcile <- 2 +para_split_flines <- 2 +keep_cat_points <- 1 + +# Variables used during 07-2_NonDend +CAC_thresh <- 0.66 # Coefficient of areal correspondence threshold