FF10 and spdpro Generation Script
README

The Process_ManyCDBs.plx file is a Perl script that calls a MySQL script (Populate_FF10_fromMOVES2014CDB_v6.sql) and populates SMOKE-formatted tables FF10VMT, FF10POP, FF10SPD, FF10HOT, and spdpro.

To run this script, Perl and MySQL must be installed on the machine. The script was designed to run on a Windows platform.

The steps to run the script are:

1) Execute the script Create_FF10_EmptyTables.sql in MySQL.  This script creates a database named EPA2014FF10 containing five tables (FF10VMT, FF10POP, FF10SPD, FF10HOT, and spdpro).
2) Modify the script Process_ManyCDBs.plx using a text editor. Line 9 should point to a list of CDB names, with one database name per line. Line 14 should point to the directory where you place the script Populate_FF10_fromMOVES2014CDB_v6.sql.
3) Execute the Perl script Process_ManyCDBs.plx and wait for it to complete. After it completes the five tables in the database EPA2014FF10 should be populated.
4) Export the tables from EPA2014FF10 and manually add any headers desired using a text editor.