ERROR in smkinven for mobile emissions

In my log file, it seems that PMC.ncf was opened twice.

 File name "/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PMC.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name ""
 Dimensions: 491519 rows, 1 cols, 1 lays, 7 vbles
 NetCDF ID:    131072  opened as READWRITE
 Time-independent data.
 SRCID written to IOAPI_DAT
 PMC written to IOAPI_DAT
 DY_PMC written to IOAPI_DAT
 EF_PMC written to IOAPI_DAT
 CE_PMC written to IOAPI_DAT
 RE_PMC written to IOAPI_DAT
 RP_PMC written to IOAPI_DAT
 Closing file IOAPI_DAT

 "IOAPI_DAT" opened as NEW(READ-WRITE )
 File name "/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PNO3.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name ""
 Dimensions: 282698 rows, 1 cols, 1 lays, 7 vbles
 NetCDF ID:    131072  opened as READWRITE
 Time-independent data.
 SRCID written to IOAPI_DAT
 PNO3 written to IOAPI_DAT
 DY_PNO3 written to IOAPI_DAT
 EF_PNO3 written to IOAPI_DAT
 CE_PNO3 written to IOAPI_DAT
 RE_PNO3 written to IOAPI_DAT
 RP_PNO3 written to IOAPI_DAT
 Closing file IOAPI_DAT

 "IOAPI_DAT" opened as NEW(READ-WRITE )
 File name "/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/POC.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name ""
 Dimensions: 491519 rows, 1 cols, 1 lays, 7 vbles
 NetCDF ID:    131072  opened as READWRITE
 Time-independent data.
 SRCID written to IOAPI_DAT
 POC written to IOAPI_DAT
 DY_POC written to IOAPI_DAT
 EF_POC written to IOAPI_DAT
 CE_POC written to IOAPI_DAT
 RE_POC written to IOAPI_DAT
 RP_POC written to IOAPI_DAT
 Closing file IOAPI_DAT
 "IOAPI_DAT" opened as NEW(READ-WRITE )
 File name "/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/VOC.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name ""
 Dimensions: 558856 rows, 1 cols, 1 lays, 7 vbles
 NetCDF ID:    131072  opened as READWRITE
 Time-independent data.
 SRCID written to IOAPI_DAT
 VOC written to IOAPI_DAT
 DY_VOC written to IOAPI_DAT
 EF_VOC written to IOAPI_DAT
 CE_VOC written to IOAPI_DAT
 RE_VOC written to IOAPI_DAT
 RP_VOC written to IOAPI_DAT
 Closing file IOAPI_DAT

 "IOAPI_DAT" opened as NEW(READ-WRITE )
 File name "/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/VOC_INV.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name ""
 Dimensions: 558856 rows, 1 cols, 1 lays, 7 vbles
 NetCDF ID:    131072  opened as READWRITE
 Time-independent data.
 SRCID written to IOAPI_DAT
 VOC_INV written to IOAPI_DAT
 DY_VOC_INV written to IOAPI_DAT
 EF_VOC_INV written to IOAPI_DAT
 CE_VOC_INV written to IOAPI_DAT
 RE_VOC_INV written to IOAPI_DAT
 RP_VOC_INV written to IOAPI_DAT
 Closing file IOAPI_DAT
 NOTE: Computing variables for       1 formulas.
 NOTE: Computing variable "PMC" using formula "PMC=PM10-PM2_5"
 IOAPI_DAT       :/glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PMC.ncf

 >>--->> WARNING in subroutine OPENSET
 File already exists on disk, cannot open as "NEW".

 ERROR: Could not open I/O API "PMC" file for file name:
      /glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PMC.ncf
 File set "IOAPI_DAT" is not currently open
 Could not write "SRCID" to file:
      /glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PMC.ncf
 File set "IOAPI_DAT" is not currently open

 *** ERROR ABORT in subroutine WRINVPOL
 Could not write "PMC" to file:
      /glade/work/yugu/SMK_HOME/data/inventory/nei2010_out/mobile.nei2010_out_dat/PMC.ncf

" File already exists on disk, cannot open as “NEW”." means you need to remove all the previous output files from Smkinven. It can not overwrite unless they are in the same format.

I am sure that I have removed all the previous output files from smkinven. Then I rerun the script.
However, I still got the same errors.
You used the same mobile inventory and you were able to process successfully.
What is any other possible reason?:sob:

Thank you so much for all your help. The error has been fixed.
In my script, I set the PMC = PM10-PM2.5, while PMC exists in my mobile inventory. Thus, PMC.ncf was written twice, which as the error said ‘File already exists on disk, cannot open as “NEW”‘.

hi,@bbaek
I have similar problems. I try to move inventory files in ORL format, like this:
#ORL
#TYPE Mobile Source SS Inventory
#COUNTRY CHINA
#YEAR 2015
#DESC Draft 2015 version 2.0
#FIPS,SCC,POLL,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR,TRIBAL_CODE,CEFF,REFF,RPEN,CONTROL_MEASURES,PCT_REDUCTION,CURRENT_COST,CUMULATIVE_COST
14002,03470003021929,“PM”,695.05,1.90,“04”,2015,
I copy SMK_ area_ nctox.csh Script and modify to SMK_ mobile_ nctox.csh
and run it.Log file like this:
the source will be dropped
WARNING: CAS number [
the source will be dropped
ERROR: Emission data, control percentages, and/or emission
factor for PM are not a number or have bad formatting at line 8
I checked the configuration file, but I couldn’t find the reason.

If you are processing a new pollutant name called “PM”, you need to make sure that it’s is listed in the inventory pollutant table called “INVTABLE”. If not, there is no way for SMOKE to know which pollutant to process or not.
If you are new at SMOKE modeling, please consider taking the SMOKE online courses. There is one coming in the last week of July.