MTC Wrangler¶
MTC-specific network wrangling tools and utilities for Bay Area transportation modeling.
Overview¶
This repository contains utilities and resources specific to wrangling networks for the Metropolitan Transportation Commission (MTC) networks. It extends Network Wrangler with MTC-specific schemas, validation, and workflows.
Installation & Setup¶
For installation instructions and basic setup, please refer to the Network Wrangler documentation.
MTC Wrangler uses the BayAreaMetro fork of Network Wrangler.
Key Features¶
MTC-Specific Network Models¶
The models/ directory provides MTC-customized versions of Network Wrangler classes:
- MTCRoadwayNetwork: Extended roadway network with MTC-required fields
- MTCRoadLinksTable: Schema requiring
county,jurisdiction, andmtc_facility_type - MTCRoadNodesTable: Schema requiring
countyfor all nodes
Scripts¶
The create_baseyear_network/ directory contains scripts for building MTC base year networks. See create_baseyear_network/README.md for details
Quick Example¶
from mtc_wrangler.models import MTCRoadwayNetwork
# Load network with MTC validation
net = MTCRoadwayNetwork.read(
link_file="links.geojson",
node_file="nodes.geojson"
)
# All MTC required fields are validated
print(net.links_df[['county', 'jurisdiction', 'mtc_facility_type']].head())
Relevant Repositories¶
- network-wrangler/network_wrangler
- BayAreaMetro/network_wrangler - BayAreaMetro fork
- network-wrangler/projectcard - Project card infrastructure
Documentation Structure¶
- API Reference: Detailed documentation of MTC models and schemas