Changes between Version 6 and Version 7 of CPTMS
- Timestamp:
- 02/28/2019 10:04:23 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CPTMS
v6 v7 15 15 In the selection boxes at the top specify "Type: Station Metadata" and desired district number, then click Submit. 16 16 17 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 as `d05_ pm_vds_all.csv` (changing the extension from ".txt" to ".csv"). (For this exercise we'll pretend to be working with District 5 and name the files accordingly).17 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 as `d05_vds_meta.csv` (changing the extension from ".txt" to ".csv"). (For this exercise we'll pretend to be working with District 5 and name the files accordingly). 18 18 19 19 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 row containing column headers. Also remove quotation marks. … … 22 22 23 23 {{{ 24 python showDupPostmiles.py d 05_pm_vds_all.csv24 python showDupPostmiles.py d`05_vds_meta`.csv 25 25 }}} 26 The results are saved in "`uniqFile`" which you should rename, to something like: `d05_postmile_uniq.csv` 26 The results are saved in "`uniqFile`" which you should rename, to something like: `d05_vds_uniq.csv` 27 28 (You can sort this file if you want a version that's easier to inspect or lookup by postmil). 27 29 28 30 The next step is to preprocess the csv file which creates perpendicular unit vectors for each postmile: … … 40 42 41 43 {{{ 42 python prep_postmiles.py > d12_ postmile_prepped.csv44 python prep_postmiles.py > d12_vds_uniq_prepped.csv 43 45 }}} 44 46 Run the csv to json converter: 45 47 46 48 {{{ 47 ./convertCSVtoJSON.bash d12_ postmile_prepped.csv > highways.json49 ./convertCSVtoJSON.bash d12_vds_uniq_prepped.csv > highways.json 48 50 }}} 49 51 Edit the json file to remove an extraneous comma after the last feature. The last three lines should appear as: … … 64 66 65 67 {{{ 66 cut -f1-6 -d"," d12_ postmile_prepped.csv > postmile_coordinates.txt68 cut -f1-6 -d"," d12_vds_uniq_prepped.csv > postmile_coordinates.txt 67 69 }}} 68 Move postmile_coord s.txt to the TMC config folder.70 Move postmile_coordinates.txt to the TMC config folder. 69 71 70 72 {{{
