Changeset 631 in tmcsimulator for trunk/webapps/mergelogs.bash
- Timestamp:
- 02/03/2021 06:19:49 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/webapps/mergelogs.bash (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/mergelogs.bash
r551 r631 3 3 # TODO: Add error handling - missing files, not executed from 'trunk', ... 4 4 5 # 1. Extract CAD DETAIL lines from incident_script.xml 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" 6 8 PYTHONPATH=webapps/unifiedlogger.zip python -m extract_caddetails 9 10 # 2. Define a variable for the directory containing the data files 7 11 dir="webapps/dynamicdata" 8 # 2. Merge the unified log with cad details and evaluation ratings 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" 9 16 cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/ratings.csv | sort > $dir/unifiedlog_final.csv 10 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 TracChangeset
for help on using the changeset viewer.
