https://github.com/cempd/smoke-moves

SMOKE-MOVES Processing Scripts

https://github.com/cempd/smoke-moves

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

SMOKE-MOVES Processing Scripts

Basic Info
  • Host: GitHub
  • Owner: CEMPD
  • Language: Perl
  • Default Branch: master
  • Homepage:
  • Size: 2.14 MB
Statistics
  • Stars: 8
  • Watchers: 13
  • Forks: 6
  • Open Issues: 0
  • Releases: 0
Created about 11 years ago · Last pushed 12 months ago
Metadata Files
Readme

README.md

SMOKE-MOVES

SMOKE-MOVES is a set of methodologies and software tools to help use output from MOVES3, MOVES4, or MOVES5 as inputs to SMOKE. Section 3.2 of the SMOKE User's Manual describes the various scripts and files that make up SMOKE-MOVES.

The current version of SMOKE-MOVES creates run specification files designed for use in MOVES4 (through MOVES4.0.1). These run specification files should also work with MOVES5 with no modifications.

To use SMOKE-MOVES with MOVES3 (through MOVES3.0.3), make sure to download the version tagged as "MOVES3".

SMOKE-MOVES Processing Scripts

SMOKE-MOVES can be downloaded as a zip archive, for the version of MOVES you are using:

This package assumes a base directory of /opt/SMOKE-MOVES/. Update the following input files with your installation location:

inputs/countyrep.in inputs/06001/control.in

Also, set the location of your MOVES installation in inputs/06001/control.in:

MOVESHOME = /opt/MOVES4

Generate import scripts and runspec files:

> scripts/runspec_generator.pl inputs/06001/control.in inputs/countyrep.in -csh

Import custom county data:

> csh runspec_files/06001/06001_2011importer.csh

Run MOVES:

> csh runspec_files/06001/06001_2011runspec.csh

After MOVES finishes running, generate the emission factor files.

```

mkdir efs mkdir efs/06001 ```

Rate-per-distance factors:

```

scripts/moves2smkEF.pl -r RPD \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregation.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQ_CB05.csv efs/06001/ ```

Rate-per-vehicle factors:

```

scripts/moves2smkEF.pl -r RPV \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregationrpvnorps.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQCB05.csv efs/06001/ ```

Rate-per-profile factors:

```

scripts/moves2smkEF.pl -r RPP \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregation.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQ_CB05.csv efs/06001/ ```

Rate-per-hour factors:

```

scripts/moves2smkEF.pl -r RPH \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregation.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQ_CB05.csv efs/06001/ ```

Rate-per-start factors:

```

scripts/moves2smkEF.pl -r RPS \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregation.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQ_CB05.csv efs/06001/ ```

Off-network idling factors:

```

scripts/moves2smkEF.pl -r RPHO \ --formulas scripts/pollutantformulasAQ.txt \ --procagg scripts/processaggregationrpho.csv \ runspecfiles/06001/060012011outputDBs.txt \ scripts/pollutantmappingAQCB05.csv efs/06001/ ```

Humidity adjustments

By default, MOVES3 and MOVES4 will adjust the calculated NOx emission factors to adjust for humidity. When using SMOKE-MOVES, this adjustment can instead be handled by the SMOKE program Movesmrg which can apply more detailed adjustments based on hourly, gridded meteorology data.

In order to turn off the humidity adjustment in MOVES, two different procedures are used for MOVES3 vs. MOVES4.

Turn off humidity adjustments in MOVES3

Download the database nonoxadjmoves3 from https://gaftp.epa.gov/Air/emismod/MOVES3/otherinputs/nonoxadj_moves3.zip and load it into your MySQL or MariaDB server. The runspec files generated by the runspec generator script automatically include this database in the MOVES configuration.

Turn off humidity adjustments in MOVES4

In the default MOVES4 database (named movesdb20230615 [MOVES4.0.0] or movesdb20240104 [MOVES4.0.1]), the table named noxHumidityAdjust needs to be emptied:

CREATE TABLE noxHumidityAdjust_full LIKE noxHumidityAdjust; INSERT INTO noxHumidityAdjust_full SELECT * FROM noxHumidityAdjust; TRUNCATE noxHumidityAdjust;

The SQL commands above create a backup of the noxHumidityAdjust table before removing the entries in the table. To re-enable the NOx humidity adjustments in MOVES4, rename noxHumidityAdjust_full back to noxHumidityAdjust before running MOVES.

Configure moves2smkEF.pl for humidity adjustments

The SMOKE-MOVES post-processing script moves2smkEF.pl needs to be informed about whether or not the MOVES emission factors have had humidity adjustments applied. When running moves2smkEF.pl for the various modes (RPD, RPV, etc.), include the command line flag --moves_adjusted_nox N to indicate that humidity adjustments were NOT applied by MOVES.

If moves2smkEF.pl is run with the flag --moves_adjusted_nox N, the output emission factor tables will include the header line

HUMIDITY_ADJUSTED_NOX N

When running the SMOKE program Movesmrg, the option APPLY_NOX_HUMIDITY_ADJ can be used to apply humidity corrections.

Data sources

County-specific MOVES data

Previously, SMOKE-MOVES loaded county-specific data into MOVES via CSV files. Now, the input file inputs/countyrep.in specifies the database to use for each representative county. For example:

<REPCOUNTY> FIPS=06001 CDB=c06001y2011_20150522 <ENDREPCOUNTY>

Default county input databases are available for download from the EPA. Note that the database schema for the county inputs changed with the release of MOVES3.

For MOVES3: - 2016: https://gaftp.epa.gov/Air/emismod/2016/v3/2016emissions/2016v3CDBsMOVES3v2WithST62AgeDistUpdate20220606.zip - 2017: https://gaftp.epa.gov/Air/MOVES3/2017/2017repCDBs_20201209.zip

For MOVES4: - 2021: https://gaftp.epa.gov/Air/emismod/2021/2021emissions/CDBs202120240205.zip

Meteorology files

inputs/MOVES_DAILY_12US2_2011001-2011365.txt inputs/MOVES_RH_DAILY_12US2_2011001-2011365.txt

National versions of these Met4moves output files are available from the EPA at https://gaftp.epa.gov/Air/emismod/2016/v1/ancillarydata/gedatfor2016v1other31oct2019.zip

Example Met4moves scripts are available from the EPA at https://gaftp.epa.gov/Air/emismod/2017/met4movesexamplescripts_2017.zip

Owner

  • Name: Center for Environmental Modeling for Policy Development
  • Login: CEMPD
  • Kind: organization

GitHub Events

Total
  • Watch event: 1
  • Member event: 1
  • Push event: 2
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 1
  • Member event: 1
  • Push event: 2
  • Fork event: 1
  • Create event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 67
  • Total Committers: 1
  • Avg Commits per committer: 67.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Catherine Seppanen c****s@w****m 67
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 2 years ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: 20 days
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 0.25
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cseppan (3)
  • sashigurram (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels