This code transforms output artifacts from Encode Energy's BEV (Battery Electric Vehicle) route simulations into geospatial formats compatible with Geo-TIDE, an interactive platform for freight decarbonization planning. It produces enriched GeoJSON layers that include segmented routes, charger locations, and state-level emission intensities.
- Parses BEV simulation CSV outputs from Encode Energy
- Segments vehicle routes into discrete LineStrings with cumulative metrics
- Annotates segments with state-level electricity emission intensities (e.g., CO₂ rate in g/kWh)
- Extracts charger locations from route configuration files
- Outputs:
- Route segments GeoJSON
- Charger points GeoJSON
- Human-readable simulation summaries (TXT)
Each route must reside in its own folder under encode_artifacts/{ROUTE_NAME}/, and include:
bev_simulation.csv– the route-level BEV simulation outputbase_config.yaml– simulation configuration with charger locations, vehicle types, and routing metadata
Clone the repository and install required packages:
git clone git@github.com:mcsc-impact-climate/encode_geotide.git
cd encode-geotide
pip install -r requirements.txtpython source/make_geojsons.pyOutputs will be written to:
encode_artifacts/geojsons/
├── I-80_route_segments.geojson
├── I-80_chargers.geojson
├── I-80_simulation_summary.txt
└── ...State-level electricity emissions are loaded from a public S3 bucket:
s3://mcsc-datahub-public/geojsons_simplified/grid_emission_intensity/eia2022_state_merged.geojsonThis dataset contains 2022 CO₂ intensity values from the EIA (in lb/MWh) for each U.S. state.