According to the wiki
density is given as "#veh/km"
However, looking at the source in MSMeanData_Net line 179 and 208 it is
dev.writeAttr("density", sampleSeconds / STEPS2TIME(period) * (SUMOReal) 1000 /
I cannot see why the above gives the number of vehicles per Km in the lane
during the period. As far as I see, sampleSeconds is updated as expected
sampleSeconds += timeOnLane
so it seems to be what the wiki says "Number seconds vehicles were measured on
It seems that we have the fraction of time the lane has been occupied
multiplied by 1000 and divided by the lane length.
Is this an error or is this coming from some formula I do not know of?
sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit