dta anyway: code base & network development lisa zorn

21
SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY DTA Anyway: Code Base & Network Development Lisa Zorn DTA Peer Review Panel Meeting July 25 th , 2012

Upload: meghan-calderon

Post on 02-Jan-2016

15 views

Category:

Documents


0 download

DESCRIPTION

DTA Anyway: Code Base & Network Development Lisa Zorn. DTA Peer Review Panel Meeting July 25 th , 2012. Outline. What is DTA Anyway? Why DTA Anyway? DTA Anyway Capabilities DTA Anyway API San Francisco Network Development. What is DTA Anyway?. Input Data (e.g. static Network). - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

DTA Anyway: Code Base &

Network Development

Lisa Zorn

DTA Peer Review Panel MeetingJuly 25th, 2012

Page 2: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

2

Outline

• What is DTA Anyway?• Why DTA Anyway?• DTA Anyway Capabilities• DTA Anyway API• San Francisco Network Development

Page 3: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

3

What is DTA Anyway?

DTA AnywayPython Module

Input Data (e.g. static Network)

Python Script

DTA Network

Page 4: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

4

Why DTA Anyway?

DTA networks have different requirements from their static counterparts. For example (for Dynameq):

• Virtual Links and Virtual Nodes sit between Centroids and Road Links

• Centroid connectors feed into midblocks rather than intersections

• Links cannot overlap

• Links must be longer than the longest vehicle types that use them

DTA Anyway automates this conversion

Page 5: DTA Anyway:  Code Base & Network Development Lisa Zorn

Why DTA Anyway for Everything?

DTA AnywayPython Module

Static Network

Python Scripts

DTA Network

+ Manual Edits

Static Network

+ Projects

DTA Network

+ Projects

Page 6: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

6

DTA Anyway Capabilities

DTA Anyway Can

• Read Cube Networks or other text-based static networks

• Read/Write Dynameq ASCII files

• Write GIS shapefiles for nodes, links, movements

• Perform typical network editing tasks (e.g. find the link nearest a point, split a link)

DTA Anyway Cannot

• Visualize anything directly (no GUI) – use GIS, or traffic assignment network editor (Static or DTA)

• Read/Write DTA networks for other DTA software (but designed to make this easily implementable)

Page 7: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

7

API

http://dta.googlecode.com/git-history/dev/doc/_bu

ild/html/index.html

Page 8: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

8

API Example: Network

http://dta.googlecode.com/git-history/dev/doc/_build/h

tml/_generated/dta.Network.html

Page 9: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

9

San FranciscoNetwork DevelopmentConverting the Static Network

Page 10: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

10

San FranciscoNetwork DevelopmentConverting the Static Network

• Define Scenario: vehicle types and classes, generalized cost

• Import Cube network data, defining DTA attributes in terms of Cube attributes

• Add all movements, prohibiting most U-Turns, explicitly naming some where geometry is confusing

• Read GIS shapefile for road curvature

• Add virtual nodes/links between centroids and road nodes

• Move centroid connectors from intersections to midblock nodes

• Handle overlapping and short links

Page 11: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

11

San FranciscoNetwork DevelopmentConverting the Static Network

http://dta.googlecode.com/git-history/dev/doc/_build/html/script_createSFNetworkFromCubeNetwork.html

Page 12: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

12

San FranciscoNetwork DevelopmentImporting Transit Routes

Page 13: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

13

San FranciscoNetwork DevelopmentImporting Transit Routes

• Reads Cube-formatted transit line files and converts into DTA transit lines

• Where LRT lines go off the DTA network (underground or on separated ROW), they are split into segments (discarding those not on the DTA network)

• Movements are explicitly allowed for transit if previously prohibited

Page 14: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

14

San FranciscoNetwork DevelopmentImporting Signals

Page 15: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

15

San FranciscoNetwork DevelopmentImporting Signals

• Reads signal card data from Excel files in a SFMTA-defined format

• We search for the section specifying the weekday PM peak plan

• For errors and unique circumstances encountered (and there were many), responses could be:

• Update signal card itself

• Update signal-card reading code

• Update static network

• We approximate the few actuated signals with their fixed time version

• Signal-reading code is not very re-usable

Page 16: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

16

San FranciscoNetwork DevelopmentImporting Stop Signs

Page 17: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

17

San FranciscoNetwork DevelopmentImporting Stop Signs

• Stop signs are coded as (GIS point, street name, cross street name, and direction the stop sign is facing)

• Signal data takes precedence

• Mark as all-way stops when # of stop signs for a node matches the # of incoming links

• Otherwise, mark as two-way

• TODO: custom priorities for two-way stops where facility types tie (currently mark as all-way stops)

Page 18: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

18

San FranciscoNetwork DevelopmentImporting Demand

Page 19: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

19

San FranciscoNetwork DevelopmentImporting Demand

• Auto and truck tables are imported from SF-CHAMP PM demand tables

• 385.5k auto trips, 65k truck trips loaded 3:30-6:30p

• The DTA network uses same TAZ structure is used as SF-CHAMP because the zones are small (976 within SF, plus 22 external stations)

• Currently demand is loaded uniformly across time the time period

Page 20: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

20

San FranciscoNetwork DevelopmentImporting Counts

Page 21: DTA Anyway:  Code Base & Network Development Lisa Zorn

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

21

San FranciscoNetwork DevelopmentImporting Counts

• Count Dracula is SFCTA’s developing traffic counts database

• Includes counts from PEMS and counts collected for past projects

• Recent (2009-2011) midweek (Tue/Wed/Thu) counts are queried from Count Dracula for DTA Validation

• When multiple days of counts exist for the same location and time period, averaged across days

• 97 15-minute link counts

• 22 60-minute link counts

• 864 15-minute movement counts

• 160 5-minute movement counts