# MEGAN TXT2IOAPI Execution Error: “ERROR ABORT in subroutine CNVT\_EFS”

**URL:** <https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584>\
**Category:** MEGAN\
**Created:** [September 20, 2022, 11:37am UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584 "2022-09-20T11:37:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrezaei83](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rrezaei83](https://forum.cmascenter.org/u/rrezaei83)\
**Post date:** [September 20, 2022, 11:37am UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584/1 "2022-09-20T11:37:54Z")

</div>

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:

```auto
     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](https://drive.google.com/drive/folders/1gbKPkw0_wvjV2KfmakXYOXKZzAXSlze2?usp=sharing)

Thank you for any help in advance.  
Reza

---

<div class="post-metadata">

**Author:** ![willison.jeff](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@willison.jeff](https://forum.cmascenter.org/u/willison.jeff)\
**Post date:** [September 20, 2022, 12:46pm UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584/2 "2022-09-20T12:46:39Z")

</div>

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'

```

---

<div class="post-metadata">

**Author:** ![rrezaei83](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rrezaei83](https://forum.cmascenter.org/u/rrezaei83)\
**Post date:** [September 20, 2022, 12:57pm UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584/3 "2022-09-20T12:57:13Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![willison.jeff](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@willison.jeff](https://forum.cmascenter.org/u/willison.jeff)\
**Post date:** [September 20, 2022, 1:20pm UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584/4 "2022-09-20T13:20:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rrezaei83](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rrezaei83](https://forum.cmascenter.org/u/rrezaei83)\
**Post date:** [September 20, 2022, 2:16pm UTC](https://forum.cmascenter.org/t/megan-txt2ioapi-execution-error-error-abort-in-subroutine-cnvt-efs/3584/5 "2022-09-20T14:16:13Z")

</div>

Thank you, the problem is solved.
