# ERROR in smkinven when running smk\_edgar\_HEMI108k.csh with SMOKEv4.7

**URL:** <https://forum.cmascenter.org/t/error-in-smkinven-when-running-smk-edgar-hemi108k-csh-with-smokev4-7/4132>\
**Category:** SMOKE\
**Tags:** smoke\
**Created:** [May 22, 2023, 12:49pm UTC](https://forum.cmascenter.org/t/error-in-smkinven-when-running-smk-edgar-hemi108k-csh-with-smokev4-7/4132 "2023-05-22T12:49:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starry](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Starry](https://forum.cmascenter.org/u/Starry)\
**Post date:** [May 22, 2023, 12:49pm UTC](https://forum.cmascenter.org/t/error-in-smkinven-when-running-smk-edgar-hemi108k-csh-with-smokev4-7/4132/1 "2023-05-22T12:49:35Z")

</div>

Hi all,  
When I run the case about the smoke \_edgar\_HEMI108K.csh, I met this problem:

 ![smoke](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/b/bd2783d48d05f07ca79770c9d95cfc77779f49eb.png)  
The only thing I changed was creating arinv.edgar.list file. And I didn’t find anyone who met this problem when using smoke \_edgar\_HEMI108K.csh on the internet. I found a similar question [Grwinven run issue](https://forum.cmascenter.org/t/grwinven-run-issue/549) but I still can’t fix it.  
There are my log, input file, assign file and script. Thanks for any help.  
[smkinven.edgar.HEMI\_108k.log.txt](https://forum.cmascenter.org/uploads/short-url/rSknTX1ih8KRvEBGNRaq8Qoxlsi.txt) (8.5 KB)  
[arinv.edgar.lst.txt](https://forum.cmascenter.org/uploads/short-url/xp3OzUaBwO012jH5gm8r00UFvVK.txt) (1.0 KB)  
[ASSIGNS.EDGAR.cmaq.cb05\_soa.HEMI\_108k.txt](https://forum.cmascenter.org/uploads/short-url/aX8LcYWi2zQpjQCJw1lBil9sBeK.txt) (17.9 KB)  
[smk\_edgar\_HEMI108k.csh](https://forum.cmascenter.org/uploads/short-url/s5mtarZKJa1Ue3KOKO4Xi3Pm4Ez.csh) (6.6 KB)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [May 22, 2023, 1:04pm UTC](https://forum.cmascenter.org/t/error-in-smkinven-when-running-smk-edgar-hemi108k-csh-with-smokev4-7/4132/2 "2023-05-22T13:04:21Z")

</div>

I think you need to use ncdump to look at the variable names in your EDGAR gridded inventory.

The script is failing to run because the variable name PM2\_5 is not found.  
It may be that your inventory uses the variable name PM2.5 rather than PM2\_5.

Value for SMKINVEN\_FORMULA: ‘PMC=PM10-PM2\_5’

Variable “PM2\_5” from formula was not found in inventory.  
ERROR: Problem processing formula 1 : “PMC=PM10-PM2\_5”

Change the smk\_edgar\_HEMI108k.csh script to modify the following line:

`setenv SMKINVEN_FORMULA "PMC=PM10-PM2_5" # formula for computing emissions value`

change to

`setenv SMKINVEN_FORMULA "PMC=PM10-PM2.5" # formula for computing emissions value`

OR an alternative method:

In your arinv.edgar.lst.txt file you have the following, so another solution may be to change:

TRANSPORT,PM2.5,emi\_pm2.5,0,/public5/home/sch6618/soft/model/SMOKEv47/data/inventory/nei2005/edgar/edgar\_HTAP\_PM2.5\_emi\_TRANSPORT\_2010.0.1x0.1.nc

to

TRANSPORT,PM2\_5,emi\_pm2.5,0,/public5/home/sch6618/soft/model/SMOKEv47/data/inventory/nei2005/edgar/edgar\_HTAP\_PM2.5\_emi\_TRANSPORT\_2010.0.1x0.1.nc

---

<div class="post-metadata">

**Author:** ![Starry](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Starry](https://forum.cmascenter.org/u/Starry)\
**Post date:** [May 23, 2023, 1:55am UTC](https://forum.cmascenter.org/t/error-in-smkinven-when-running-smk-edgar-hemi108k-csh-with-smokev4-7/4132/3 "2023-05-23T01:55:13Z")

</div>

> [@lizadams](#):
>
> PM2\_5

Thank you very much, the problem has been solved.
