Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] TimeLoss / veic

In principle, this approach works, but with an extra step because excel is bad in saving the desired xml.
The approach below requires sumo version 1.24.0 or later.

- in your additional file where you define the edgeData output, set output file extension to csv:  file="output.csv"
- load the csv in excel, prefix any new column with 'edge_' ( i.e. edge 'edge_flow')
- convert the csv into the required xml format by calling 
   python %sumo_home%\tools\xml\csv2xml.py output_modified.csv -o output_modified.xml -x %sumo_home%\data\xsd\datamode_file.xsd
- load output_modified.xml in sumo-gui

The alternative would be a small python script along the lines of 
https://github.com/eclipse-sumo/sumo/blob/main/tests/tools/sumolib/xml/extend_edgeData/runner.py

regards,
Jakob

Am Fr., 31. Okt. 2025 um 01:31 Uhr schrieb Pedro Oliveira via sumo-user <sumo-user@xxxxxxxxxxx>:
I would like to generate a visualization map of the edges with the variable TimeLoss/vehicle, that is, an average of the time lost in seconds / vehicle.

The SUMO output of edgedata-output, for example, provides the total edge timeLoss, and I can obtain the timeLoss per vehicle if, after outputting the file, I add a column of the traffic volume obtained by:

Average traffic volume (#/h) = speed * 3.6 * density

And then another column with the division of timeLoss / flow.

My intention is to perform these calculations with Excel and then save as XML and load it into SUMO in Open EdgeData.

Is this possible?
If so, is there a more practical method?

Thank you in advance.

Regards,

Pedro Oliveira

Não contém vírus.www.avast.com
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top