Skip to content

Commit 1d8509d

Browse files
committed
move base scenario to 200/correct missing vehicle type codes
1 parent d2987a6 commit 1d8509d

6 files changed

Lines changed: 9 additions & 5 deletions

Rail Network Management.tbx

2 KB
Binary file not shown.

create_Emme_rail_files_GTFS.sas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
08-07-2014: Added check for stops at junctions before itinerary batchin creation
1717
01-08-2016: Corrected itinerary batchin formatting
1818
02-01-2016: Metra headways coded as '99' are replaced by the TOD period duration.
19+
12-20-2016: Updated 'basescen' variable to '200' after base year moved to 2015.
1920
2021
------------- -------------
2122
__________________________________________________________________________________________________________________________ */
@@ -28,7 +29,7 @@ ________________________________________________________________________________
2829
%let reportpath=&outpath.\&scen.00\rail_changes.txt;
2930
%let maxzone=1961; *** highest zn09 POE zone number;
3031
%let dropnode=48007; *** Exclude South Bend station until zone system expands to include it;
31-
%let basescen=100; *** base year scenario;
32+
%let basescen=200; *** base year scenario;
3233
%let counter=1;
3334
%let tod=0;
3435
%let a1=0;%let a2=0;%let a3=0;%let a4=0;%let a5=0;%let a7=0; *** initialize action code counts;

create_scenario_files_GTFS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# 06-19-2013: Added code to create temporary copy of people mover table. #
1919
# 07-18-2013: Added ability to create link shape file by calling the #
2020
# create function from the linkshape module. #
21+
# 12-20-2016: Updated to use 'all_runs_base' for scenario 200 #
22+
# after base year moved to 2015. #
2123
# #
2224
#############################################################################
2325

@@ -64,7 +66,7 @@
6466
f = string.replace(c, "\\", '/') + "/mrn_programs"
6567
newdir = path + "\\" + scenario
6668
current = "all_runs" # current routes
67-
if scenario in ("100","900"):
69+
if scenario in ("200","900"):
6870
current = "all_runs_base" # base year routes
6971
future = "future" # future coding
7072
rail_routes = current

geometry_update.sas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ run;
337337
%macro rtes;
338338

339339
%if &code=2 %then %do; *** call block for GTFS rail coding ***;
340-
data route(keep=line1 desc1 mode1 type1 hdwy1 speed1 fdline r_id rln dir term start strthour ampct);
341-
retain newline descr mode type headway speed fdline r_id rln dir term start strthour ampct;
340+
data route(keep=line1 desc1 mode1 type1 hdwy1 speed1 fdline r_id rln dir term start strthour ampct vehicle);
341+
retain newline descr mode type headway speed fdline r_id rln dir term start strthour ampct vehicle;
342342
set route;
343343
rename newline=line1 descr=desc1 mode=mode1 type=type1 headway=hdwy1 speed=speed1;
344344
proc export data=route outfile="&dir.\Temp\rte_updt.dbf" dbms=dbf replace;

import_routes_Apr2012.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
b_row.START = d_row.getValue("start")
235235
b_row.STRTHOUR = d_row.getValue("strthour")
236236
b_row.AM_SHARE = d_row.getValue("ampct")
237+
b_row.CT_VEH = d_row.getValue("vehicle")
237238

238239
blankcur.updateRow(b_row)
239240

read_rail_feed_data.sas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ proc import out=sec1 datafile="&segfile" dbms=csv replace; getnames=yes; guessin
8282
if length(line)<20 then ln=line; else ln=substr(line,1,20);
8383
proc sort; by ln;
8484
data sec1; set sec1; rename ln=line;
85-
/*data sec1; length zone_id_a $3. zone_id_b $3.; set sec1;*/
85+
data sec1; length zone_id_a $3. zone_id_b $3.; set sec1;
8686

8787
*** IDENTIFY & REMOVE ROUTES WITH ONLY ONE ITINERARY SEGMENT WHERE ITINA=ITINB ***;
8888
data sec1; set sec1; if line='' then delete;

0 commit comments

Comments
 (0)