SUMO
Simulation of Urban MObility

- Home
- Download
- Documentation
- Wiki
- Trac
- Blog
- Contact
- SF-Project

# Simulation/Output/EmissionOutput

The reason for this output option is the possibility of SUMO to calculate HBEFA based emission factors for every simulation timestep. The calculated values for every vehicle will be recorded and can be used for a more sophisticated view on special parts of the network.

## Instantiating within the Simulation

To force SUMO to build a file that contains the emission output, extend your command line (or configuration) parameter by --emission-output <FILE>. <FILE> is the name of the file the output will be written to. Any other file with this name will be overwritten, the destination folder must exist.

## Generated Output

The emission output is a xml-file containing the emission values for each time step for every vehicle. The produced XML File looks like this:

    <emission-export>

     <timestep time="<TIME_STEP>">

      <vehicle id="<VEHICLE_ID>" eclass="<VEHICLE_EMISSION_CLASS>" co2="<VEHICLE_CO2>" co="<VEHICLE_CO>" hc="<VEHICLE_HC>"
      nox="<VEHICLE_NOX>" pmx="<VEHICLE_PMX>" noise="<VEHICLE_NOISE>" route="<VEHICLE_ROUTE>" type="<VEHICLE_TYPE>"
      waiting="<VEHICLE_WAITING>" lane="<VEHICLE_LANE>" pos="<VEHICLE_POS>" speed="<VEHICLE_SPEED>" angle="<VEHICLE_ANGLE>"
      x="<VEHICLE_POS_X>" y="<VEHICLE_POS_Y>"/>

       ... more vehicles ...

      </timestep>

    ... the next timestep ...

    </emission-export>

The meanings of the written values are given in the following table.

Name | Type | Description
--- | --- | ---
time_step | (simulation) seconds | The time step described by the values within this timestep-element
id | id | The id of the vehicle
co2 | mg/s | The amount of CO2 emitted by the vehicle in the actual simulation step
co | mg/s | The amount of CO emitted by the vehicle in the actual simulation step
hc | mg/s | The amount of HC emitted by the vehicle in the actual simulation step
nox | mg/s | The amount of NOX emitted by the vehicle in the actual simulation step
pmx | mg/s | The amount of PMX emitted by the vehicle in the actual simulation step
noise | dB | The noise emitted by the vehicle in the actual simulation step
route | id | The name of the route
type | id | The name of the vehicle type
waiting | seconds | The time the vehicle is waiting
lane | id | The name of the lane where the vehicle is moving
pos | meters | The vehicle position on the specific lane
speed | km/h | The speed of the vehicle
angle | degree | The angle of the vehicle
pos_x | --- | The absolut X coordinate of the vehicle. The value depends on the given geographic projection.
pos_y | --- | The absolut Y coordinate of the vehicle. The value depends on the given geographic projection.

## Notes

This file has some redundant parts e.g. the route or the used emission class. In order to write this output directly to a database you will store such informations in a single row.

Thank you Danique.

This page was last modified on 15 June 2012, at 06:59.