Skip to content

Commit

Permalink
improving process of updating OD map tableau data
Browse files Browse the repository at this point in the history
 - create script to run multiple batch files sequentially
 - edit TraceDApaths.bat to take in OD lists as arguments
  • Loading branch information
jose-alatorre committed Nov 13, 2023
1 parent 7370534 commit f231a34
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
6 changes: 6 additions & 0 deletions utilities/NextGenFwys/public_engagement/TraceDApaths.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ Cluster "%COMMPATH%\CTRAMP" 1-48 Starthide Exit
:: use comma seperated values
:: ------------------------------

:: Set default values for ORIGIN and DESTINATION
set ORIGIN=9,138,106,128,113,16,110,971,969,946,945,979,970,968,967,972,947,558,557,549,548,563,448,391,413,377,381,388,379,456,445,409,410,412,415,416,411
set DESTINATION=9,138,106,128,113,16,110,731,733,1188,1194,1190,1187,729,730,732,734,1183,1191,1193,1184,1065,1056,1058,1049,1060,1059,1050,309,304,317,315,313,312,325,531,529,681,564,559,528,526,323,320,301,524,525,487,491,485,490,488,484,479,460

:: Check if arguments are passed, otherwise use default values
if not "%1"=="" set ORIGIN=%1
if not "%2"=="" set DESTINATION=%2

runtpp X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\HwyAssign_trace.job

27 changes: 23 additions & 4 deletions utilities/NextGenFwys/public_engagement/UpdateMapDataForNewOD.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
:: update paths based on mapped drives on respective modeling server

set ORIGIN_LIST=1,2,3,4,5
set DESTINATION_LIST=10,20,30,40,50

@echo off

:: saved on \\model3-a\Model3A-Share
X:
cd X:\Projects\2035_TM152_NGF_NP10_Path1a_02
Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI
call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceDApaths.bat %ORIGIN_LIST% %DESTINATION_LIST%

:: saved on \\model3-a\Model3A-Share
X:
cd X:\Projects\2035_TM152_NGF_NP10_Path1a_02
Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI
X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat
call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat

cd Y:\Projects\2035_TM152_NGF_NP10_Path4_02
::saved on \\MODEL2-C\Model2C-Share
Z:
cd Z:\Projects\2035_TM152_NGF_NP10_Path4_02
Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI
X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat
call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat

:: saved on \\MODEL2-D\Model2D-Share
F:
cd F:\Projects\2035_TM152_NGF_NP10
Set PATH=%PATH%;C:\Program Files\Citilabs\CubeVoyager;C:\Program Files\Citilabs\VoyagerFileAPI
X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat
call X:\travel-model-one-master\utilities\NextGenFwys\public_engagement\TraceTransitPaths.bat

pause

0 comments on commit f231a34

Please sign in to comment.