A. Horni, IVT (horni_at_IVT.baug.ethz.ch)
www.matsim.org/javadoc/org/matsim/counts/package-summary.html
www.matsim.org/javadoc/org/matsim/counts/package-summary.html#counts_parameters
MATSim can compare the simulated traffic volumes to traffic counts from the real world. Counts is the module that allows to
There is a feature to re-scale the counts before comparison (for example if you are running the simulations with a 10% sample).
Prepare a file containing the real-world traffic counts. The file, e.g. named counts.xml, must follow the xml-format defined in counts_v1.xsd. An example of such a file can be found in MATSim at examples/equil/counts100.xml.
The file contains the following information:
loc_id. In addition, an optional cs_id can be stored that may, for example, refer to the original id of the counting station (for tracking back the origin of the data).val") for an hour of the day (attribute "h", numbered from 1 to 24; 1 = 00:00-00:59, 2 = 01:00-01:59, etc). It is not necessary that traffic counts are available for all 24 hours of a day.Add the following lines to your configuration file:
<module name="counts"> <param name="inputCountsFile" value="/path/to/counts.xml" /> <param name="outputformat" value="txt,html,kml" /> </module>
The comparison is automatically generated every 10th iteration. Generated output is located in the output-directory of the iteration (usually something like output/ITERS/it.10/).
The counts-module offers the following config-parameters:
<param name="outputformat" value="txt,html,kml" />txt, html and kml. Multiple formats can be specified separated by commas. txt writes simple text-tables containing the values to a file. It is most useful to create custom graphs, e.g. in Excel. html creates a directory containing several html files, allowing to browse the results interactively. kml creates a file to be displayed in Google Earth. This last option only works if the correct coordinate system is set.<param name="countsScaleFactor" value="1.0" /><param name="distanceFilterCenterNode" value="2386" />
<param name="distanceFiler" value="30000.0" />distanceFilter", the unit being the same unit as the length of links (i.e. usually meters).