ParseVissimOutput_Fzp_Rsr.py
2 functions parseFzp and parseRsr included
parseFzp(fileNames, currentDate)
A python function for parsing PTV VISSIM vehicle trajectory outputs. The main purpose of using this function is as follows:
- remove the commentary content from the beginning of fzp file (VISSIM vehicle record outputs)
- set up the header row properly
- Add three columes: X, Y, Z coordinates for "Position" (an attribute in vehichle records)
- save the outputs into .csv file for further aggregation or analysis
parseRsr(fileNames, currentDate)
A python function for parsing raw PTV VISSIM vehicle travel time outputs. The main purpose of using this script is as follows:
- remove the commentary content from the beginning of rsr file.
- Add proper headers including the time instant each vehicle reaching the upstream and downstream boundary.
- Save the outputs into .csv file for further aggregation or analysis
The main functions reads all the fzp and rsr file in the current directory.