# CMAQ5.4 megan inline all species except NO are zero

**URL:** <https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114>\
**Category:** CMAQ\
**Created:** [July 30, 2024, 7:58am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114 "2024-07-30T07:58:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sunshine](https://forum.cmascenter.org/u/Sunshine)\
**Post date:** [July 30, 2024, 7:58am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/1 "2024-07-30T07:58:08Z")

</div>

In the MIOG file that diagnose inline megan emission, the values of all species except NO are zero. setenv B3GTS\_DIAG Y

---

<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:** [July 30, 2024, 3:05pm UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/2 "2024-07-30T15:05:50Z")

</div>

> [@Sunshine](#):
>
> B3GTS\_DIAG

This file is for BEIS mass diagnostics. Try using DESID to output MEGAN emissions.

---

<div class="post-metadata">

**Author:** ![Sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sunshine](https://forum.cmascenter.org/u/Sunshine)\
**Post date:** [July 31, 2024, 1:08am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/3 "2024-07-31T01:08:16Z")

</div>

I have add the configuration in the CMAQ\_Control\_DESID.nml. But the outcome was still zero except NO.

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

---

<div class="post-metadata">

**Author:** ![foley.kristen](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@foley.kristen](https://forum.cmascenter.org/u/foley.kristen)\
**Post date:** [July 31, 2024, 1:20am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/4 "2024-07-31T01:20:53Z")

</div>

What is the name of the output file(s) where you are seeing the zero values? As Jeff pointed out the [CCTM\_B3GTS](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/CMAQ_UG_ch07_model_outputs.md#b3gts) file is a BEIS diagnostic file and does not contain MEGAN diagnostics.

If you could please post your entire run script that may help us diagnose the issue you are having. Thank you!

---

<div class="post-metadata">

**Author:** ![Sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sunshine](https://forum.cmascenter.org/u/Sunshine)\
**Post date:** [July 31, 2024, 2:08am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/5 "2024-07-31T02:08:52Z")

</div>

In the output file CCTM\_DESID1\_MIOG\_20200701.nc. Here is my runn script. Please help me point out the issue. Thank you very much!

[run.cctm.v54.csh](https://forum.cmascenter.org/uploads/short-url/n3nqLQQ5O4lX7NXGwUY3TFRuH7V.csh) (26.6 KB)

---

<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:** [July 31, 2024, 1:06pm UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/6 "2024-07-31T13:06:53Z")

</div>

That run script looks reasonable. Can you check that MEGAN\_EFS file has values for the emission factors?

MEGAN is just (emission factor \* activity) for everything except soil NO, so my first suspicion is that EFS file.

---

<div class="post-metadata">

**Author:** ![Sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sunshine](https://forum.cmascenter.org/u/Sunshine)\
**Post date:** [July 31, 2024, 2:33pm UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/7 "2024-07-31T14:33:09Z")

</div>

Thank you very much. I found the issue. The problem related to LAIV calculation process. My LAIV data is monthly. However, in the prepmegan4cmaq\_lai.f90, LAIV data is per 8-days. I have uncommented the related code in th repmegan4cmaq\_lai.f90., and fixed it. But the laiv46 in the gennerated LAIV file is still zero.

---

<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:** [July 31, 2024, 2:47pm UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/8 "2024-07-31T14:47:55Z")

</div>

Thanks for sharing this. I know that some versions of the preprocessor are brittle when it comes to changing the LAI inputs, and CMAQ expects MEGAN LAI to be 8-daily. You could try setting:

```
     setenv USE_MEGAN_LAI N

```

This will make MEGAN use the LAIv from your MCIP files. Then it would be consistent with LAIv that’s used for the rest of CMAQ, and for bulk totals I haven’t noticed any concerning sensitivity to this.

---

<div class="post-metadata">

**Author:** ![Sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sunshine](https://forum.cmascenter.org/u/Sunshine)\
**Post date:** [August 1, 2024, 2:08am UTC](https://forum.cmascenter.org/t/cmaq5-4-megan-inline-all-species-except-no-are-zero/5114/9 "2024-08-01T02:08:17Z")

</div>

Thank you for your reply. I have tested the setting and the outcome is resonable.
