Skip to main content

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

Good morning!

Thank you very much, it worked.

However, I have a question regarding the calculated flow.

In the following figure, we have the intended flow obtained by "count edge usage." This value is close to what we set our detectors to when validating our network; our detectors registered slightly lower values.
image.png

However, when obtaining the flow using the formula: Vel x 3.6 x Densi, some values were outside the expected range, and watching the simulation, we don't actually have the calculated flow.
image.png

Could you help me?

Sds,

Pedro Oliveira

Não contém vírus.www.avast.com

Em sex., 31 de out. de 2025 às 05:47, Jakob Erdmann <namdre.sumo@xxxxxxxxx> escreveu:
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 

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