Hello,
I am trying to use EDGAR data for Iran and I have encountered the following error in smkmerge:
`
This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3
I/O Applications Programming Interface, [I/O API] which is
built on top of the netCDF I/O library (Copyright 1993, 1996
University Corporation for Atmospheric Research/Unidata
Program) and the PVM parallel-programming library (from
Oak Ridge National Laboratory).
Copyright (C) 1992-2002 MCNC,
(C) 1992-2018 Carlie J. Coats, Jr.,
(C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and
(C) 2014-2020 UNC Institute for the Environment.
Released under the GNU LGPL License, version 2.1. See URL
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
for conditions of use.
ioapi-3.2: $Id: init3.F90 185 2020-08-28 16:49:45Z coats $
Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
netCDF version 4.1.3 of Feb 27 2021 04:51:37 $
Missing environment variable EXECUTION_ID
SMOKE ---------------
Copyright (c)2004 Environmental Modeling for Policy Development
All rights reserved
Program SMKMERGE, Version SMOKEv4.8.1_Jan2021
Online documentation
http://www.cep.unc.edu/empd/products/smoke
Program SMKMERGE to merge the inventory or hourly emission
files with gridding matrices and with optionally any
combination of speciation matrices, multiplicative control
matrices, additive control matrices, or reactivity control
matrices. The program can operate on one to four source
categories (area, biogenic, mobile, or point sources), or any
combination of these. Gridded and/or state reports and/or
county reports can be written from this program. If a layer-
fractions file is input, then the total emissions output file
is three-dimensional.
You will need to enter the logical names for the input and
output files (and to have set them prior to program start,
using "setenv <logicalname> <pathname>").
You may use END_OF-FILE (control-D) to quit the program
during logical-name entry. Default responses are given in
brackets [LIKE THIS] and can be accepted by hitting the
<RETURN> key.
Value for PROMPTFLAG: N returning FALSE
Returning default value TRUE for query:
"Continue with program?"
Value for MRG_SOURCE: 'A'
Value for MRG_SOURCE: 'A'
Value for MRG_CTLMAT_MULT not defined; returning defaultval ': ' '
Value for MRG_CTLMAT_MULT not defined; returning defaultval ': ' '
Value for MRG_CTLMAT_REAC not defined; returning defaultval ': ' '
Value for MRG_CTLMAT_REAC not defined; returning defaultval ': ' '
Value for MRG_BYDAY not defined; returning defaultval ': ' '
Value for MRG_BYDAY not defined; returning defaultval ': ' '
Value for MRG_TEMPORAL_YN: Y returning TRUE
Value for MRG_SPCMAT_YN: Y returning TRUE
Value for MRG_METCHK_YN not defined;returning default: TRUE
Value for MRG_MARKETPEN_YN not defined;returning default: TRUE
Value for MRG_GRDOUT_YN: Y returning TRUE
Value for MRG_REPSTA_YN: Y returning TRUE
Value for MRG_REPCNY_YN: Y returning TRUE
Value for MRG_REPINV_YN not defined;returning default: TRUE
Value for MRG_REPSPC_YN not defined;returning default: TRUE
Value for MRG_REPCTL_YN not defined;returning default: FALSE
Value for USE_VARIABLE_GRID not defined;returning default: FALSE
Value for SMK_SRCGROUP_OUTPUT_YN not defined;returning default: FALSE
Value for SMK_SUB_SECTOR_OUTPUT_YN not defined;returning default: FALSE
Value for SMK_AVEDAY_YN: N returning FALSE
Value for GRIDDESC: '/home/amir/SMK_HOME//data/ge_dat/GRIDDESC'
Value for GRIDDESC: '/home/amir/SMK_HOME//data/ge_dat/GRIDDESC'
File "GRIDDESC" opened for input on unit: 98
/home/amir/SMK_HOME//data/ge_dat/GRIDDESC
Value for IOAPI_GRIDNAME_1: 'MIDEAST_0pt1'
Value for IOAPI_GRIDNAME_1: 'MIDEAST_0pt1'
File "GRIDDESC" opened for input on unit: 98
/home/amir/SMK_HOME//data/ge_dat/GRIDDESC
>>--->> WARNING in subroutine DSCGRID
Missing coord system "LATLON" for grid "MIDEAST_0pt1" in GRIDDEFS
NOTE: Grid settings initialized using general in
grid description file.
Value for PROMPTFLAG: N returning FALSE
File "AREA" opened for input on unit: 98
/home/amir/SMK_HOME//data/inventory/iran/area.map.edgar.iran.txt
Value for AREA: '/home/amir/SMK_HOME//data/inventory/iran/area.map.edgar.iran.txt'
Value for AREA: '/home/amir/SMK_HOME//data/inventory/iran/area.map.edgar.iran.txt'
File "ASRC" opened for input on unit: 97
/home/amir/SMK_HOME//data/inventory/iran/edgarsrc.edgar.txt
Value for IOAPI_CHECK_HEADERS not defined;returning default: FALSE
"AREA" opened as OLD:READ-ONLY
File name "/home/amir/SMK_HOME//data/inventory/iran/edgar.edgar.ncf"
File type GRDDED3
Execution ID "????????????????"
Grid name ""
Dimensions: 32763 rows, 1 cols, 1 lays, 4 vbles
NetCDF ID: 65536 opened as READONLY
Time-independent data.
"TMP_POL_FILE" opened as OLD:READ-ONLY
File name "/home/amir/SMK_HOME//data/inventory/iran/edgar.edgar_dat/CO.ncf"
File type GRDDED3
Execution ID "????????????????"
Grid name ""
Dimensions: 30247 rows, 1 cols, 1 lays, 7 vbles
NetCDF ID: 131072 opened as READONLY
Time-independent data.
Closing file TMP_POL_FILE
Value for PROMPTFLAG: N returning FALSE
"ATMP" opened as OLD:READ-ONLY
File name "/home/amir/SMK_HOME//data/run_edgar/scenario/atmp.edgar.edgar.2005191.ncf"
File type GRDDED3
Execution ID "????????????????"
Grid name ""
Dimensions: 32763 rows, 1 cols, 1 lays, 1 vbles
NetCDF ID: 131072 opened as READONLY
Starting date and time 2005191:000000 (0:00:00 July 10, 2005)
Timestep 010000 (1:00:00 hh:mm:ss)
Maximum current record number 25
NOTE: Time zone initialized using ATMP hourly emissions file.
Value for PROMPTFLAG: N returning FALSE
"AGMAT" opened as OLD:READ-ONLY
File name "/home/amir/SMK_HOME//data/run_edgar/static/agmat.edgar.ir_edgar.edgar.ncf"
File type SMATRX3
Execution ID "????????????????"
Grid name "WRF_CMAQ_2WAY"
Dimensions: 34969 rows, 39299 cols, 1 lays, 1 vbles
NetCDF ID: 196608 opened as READONLY
Time-independent data.
ERROR: Grid type, cell sizes, or grid projection for area in
gridding matrix are inconsistent with initialized values.
ERROR: Grid origins not compatible between area in
gridding matrix and initialized values.
ERROR: Grid parameters for area in
gridding matrix are inconsistent with initialized values.
"ASMAT" opened as OLD:READ-ONLY
File name "/home/amir/SMK_HOME//data/run_edgar/static/asmat_l.edgar.cmaq_cb05_soa.edgar.ncf"
File type GRDDED3
Execution ID "????????????????"
Grid name ""
Dimensions: 32763 rows, 1 cols, 1 lays, 1 vbles
NetCDF ID: 262144 opened as READONLY
Time-independent data.
NOTE: Speciation type initialized using area speciation matrix.
File "INVTABLE" opened for input on unit: 96
/home/amir/SMK_HOME//data/inventory/iran/other/invtable_hapcap_cb05soa.txt
Value for USE_EXP_GEO_CODES: Y returning TRUE
*** ERROR ABORT in subroutine OPENMRGIN
Problems opening input files. See ERROR(S) above.
`
I made changes only to GRIDMASK, GRIDDESC, and arinv files in order to run my case.
grdmat, smkinven, spcmat and temporal indicate normal completion of the programs but I get errors in smkmerge.
I searched for the appropriate answer but I could not find any.
Thanks for your time