Python Scripts


These scripts were developed in Python 2.3 to read the NHTSA FARS database.
This is the main routine that cracks one year at a time.  It creates a list of counters.  Then it reads the file, bumping qualifying counters for each record.  At last, it prints a two-column report in .csv format.  The left column is labels for the counts in the right column.
This program produces a spreadsheet in .csv format by columnwise combining the outputs of successive runs of Summarize.py.  Each column is a year.  Each row is a series.
This shell script knows the names of the FARS data files, which are inconsistent from year to year.  It successively invokes Summarize.py for each year.  Finally, it calls Consolidate.py.
This program reads the .csv file from the summarization step and creates .jpg graphics.
This module is required by Summarize.py.  It contains the logic that adapts to changes in file layouts over the years.
The following modules are all required by Describe.py.  They contain actual record layouts.


Rhode, Chuck. "Python Scripts." 4 Mar 2005. Lacus Veris. 31 Jul. 2010<">http://www.lacusveris.com/BABs/Scripts.shtml>. Last modified 5 Sep. 2006 . Served 126 times between 17 May. 2010 and 31 Jul. 2010. Contact ">mailto:root@lacusveris.com?subject=LacusVeris.