Skip to content

Commit

Permalink
Implement new method to calc LP and BP
Browse files Browse the repository at this point in the history
Implement new method to calculate linkage priority (LP) and blended priority (BP). New approach seeks to overcome issues where linkages overlap. See issue #53.
  • Loading branch information
dkav committed Jan 10, 2020
1 parent f1d1251 commit a97a453
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 282 deletions.
Binary file modified toolbox/Linkage Mapper Arc10.tbx
Binary file not shown.
7 changes: 5 additions & 2 deletions toolbox/scripts/lm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ def config_lp(config, arg):
config.CAVWEIGHT = float(arg[30])
config.ECIVWEIGHT = float(arg[31])
config.CEDWEIGHT = float(arg[32])
config.PROPCSPKEEP = float(arg[33])

# CPS Trim Value
config.CPSNORM_CUTOFF = nullfloat(arg[33])

# Blended Priority Options
# ------------------------
Expand All @@ -344,9 +346,10 @@ def config_lp(config, arg):

# core corename from feature class name
config.CORENAME = path.splitext(path.basename(config.COREFC))[0]
config.CALC_CSP = 1 # Calculate Corridor Specific Priority (CSP)
config.CALC_CSPBP = 2 # Calculate CSP and Blended Priority

config.SCRATCHGDB = path.join(config.SCRATCHDIR, "scratch.gdb")
config.INTERGDB = path.join(config.SCRATCHDIR, "intermediate.gdb")

set_custom(config.LPCUSTSETTINGS_IN, config)

Expand Down
Loading

0 comments on commit a97a453

Please sign in to comment.