Skip to content

Commit

Permalink
Merge pull request #141 from CMAP-REPOS/c22q4
Browse files Browse the repository at this point in the history
c22q4
  • Loading branch information
nrferguson authored Apr 4, 2023
2 parents 75dc462 + f1db60d commit 3d68c35
Show file tree
Hide file tree
Showing 13 changed files with 35,643 additions and 116 deletions.
70 changes: 47 additions & 23 deletions MHN.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,56 @@ class MasterHighwayNetwork(object):
min_year = min(scenario_years.values())
max_year = max(scenario_years.values())

# Highway/transit TODs.
tod_periods = {
'1': ('8PM-6AM', # 1: overnight
'"STARTHOUR" >= 20 OR "STARTHOUR" <= 5'),
'2': ('6AM-7AM', # 2: AM shoulder 1
'"STARTHOUR" = 6'),
'3': ('7AM-9AM', # 3: AM peak
'"STARTHOUR" IN (7, 8)'),
'4': ('9AM-10AM', # 4: AM shoulder 2
'"STARTHOUR" = 9'),
'5': ('10AM-2PM', # 5: midday
'"STARTHOUR" >= 10 AND "STARTHOUR" <= 13'),
'6': ('2PM-4PM', # 6: PM shoulder 1
'"STARTHOUR" IN (14, 15)'),
'7': ('4PM-6PM', # 7: PM peak
'"STARTHOUR" IN (16, 17)'),
'8': ('6PM-8PM', # 8: PM shoulder 2
'"STARTHOUR" IN (18, 19)'),
'am': ('7AM-9AM', # am: Same as TOD 3, but for buses w/ >50% service in period
'"AM_SHARE" >= 0.5')
'highway': {
'1': ('8PM-6AM', # 1: overnight
'"STARTHOUR" >= 20 OR "STARTHOUR" <= 5'),
'2': ('6AM-7AM', # 2: AM shoulder 1
'"STARTHOUR" = 6'),
'3': ('7AM-9AM', # 3: AM peak
'"STARTHOUR" IN (7, 8)'),
'4': ('9AM-10AM', # 4: AM shoulder 2
'"STARTHOUR" = 9'),
'5': ('10AM-2PM', # 5: midday
'"STARTHOUR" >= 10 AND "STARTHOUR" <= 13'),
'6': ('2PM-4PM', # 6: PM shoulder 1
'"STARTHOUR" IN (14, 15)'),
'7': ('4PM-6PM', # 7: PM peak
'"STARTHOUR" IN (16, 17)'),
'8': ('6PM-8PM', # 8: PM shoulder 2
'"STARTHOUR" IN (18, 19)'),
},
# Condensed TODs for transit (C22Q2 and later)
'transit': {
'1': ('6PM-6AM', # 1: overnight
'"STARTHOUR" >= 18 OR "STARTHOUR" < 6'),
'2': ('6AM-9AM', # 2: AM peak
'"STARTHOUR" >= 6 AND "STARTHOUR" < 9'),
'3': ('9AM-4PM', # 3: midday
'"STARTHOUR" >= 9 AND "STARTHOUR" < 16'),
'4': ('4PM-6PM', # 4: PM peak
'"STARTHOUR" >= 16 AND "STARTHOUR" < 18')

### Replaced by longer transit AM peak period (C22Q2 and later)
# 'am': ('7AM-9AM', # am: Same as TOD 3, but for buses w/ >50% service in period
# '"AM_SHARE" >= 0.5')
}
}

ampm_tods = {
'1': ('1', '2', '3', '4', '5', '6', '7', '8', 'am'), # All periods
'2': ('2', '3', '4', '5', 'am'), # AM periods
'3': ('1', '6', '7', '8'), # PM periods
'4': ('1', '5') # Off-peak periods
'highway': {
'1': ('1', '2', '3', '4', '5', '6', '7', '8'), # All periods
'2': ('2', '3', '4', '5'), # AM periods
'3': ('1', '6', '7', '8'), # PM periods
'4': ('1', '5') # Off-peak periods
},
'transit': {
'1': ('1', '2', '3', '4'), # All periods
'2': ('2', '3'), # AM periods
'3': ('1', '4'), # PM periods
'4': ('1', '3') # Off-peak periods
}
}

rsps = {
Expand Down
55 changes: 55 additions & 0 deletions data/Bus_Plaza_Nodes_C15Q3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
c Bus Plazas
c Matt Stratton, 5/23/2012
c Updated by Noel Peterson, 8/20/2015
c Sources: Pace <http://www.pacebus.com/sub/bus_system/transit_centers.asp>
c and CTA <selected bus terminals, mostly at CTA/Metra rail stations>
c Terminals were matched with the nearest MHN nodes on bus routes
c -----------------------------------------------------------------------------
c node,stop_type,stop_name
7247,3,Aurora Transportation Center
11133,3,Buffalo Grove Transportation Center
15507,3,Chicago Heights Transportation Center
7473,3,Elgin Transportation Center
10781,3,Gurnee Mills Transfer Facility
19841,3,Harvey Transportation Center
9842,3,Northwest Transportation Center
7992,3,Prairie Stone Transportation Center
11804,3,Hodgkins UPS Bus Terminal
10594,3,Arlington Heights Metra
11003,3,Clarendon Hills Metra
12309,3,Deerfield Metra
11780,3,Des Plaines Metra
12876,3,Forest Park CTA Station
13079,3,Highland Park Metra
14925,3,Homewood Metra
12577,3,Lake Cook Road Metra
13026,3,North Riverside Park Mall Turnaround
13001,3,Oak Park CTA/Metra
9674,3,Palatine Metra
14706,3,Park Forest Turnaround
16098,3,Riverdale Bus Turnaround
16107,3,South Suburban College
12910,3,Summit CTA/Pace
12657,3,Waukegan Metra
14687,3,Howard - Red
15905,3,69th - Red
23897,3,95th - Red
13508,3,Jefferson Park - Blue
12927,3,Harlem - Blue (O'Hare)
21624,3,Rosemont - Blue
14922,3,Ashland/63rd - Green
13613,3,54th/Cermak - Pink
15232,3,Halsted - Orange
14888,3,Ashland - Orange
14699,3,35th/Archer - Orange
14598,3,Western - Orange
14283,3,Kedzie - Orange
14003,3,Pulaski - Orange
13781,3,Midway - Orange
23220,3,Western - Brown
14592,3,Davis - Purple
13637,3,Skokie - Yellow
15421,3,Union Station
16139,3,Navy Pier
13616,3,Old Orchard Mall
13797,3,Ford City Mall
9 changes: 9 additions & 0 deletions data/Rail_Terminal_Nodes_C15Q3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
c Bus Plazas
c Noel Peterson, 9/9/2015
c Major rail terminals were manually specified.
c -----------------------------------------------------------------------------
c node,stop_type,stop_name
42201,5,Ogilvie Transportation Center
42292,5,Union Station
42344,5,Millenium Station
42430,5,LaSalle Street Station
Loading

0 comments on commit 3d68c35

Please sign in to comment.