# Running MEGANv3.1 preprocessor (prepmegan4cmaq.grwform.x)

**URL:** <https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455>\
**Category:** MEGAN\
**Created:** [June 28, 2021, 2:26pm UTC](https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455 "2021-06-28T14:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cicy996](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cicy996/32/1261_2.png) [@cicy996](https://forum.cmascenter.org/u/cicy996)\
**Post date:** [June 28, 2021, 2:26pm UTC](https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455/1 "2021-06-28T14:26:26Z")

</div>

Dear all,

Here is a matter about MEGANv3.1 preprocessor really puzzled me.  
I am trying to run ./prepmegan4cmaq.grwform.x \< prepmegan4cmaq.27km.inp,  
Here is error info.

> convert\_emissions: failed to read namelist; error = -1  
> STOP bio\_emiss abort

Here is the prepmegan4cmaq.27km.inp.

> &control  
> start\_lai\_mnth = 7,  
> end\_lai\_mnth = 7,  
> wrffile = ‘/disk/r071/cliucv/megan\_test/WRF\_data/2020070112/wrfout\_d01\_2020-07-01\_12\_00\_00’,  
> megan\_dir = ‘/disk/r071/cliucv/megan\_test/MEGAN\_data’,  
> out\_dir = ‘/disk/r071/cliucv/megan\_test/MEGAN\_Prep\_Output’,  
> /  
> &growthform  
> treefilename = ‘GF3aTree.nc’  
> treevarname = ‘m20tree’  
> treefillvalue = ‘-128’  
> shrubfilename = ‘GF3aShrub.nc’  
> shrubvarname = ‘m204shrub’  
> treefillvalue = ‘-128’  
> grassfilename = ‘GF3aGrass.nc’  
> grassvarname = ‘m202grass’  
> treefillvalue = ‘-128’  
> cropfilename = ‘GF3aCrop.nc’  
> cropvarname = ‘m20crop’  
> treefillvalue = ‘-128’  
> /  
> &windowdefs  
> x0 = 52,  
> y0 = 22,  
> ncolsin = 182,  
> nrowsin = 138,

I am sure that these growthform files are under the megan\_dir directory. The wrfout file is under the directory and includes one hour information on July 1st, 2020.

Thanks,  
Chang

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [June 28, 2021, 3:01pm UTC](https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455/2 "2021-06-28T15:01:25Z")

</div>

```auto
> convert_emissions: failed to read namelist; error = -1
> STOP bio_emiss abort

```

This means that there is a formatting error somewhere in that namelist _prepmegan4cmaq.27km.inp_. Unfortunately, that `error = -1` is not helpful. I suggest that you examine the namelist very carefully for commas, quotes, numbers of items in lists, and all that sort of thing.

Generally, it would be helpful to know what compiler was used to generate the executable: the error-numbers are compiler specific and sometimes difficult to interpret (particularly for _gfortran_, for which interpreting error numbers is an almost-impossible “read the compiler source” since _gfortran_ errors are not properly documented.)  
You might get better information if you re-compiled the executable using a compiler that generates better diagnostics – Intel _ifort_ and Solaris _sunf95_ come to mind in that regard…

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [January 9, 2024, 3:30pm UTC](https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455/5 "2024-01-09T15:30:41Z")

</div>



---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [January 9, 2024, 6:23pm UTC](https://forum.cmascenter.org/t/running-meganv3-1-preprocessor-prepmegan4cmaq-grwform-x/2455/6 "2024-01-09T18:23:40Z")

</div>

Hi SoIL,

```
Are you still having an issue with your code? Please let me know before I jump in. Thanks.

```

Cheers,  
David
