MEGAN TXT2IOAPI Execution Error: “ERROR ABORT in subroutine CNVT_EFS”

Hi all,
I have tried to run the MEGAN3.2 model (compiled by gfortran) and I finished the first two steps (Pre-processing and Emission Factor Processing) successfully. I started the last step (Emission Rate Estimator) by executing the TXT2IOAPI program (run.txt2ioapi.v32.csh) but I got “ERROR ABORT in subroutine CNVT_EFS”. I was unable to identify the issue’s root cause.
The logfile is:

     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-2021 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 200 2021-05-10 14:06:20Z coats $
     Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
     netCDF version 4.7.0 of Jan 20 2022 14:59:39 $
      
      
     Missing environment variable EXECUTION_ID
     Value for GDNAM3D:  'marmara_4km'
     Value for GDNAM3D:  'marmara_4km'
     Value for RUN_EFS:  T returning TRUE

     File "GRIDDESC" opened for input on unit:  99
     /home/reza/APPS/MEGAN/MEGANv3.2/Input/MAP/GRIDDESC

     
     *** ERROR ABORT in subroutine CNVT_EFS
     Could not get grid description.

The process input files (OutputGridEF.marmara_4km.csv and GRIDDESC), cnvt_efs.F, and run.txt2ioapi.v32.csh files are attached to the following link:

https://drive.google.com/drive/folders/1gbKPkw0_wvjV2KfmakXYOXKZzAXSlze2?usp=sharing

Thank you for any help in advance.
Reza

Shouldn’t your GRIDDESC have:

’ ’
‘LambertConformal’
2 30.000 60.000 24.000 24.000 45.000
’ ’
‘marmara_4km’
‘LambertConformal’ 159999.312 -610361.625 4000.000 4000.000 94 79 1
’ ’

since

 Value for GDNAM3D:  'marmara_4km'

@willison.jeff
Thank you for your response. In the GRIDDESC file, the domain name is defined as '4km’. Is this mean that I should change the GDNAM3D value to ‘4km’, in the MEGAN?

You can change it in the GRIDDESC or in the .csh file. They just have to agree with each other.

3 Likes

Thank you, the problem is solved.