# SMOKE running error

**URL:** <https://forum.cmascenter.org/t/smoke-running-error/1827>\
**Category:** SMOKE\
**Created:** [October 12, 2020, 12:50pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827 "2020-10-12T12:50:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [October 12, 2020, 12:50pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/1 "2020-10-12T12:50:23Z")

</div>

Hi everyone,  
I am using SMOKE to process EDGAR mercury emission inventory. Below are what i did(use cement emission as an example):

1. I write a new arinv file:  
CMT,HG\_GAS,emis\_hg\_g,0,/home/lwu127/SMOKE-4.7/data/inventory/edgar2010/hg\_cement/EDGARv4tox2\_Hg\_G\_cement\_2010.0.1x0.1.nc  
CMT,HGII\_GAS,emis\_hg\_d,0,/home/lwu127/SMOKE-4.7/data/inventory/edgar2010/hg\_cement/EDGARv4tox2\_Hg\_D\_cement\_2010.0.1x0.1.nc  
CMT,PHGI,emis\_hg\_p,0,/home/lwu127/SMOKE-4.7/data/inventory/edgar2010/hg\_cement/EDGARv4tox2\_Hg\_P\_cement\_2010.0.1x0.1.nc
2. i changed the gspro file to match the variable names,  
0000;“HG\_GAS”;“HGNRVA”;1.0;200.59;1.0  
0000;“HGII\_GAS”;“HGIIGAS”;1.0;200.59;1.0  
0000;“PHGI”;“PHGI”;1.0;1.0;1.0
3. I changed the gsref file to:  
CMT;“0000”; HG\_GAS  
CMT;“0000”;HGII\_GAS  
CMT;“0000”;PHGI  
Then i run the program and this error showed up:  
\*\*\* ERROR ABORT in subroutine RDINVMAP  
Corrupted map formatted file - missing lines.  
I checked the intermediate file area.map.hg\_cement.HEMI\_2010.txt and it is empty. The directory hg\_cement.HEMI\_2010\_dat is also empty. Could you please give some advice on what causes this error? Thanks!  
Lin

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [October 12, 2020, 7:38pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/2 "2020-10-12T19:38:43Z")

</div>

Your GSPRO, GSREF, and arinv file look correct. Since the \_dat directory is empty, the issue is with Smkinven and not related to speciation. Are HG\_GAS, HGII\_GAS, and PHGI listed in the inventory table with keep = Y? Both the inventory data name (columns 1-11) and inventory pollutant code (columns 17-32) should have HG\_GAS, HGII\_GAS, and PHGI, respectively.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [October 12, 2020, 8:14pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/4 "2020-10-12T20:14:35Z")

</div>

Thanks Eyth,  
I only changed three lines in the invtable and the only thing i changed is the first N:  
PHGI 202 Y 1.0 N tons/yr Mercury, Particulate Divalent Mercury !Keep set to N for MP-lite  
PHGI EXH\_\_202 N 1.0 N tons/yr Mercury, Particulate Divalent Mercury !Keep set to N for MP-lite  
HGII\_GAS 201 Y 1.0 N tons/yr Mercury, Gaseous Divalent Mercury !Keep set to N for MP-lite  
HGII\_GAS EXH\_\_201 N 1.0 N tons/yr Mercury, Gaseous Divalent Mercury !Keep set to N for MP-lite  
HGII\_GAS 7487947 N 0.7388 N tons/yr Mercury, Gaseous Divalent Mercury !Keep set to N for MP-lite  
HG\_GAS 200 Y 1.0 N tons/yr Mercury, Elemental Gaseous Mercury !Keep set to N for MP-lite  
HG\_GAS EXH\_\_200 N 1.0 N tons/yr Mercury, Elemental Gaseous Mercury !Keep set to N for MP-lite  
Is this correct?

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [October 13, 2020, 12:33pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/5 "2020-10-13T12:33:05Z")

</div>

For EDGAR processing, the second column - currently “202”, “201”, “200” - needs to be the same as the first column: “PHGI”, “HGII\_GAS”, and “HG\_GAS”, respectively. We recommend adding new lines that have this and keeping the 202/201/200 lines as-is, in case the INVTABLE ever gets used for traditional inventory processing.

Also, the extra whitespace may have just been lost in email translation, be sure that your INVTABLE has the extra whitespace as required by SMOKE (fixed format). For example:

PM2\_5\_OTH PM2\_5\_OTH Y 1.0 N tons/yr PM2.5 minus PEC and POC (for HTAP)

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [October 13, 2020, 1:48pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/7 "2020-10-13T13:48:22Z")

</div>

Hi eyth,  
I changed invtable to:  
HG\_GAS HG\_GAS Y 1.0 N tons/yr Mercury, Elemental Gaseous Mercury !Keep set to N for MP-lite  
HGII\_GAS HGII\_GAS Y 1.0 N tons/yr Mercury, Gaseous Divalent Mercury !Keep set to N for MP-lite  
PHGI PHGI Y 1.0 N tons/yr Mercury, Particulate Divalent Mercury !Keep set to N for MP-lite  
I checked the whitespace and it is right. But it still shows the same error.  
Lin

---

<div class="post-metadata">

**Author:** ![bbaek](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/bbaek/32/22_2.png) [@bbaek](https://forum.cmascenter.org/u/bbaek)\
**Post date:** [October 13, 2020, 2:08pm UTC](https://forum.cmascenter.org/t/smoke-running-error/1827/8 "2020-10-13T14:08:23Z")

</div>

Please share your Smkinven log file for me to review the issue. Thanks.
