source: tmcsimulator/trunk/webapps/mergelogs.bash @ 637

Revision 637, 886 bytes checked in by jdalbey, 5 years ago (diff)

mergelogs.bash rename ratings.csv to evalratings.csv

  • Property svn:executable set to *
Line 
1# Merge log files and sort by timestamp
2# Invoke from 'trunk' folder
3# TODO: Add error handling - missing files, not executed from 'trunk', ...
4
5# 1. Runs a python program named "extract_caddetails"
6# to extract CAD DETAIL lines from incident_script.xml
7# and creates an output file "caddetails.csv"
8PYTHONPATH=webapps/unifiedlogger.zip  python -m extract_caddetails
9
10# 2. Define a variable for the directory containing the data files
11dir="webapps/dynamicdata"
12
13# 3. Merge three files: unified log, cad details, and evaluation ratings
14# then sort them by timestamp (reverse chronological). 
15# Final result placed in "unifiedlog_final.csv"
16cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv | sort > $dir/unifiedlog_final.csv
17
18# 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html
19#    to show a nicely formatted version of the results.
20
Note: See TracBrowser for help on using the repository browser.