# Missing sample prepmegan4cmaq.ef.inp in MEGANV3.2 preprocessor

**URL:** <https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323>\
**Category:** MEGAN\
**Created:** [August 25, 2023, 1:47am UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323 "2023-08-25T01:47:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wry2233](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/wry2233/32/3458_2.png) [@wry2233](https://forum.cmascenter.org/u/wry2233)\
**Post date:** [August 25, 2023, 1:47am UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/1 "2023-08-25T01:47:44Z")

</div>

Hi,  
I want to run MEGANV3.2 preprocessor to make “.csv” files for running MEGAN txt2ioapi. The sample prepmegan4cmaq.lai/growthform/ecotype/cantype.inp are under MEGAN32\_Prep\_Code\_Jan\_2022. However, prepmegan4cmaq.ef.inp couldn’t be found. Can someone provide this file?  
Thanks,  
Runyu Wang

---

<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:** [August 25, 2023, 3:12am UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/2 "2023-08-25T03:12:45Z")

</div>

Hi Runyu,

Are you trying to create the emission factor (EF) csv file? That’s done with a different tool that’s python based. Look for the Emission Factor Processor section on this page: [UCI BAI - MEGAN32](https://bai.ess.uci.edu/megan/data-and-code/megan32)

You can contact me at [willison.jeff@epa.gov](mailto:willison.jeff@epa.gov) for further assistance with MEGAN 3.2.

---

<div class="post-metadata">

**Author:** ![wry2233](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/wry2233/32/3458_2.png) [@wry2233](https://forum.cmascenter.org/u/wry2233)\
**Post date:** [August 25, 2023, 7:01am UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/3 "2023-08-25T07:01:44Z")

</div>

Thanks Willison, I have successfully run MEGAN V32 EFP and produced OutputGridEF.csv. Is it correct to change only the _scen\_name_ in the MEGAN\_EFP.py script and leave the rest settings as default?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/a/ae1e1793db39f36c6bf67c422e64b4924663a870.png)

---

<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:** [August 25, 2023, 1:05pm UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/4 "2023-08-25T13:05:07Z")

</div>

Great! I don’t think it requires any additional configuration. It just needs to point to the grid\_ecotype and grid\_growth\_form csv files for your domain (scen\_name).

---

<div class="post-metadata">

**Author:** ![wry2233](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/wry2233/32/3458_2.png) [@wry2233](https://forum.cmascenter.org/u/wry2233)\
**Post date:** [September 1, 2023, 1:28am UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/5 "2023-09-01T01:28:57Z")

</div>

Hi jeff,

I have run MEGANV32 txt2ioapi module to output the EFMAP, LAI and LDF.ncf files but no CT3.nc file under specific output directory were acquired. I found the final CANTYPFILE were under _MEGANV32/work/_ . Here’s my run.txt2ioapi.v32.csh and log file. Thanks for your kind attention to fix this error.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/1716f636d1b27c58032f06eef2716522e7cbf6b0.png)  
[log.run.txt2ioapi.d03.txt](https://forum.cmascenter.org/uploads/short-url/zRBlcmskg4S29r5IQ3xDdZQjqjS.txt) (16.6 KB)  
[run.txt2ioapi.v32.wry.csh](https://forum.cmascenter.org/uploads/short-url/b8cvkDQBADlObIRhogrwOzKxlx1.csh) (2.8 KB)

Best regards,

Runyu Wang

---

<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 1, 2023, 1:26pm UTC](https://forum.cmascenter.org/t/missing-sample-prepmegan4cmaq-ef-inp-in-meganv3-2-preprocessor/4323/6 "2023-09-01T13:26:37Z")

</div>

It’s an issue with the run script they distribute. Try setting:

> setenv CANTYP MGNINP/{APPL}/CT3\_${GDNAM3D}.ncf

to

> setenv CANTYPFILE MGNINP/{APPL}/CT3\_${GDNAM3D}.ncf
