# Difference in variables produced by SMKINVEN and Error in SMKMERGE

**URL:** <https://forum.cmascenter.org/t/difference-in-variables-produced-by-smkinven-and-error-in-smkmerge/1369>\
**Category:** Emissions Inventory\
**Created:** [March 16, 2020, 6:47am UTC](https://forum.cmascenter.org/t/difference-in-variables-produced-by-smkinven-and-error-in-smkmerge/1369 "2020-03-16T06:47:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvsathe](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yvsathe](https://forum.cmascenter.org/u/yvsathe)\
**Post date:** [March 16, 2020, 6:47am UTC](https://forum.cmascenter.org/t/difference-in-variables-produced-by-smkinven-and-error-in-smkmerge/1369/1 "2020-03-16T06:47:52Z")

</div>

I am running Inventory import program SMKINVEN to import the area source inventory for PM10 in ORL format. I am using the same script settings used in nctox case. When I look at the two SMKINVEN log files produced for nctox and my case, I found that there is difference in variables written to PM10.ncf file.  
In nctox case it is writing 7 variables:  
“IOAPI\_DAT” opened as NEW(READ-WRITE )  
File name “/data/SMOKE/SMOKE\_V4.7/data/inventory/nctox/area.nctox\_dat/PM10.ncf”  
File type GRDDED3  
Execution ID “???”  
Grid name “”  
Dimensions: 3411 rows, 1 cols, 1 lays, 7 vbles  
NetCDF ID: 131072 opened as READWRITE  
Time-independent data.  
SRCID written to IOAPI\_DAT  
PM10 written to IOAPI\_DAT  
DY\_PM10 written to IOAPI\_DAT  
EF\_PM10 written to IOAPI\_DAT  
CE\_PM10 written to IOAPI\_DAT  
RE\_PM10 written to IOAPI\_DAT  
RP\_PM10 written to IOAPI\_DAT  
Closing file IOAPI\_DAT

Whereas for my case it is writing only two variables to PM10.ncf file:  
“IOAPI\_DAT” opened as NEW(READ-WRITE )  
File name “/data/SMOKE/SMOKE\_V4.7/data/inventory/PMC/area.PMC\_dat/PM10.ncf”  
File type GRDDED3  
Execution ID “???”  
Grid name “”  
Dimensions: 96 rows, 1 cols, 1 lays, 2 vbles  
NetCDF ID: 131072 opened as READWRITE  
Time-independent data.  
SRCID written to IOAPI\_DAT  
PM10 written to IOAPI\_DAT  
Closing file IOAPI\_DAT

Why other variables are not written in my case? I have provided values for CE, RE, RP in my area source inventory input file. From where does nctox case producing DY\_PM10 and EF\_PM10 variables?

At this moment the SMKINVEN is showing normal completion in both cases, but when I further processed for GRDMAT and SMKMERGE for area source only, then it generates an error in SMKMERGE program in my case only.

The Error Says  
\*\*\* ERROR ABORT in subroutine OPENMRGIN  
Number of map-formatted variables is inconsistent with header of inventory file.  
I/O API header has -1 variables indicated, but map-formated inventory file has 1

(Refer Attached log of SMKMERGE for the details).

[smkinven.area.nctox.log.txt](https://forum.cmascenter.org/uploads/short-url/tQoQdcediMV5qwFRP1osEZDnxq.txt) (27.5 KB) [smkinven.area.PMC.log.txt](https://forum.cmascenter.org/uploads/short-url/4VSlsijpNVjqRIN2meXHH4HVrFK.txt) (9.6 KB)  
[smkmerge.area.PMC.20110110.PNE\_LL\_2K.log.txt](https://forum.cmascenter.org/uploads/short-url/nSd3HVYHULWnlwx4oOWXapZXDd0.txt) (6.0 KB)

---

<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:** [March 23, 2020, 3:24pm UTC](https://forum.cmascenter.org/t/difference-in-variables-produced-by-smkinven-and-error-in-smkmerge/1369/2 "2020-03-23T15:24:20Z")

</div>

Can you remove the columns (10, 11, 12) for control efficiency (CE), rule effectiveness (RE) and rule penetration (RP) in your ORL PM10 inventory file and then rerun Smkinven? These columns are not currently fully supported in SMOKE so you can remove them without any problem. As a default, Smkinven will assign the default values (CE=0, RE=1, RP=1). Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![yvsathe](https://avatars.discourse-cdn.com/v4/letter/y/c67d28/32.png) [@yvsathe](https://forum.cmascenter.org/u/yvsathe)\
**Post date:** [March 28, 2020, 3:41pm UTC](https://forum.cmascenter.org/t/difference-in-variables-produced-by-smkinven-and-error-in-smkmerge/1369/3 "2020-03-28T15:41:01Z")

</div>

Thank you for your help. I will try this and update the status.
