Changes between Version 1 and Version 2 of CPTMS


Ignore:
Timestamp:
02/21/2019 08:10:37 PM (7 years ago)
Author:
jdalbey
Comment:

First draft

Legend:

Unmodified
Added
Removed
Modified
  • CPTMS

    v1 v2  
    11= STMS: Simulated Traffic Management System = 
    2 Currently a central component of the TMC Simulator is the ATMS, Advanced Traffic Management System, which consists of a server and client.  The ATMS allows the trainee to view the traffic flow throughout the highway network that is the focus of the simulation session.  Different colored dots on a highway schematic diagram indicate areas of traffic congestion. 
     2Currently a central component of the TMC Simulator is the ATMS, Advanced Traffic Management System, which consists of a server and client.  The ATMS allows the trainee to view the traffic flow throughout the highway network that is the focus of the simulation session. Different colored dots on a highway schematic diagram indicate areas of traffic congestion. 
    33 
    4 The ATMS server is an aging piece of hardware and one that we have little documentation about.  We have a goal to replace the ATMS with an alternative.  Though the ATMS is the same as actually used in numerous Cal Trans districts, for the purpose of the simulation a high accuracy reproduction could substitute.  
     4The ATMS server is an aging piece of hardware and one that we have little documentation about.  We have a goal to replace the ATMS with an alternative.  Though the ATMS is the same as actually used in numerous Cal Trans districts, for the purpose of the simulation a high accuracy reproduction could substitute. 
    55 
    6 STMS is our substitute for the ATMS.  
     6STMS is our substitute for the ATMS. 
    77 
    88(List components of STMS here) 
    99 
    10 The key data used by the STMS is the postmile file. It is found in the config folder. Of significance is that it lists postmile locations of VDS in the network and gives the latlong for each so its location can be plotted on a Google Map.  
     10The key data used by the STMS is the postmile file. It is found in the config folder. Of significance is that it lists postmile locations of VDS in the network and gives the latlong for each so its location can be plotted on a Google Map. 
    1111 
    1212Directions for creating a postmile file. 
    1313 
    14 Browse to pems.dot.ca.gov.  In the left margin under "Tools" select "Data Clearinghouse". 
     14Browse to pems.dot.ca.gov.  In the left margin under "Tools" select "Data Clearinghouse". 
    1515 
    1616In the selection boxes at the top specify "Type: Station Metadata" and desired district number, then click Submit. 
    1717 
    18 The report page which appears shows two columns, Field Specification and Available Files.  The former describes what is in each field of the data file. In the Available Files column select the most recently dated file. Download and save to your local computer, changing the extension from ".txt" to ".csv". 
     18The report page which appears shows two columns, Field Specification and Available Files.  The former describes what is in each field of the data file. In the Available Files column select the most recently dated file. Download and save to your local computer, changing the extension from ".txt" to ".csv". 
    1919 
    20 Open the file in Libre Office Calc (or other spreadsheet).  Delete unneeded columns, retaining: Fwy, Dir, State_PM,Latitude, Longitude, and Name.  Save as .csv.  Open in a text editor and remove the first line containing column headers.  
     20Open the file in Libre Office Calc (or other spreadsheet).  Delete unneeded columns, retaining: Fwy, Dir, State_PM,Latitude, Longitude, and Name.  Save as .csv.  Open in a text editor and remove the first line containing column headers. 
    2121 
    22 Some postmiles files have duplicate entries, same postmile but slightly different street names.  It is desirable to remove duplicate entries. 
     22Some postmiles files have duplicate entries, same postmile but slightly different street names.  It is desirable to remove duplicate entries. 
    2323 
    24 Run the python script that lets you manually select which one to keep.  
     24Run the python script that lets you manually select which one to keep. 
    2525 
    2626python showDupPostmiles.py filename 
    2727 
    28 The results are saved in "uniqFile" which you should rename, to something like:  d12_postmile_uniq.csv 
     28The results are saved in "uniqFile" which you should rename, to something like:  d12_postmile_uniq.csv 
    2929 
    30 Then preprocess the csv file:  
     30Then preprocess the csv file: 
    3131 
    3232Open "prep_postmiles.py" in a text editor and modify the name of the postmileFile string to be the name of your file. 
    3333 
    34 Run it:   python prep_postmiles.py 
     34Run it:  python prep_postmiles.py 
    3535 
    3636Observe output, correct any bad data in the file that causes the program to crash. 
    3737 
    38 When done, run it and redirect output to a new file:  python prep_postmiles.py > d12_postmile_prepped.csv 
     38When done, run it and redirect output to a new file:  python prep_postmiles.py > d12_postmile_prepped.csv 
    3939 
    40 Run the csv to json converter (... needs details). 
     40Run the csv to json converter: ./convertCSVtoJSON.bash d12_postmile_prepped.csv > d12_postmile.json 
     41 
     42Edit the file to remove the comma after the last feature. 
     43 
     44Copy the STMS html file, modify the input filename and the center location. 
    4145 
    4246Load the STMS html file into a browser, and observe the results. 
    4347 
    44 Cut the last column and copy to tmc config folder. 
     48Use unix "cut" to remove the last column and copy to tmc config folder.