# Environment variable settings about biogenic emissions in CMAQ

**URL:** <https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066>\
**Category:** CMAQ\
**Created:** [April 14, 2023, 12:15am UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066 "2023-04-14T00:15:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [April 14, 2023, 12:15am UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/1 "2023-04-14T00:15:10Z")

</div>

Hi,

Can someone help me to explain the following settings in details to run CMAQ with inline biogenic emissions (e.g. MEGAN3.2)?

USE\_MEGAN\_LAI | F (default)  
MGN\_ONLN\_DEP | F (default)  
BIOG\_SPRO | DEFAULT (default)  
B3GTS\_DIAG | F  
CTM\_MGEMDIAG | F (default)

---

<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:** [April 14, 2023, 3:06am UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/2 "2023-04-14T03:06:27Z")

</div>

The first option, USE\_MEGAN\_LAI is available if users would like to use their own LAIv input. This is currently configured to work with the 8-daily LAIv from the MEGAN preprocessor. If you don’t want to bother making this file then you can leave it set to False, in which case values from the MCIP files will be used.

MGN\_ONLN\_DEP is a hidden/experimental option for calculating the contribution from online deposition to the nitrogen reservoir in BDSNP. Enabling it will produce unreasonable soil NO emissions. This option will be improved in a future release.

The next two are for BEIS and not MEGAN. The last one is about marine gas emissions.

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [April 14, 2023, 11:06am UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/3 "2023-04-14T11:06:44Z")

</div>

In addition, you can also view a list of BEIS and MEGAN online biogenic emission configuration options along with a short description of each option in [Appendix A of the users guide](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/Appendix/CMAQ_UG_appendixA_model_options.md#online-biogenic-emissions-configuration).

Out of curiosity, did you see the MGN\_ONLN\_DEP option specified in any run script or by examining the code? As noted by @willison.jeff , this is not an option recommended for any applications with the current code. In my recollection, it was therefore not included in any of the example CCTM run scripts distributed in the CMAQ github repository, and as you noted its default value in the code is F.

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [April 14, 2023, 4:07pm UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/4 "2023-04-14T16:07:15Z")

</div>

Hi Jeff and Christian,

I wanted to express my gratitude for your response and explanation. I understand that using the option of MGN\_ONLN\_DEP is not recommended.

As per your comments above, if we set USE\_MEGAN\_LAI to False, the model will use values from the MCIP files. However, it’s important to note that MCIP only provides LAI and not LAIv, which is actually used in the calculation of biogenic VOC emissions. Therefore, we need to ensure that we have a reliable source for LAIv values if we choose to use MCIP for LAI.

We have developed the 8-daily LAIv for our nested model domains, and we would like to use our own LAIv input. Additionally, we believe that using the BDSNP algorithm for soil NO emissions will provide more reasonable results. We have all the necessary files for this module.

In light of this, I plan to set the following environment variables in my CMAQ run script:

“USE\_MEGAN\_LAI Y”

if ($CTM\_BIOGEMIS\_MG == ‘Y’) then  
setenv MEGAN\_LAI = /path-to-file/LAI.nc  
…

Could you kindly let me know if this is the correct approach?

Thank you very much for your time and assistance.

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [April 15, 2023, 10:42pm UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/5 "2023-04-15T22:42:26Z")

</div>

Hi Feng,

these settings look correct to me if you’d like to use your own LAI files, but I don’t have first hand experience with it.

---

<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:** [April 17, 2023, 3:36pm UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/6 "2023-04-17T15:36:29Z")

</div>

This looks right. Please let me know if you encounter any problems.

Thank you for raising the issue of MCIP files without LAIv. I think I need to add a check so that MCIP LAI gets converted to LAIv if using NOAH.

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [April 19, 2023, 3:59pm UTC](https://forum.cmascenter.org/t/environment-variable-settings-about-biogenic-emissions-in-cmaq/4066/7 "2023-04-19T15:59:18Z")

</div>

Hi Christian and Jeff,

Thank you both for confirming the settings for using our own LAIv files. I am happy to report that the updated settings have allowed the CMAQ to run successfully.
