An official website of the United States government.

This is not the current EPA website. To navigate to the current EPA website, please go to This website is historical material reflecting the EPA website as it existed on January 19, 2021. This website is no longer updated and links to external websites and some internal pages may not work. More information »

MOVES and Related Models

How Can I Reduce the Time Needed to Run the Nonroad Emission Factor Post-Processing Scripts?

Very long run times are not unusual for Nonroad emission factor post-processing scripts, particularly with a large output database. 

To reduce script run time, we recommend doing the following:

  1. Reduce the size of your output database by choosing just the amount of detail you need in the ‘Output Emissions Detail’ panel.
  2. Only select sectors in the ‘Vehicles/Equipment/NonRoad/Vehicle Equipment’ panel for which you have appropriate activity data.
  3. Manually delete equipment types for which you don’t have activity information from the output file before running the script.

MySQL can be used to manually delete equipment types. For example, if I only had activity data for Pavers (NREquipTypeID=6) and Rollers (NREquipTypeID=9) in the Construction sector, the following script could be run in MySQL to reduce output to only Pavers and Rollers before running a Nonroad emission factors script in MOVES:

delete [output database].movesoutput from [output database].movesoutput
inner join movesdb20161117.nrscc using(SCC)
inner join movesdb20161117.nrequipmenttype using(NREquipTypeID)
where NREquipTypeID not in (6, 9);

We suggest making a copy of your original ‘movesoutput’ table before deleting records:

create table [output database].movesoutput_copy
select * from [output database].movesoutput;

Note: To use the 'delete' function, 'Safe Updates' must be unchecked in the 'Edit/Preference/SQL Editor' panel in MySQL.