# No MEGAN mass emissions diagnostic file in CMAQ v5.4 similar to BEIS?

**URL:** <https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747>\
**Category:** CMAQ\
**Created:** [November 29, 2022, 8:29am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747 "2022-11-29T08:29:34Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![gc13141112](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/gc13141112/32/78_2.png) [@gc13141112](https://forum.cmascenter.org/u/gc13141112)\
**Post date:** [November 29, 2022, 8:29am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/1 "2022-11-29T08:29:34Z")

</div>

Hi there,  
I am using CMAQv5.4 with enabling MEGAN, and how to output the MEGAN mass emissions diagnostic files similar to enabling BEIS modules?  
Any recommendations for how to solve this or investigate further?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [November 29, 2022, 11:40am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/2 "2022-11-29T11:40:51Z")

</div>

Hi,

You can use the DESID diagnostic output framework described in section B.3.7.2 here: [CMAQ/CMAQ\_UG\_appendixB\_emissions\_control.md at main · USEPA/CMAQ · GitHub](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/Appendix/CMAQ_UG_appendixB_emissions_control.md)

For the Stream name, use ‘MIOG’ for MEGAN. For BEIS, use ‘BIOG’.

Best wishes,  
Ben Murphy

---

<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:** [November 29, 2022, 12:09pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/3 "2022-11-29T12:09:15Z")

</div>

Thanks, @Ben_Murphy for responding so quickly!

To add to this response, please note that the diagnostic emission output files generated through the DESID framework will be mole based rather than mass based (unless I am missing an option in DESID to control that), so if you want to compare MEGAN diagnostic mole-based emissions from the DESID1\_MIOG file to existing non-DESID B3GTS mass-based BEIS diagnostic emissions generated using the B3GTS\_DIAG flag, you’ll have to do some unit conversions using molecular weights, though for some lumped mechanism species there may be some issues with that. In that case, it’d be cleaner to also generate BEIS mole-based diagnostic emission files through DESID.

Here is an example of the modification to `CMAQ_Control_DESID.nml` needed to implement MEGAN diagnostic mole-based emission files through DESID, as documented in the link posted by @Ben_Murphy above:

```
> diff CMAQ_Control_DESID.nml CMAQ_Control_DESID_MEGAN.nml
> 188c188
> < Desid_N_Diag_Rules = 0 ! Exact Number of Diagnostic Rules Below
> ---
> > Desid_N_Diag_Rules = 1 ! Exact Number of Diagnostic Rules Below
> 196c196,200
> <
> ---
> >
> > Desid_Diag_Streams_Nml(1,:)= 'MIOG'
> > Desid_Diag_Fmt_Nml(1) = 'COLSUM' ! Options: 2D, 2DCOL, 3D
> > Desid_Diag_Spec_Nml(1,:) = 'ALL'
> >

```

---

<div class="post-metadata">

**Author:** ![gc13141112](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/gc13141112/32/78_2.png) [@gc13141112](https://forum.cmascenter.org/u/gc13141112)\
**Post date:** [November 30, 2022, 1:06am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/4 "2022-11-30T01:06:19Z")

</div>

Thx. Based on your suggestions, CCTM\_DESID1\_MIOG file can be created.

---

<div class="post-metadata">

**Author:** ![Haofan](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@Haofan](https://forum.cmascenter.org/u/Haofan)\
**Post date:** [December 2, 2022, 1:10pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/5 "2022-12-02T13:10:48Z")

</div>

Hi, @hogrefe.christian.

I still cannot create the CCTM\_DESID1\_MIOG files. And the CTM files show that the name of first variable is always mistaken code whether I choose `‘ALL’` or `‘ISOP’, 'TERP'`.

The figure shows that log when I set `Desid_Diag_Spec_Nml(1, :) = 'ALL'`.

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

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [December 2, 2022, 1:54pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/6 "2022-12-02T13:54:31Z")

</div>

Yikes. I’m sorry for this frustration. I’ve tried to reproduce this error using our Benchmark scenario and everything seems to be working ok. Can you post your version of the CMAQ\_Control\_DESID.nml file that is prescribing the diagnostic output?

---

<div class="post-metadata">

**Author:** ![Haofan](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@Haofan](https://forum.cmascenter.org/u/Haofan)\
**Post date:** [December 6, 2022, 7:58am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/7 "2022-12-06T07:58:19Z")

</div>

Thx, I have solved this problem by using another computer.

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [December 6, 2022, 1:07pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/8 "2022-12-06T13:07:05Z")

</div>

Hm, I’m not sure why the behavior would go away on a new system. Perhaps the reinstall/recompile step ironed out potential problems. If you end up looking further into this a figuring out system-to-system issues or differences, please report them if possible.

Thank you and happy coding!  
Ben

---

<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 5, 2023, 7:01am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/9 "2023-09-05T07:01:44Z")

</div>

Hi, Hogrefe  
I have run CMAQ5.4-MEGAN with saprc07tc\_ae6\_aq mechanism to produce CCTM\_DESID1\_MIOG files. However, I couldn’t output _Emission Rate of ISOPRENE from MIOG emissions_ no matter setting the _Desid\_Diag\_Spec\_Nml(1, ：) = ‘ALL’_  
or _Desid\_Diag\_Spec\_Nml(1,：) =‘NO’,‘ISOPRENE’,‘TERP’,‘PROPENE’,‘SESQ’,‘APIN’_. Here’s the variable list log file of CCTM\_DESID1\_MIOG files.  
[DESID\_ALL.txt](https://forum.cmascenter.org/uploads/short-url/gaB18M2t8QVM7jJr3POuQ60jTxv.txt) (16.2 KB)  
[DESID\_specific.txt](https://forum.cmascenter.org/uploads/short-url/mKnUkci6wDh7FJLwG5ljRbFu0o7.txt) (6.8 KB)

---

<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:** [September 5, 2023, 12:00pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/10 "2023-09-05T12:00:32Z")

</div>

Given that you’re getting output for some but not all species in the CCTM\_DESID1\_MIOG files even when specifying ‘ALL’, I’m wondering whether this points to some issue with how the MEGAN-internal emissions for the missing species (like isoprene) are mapped to saprc07tc\_ae6\_aq. I’ll reach out to some of my colleagues who know more about this.

---

<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 6, 2023, 9:15am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/12 "2023-09-06T09:15:45Z")

</div>

Thanks for your response. I’m looking forward to solve the issue.

---

<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 8, 2023, 8:07am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/13 "2023-09-08T08:07:57Z")

</div>

Hi Hogrefe,  
The issue might be attributed to settings in my CMAQ\_Control\_DESID\* file. I have commented out following line:  
!‘EVERYWHERE’, ‘ALL’ ,‘ISOPRENE’ ,‘ISOPRENE’ ,‘GAS’ ,1. ,‘UNIT’,‘a’,  
And I rewrote new rules to output ISOPRENE emission rate.  
‘EVERYWHERE’, ‘MIOG’ ,‘ISOPRENE’ ,‘ISOPRENE’ ,‘GAS’ ,1. ,‘UNIT’,‘a’,

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

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [September 8, 2023, 1:42pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/14 "2023-09-08T13:42:37Z")

</div>

This is certainly unexpected behavior. Would you mind sharing one of the CTM\_LOG files for each of the cases:  
(1) the run with the default DESID rules and diagnostic output set to ‘ALL’  
(2) the run with the default DESID rules and diagnostic output set to ‘NO’,‘ISOPRENE’,‘TERP’,‘PROPENE’,‘SESQ’,‘APIN’  
(3) the run with the DESID rule changed to specify MIOG for the ISOPRENE scaling?

Best wishes,  
Ben

---

<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 11, 2023, 9:14am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/15 "2023-09-11T09:14:53Z")

</div>

Hi Ben,  
Thanks for your kind reply. I think it might be caused by my carelessness. Here’s the emission checking information and the DESID file before and after modification:

- Before

> ```
> |> Checking for unused Emissions Variables: 
> ============================================
> GRIDDED_EMIS | Gridded Area Emissions File 1: 19 unused variables.
> ARO1            
> BC              
> CH4             
> CO2             
> ETHE            
> IPRD            
> ISOPRENE        
> N20             
> NONR            
> NOX             
> NROG            
> NVOL            
> OC              
> PHEN            
> PM2_5           
> PMFINE          
> PRD2            
> TRP1            
> VOC             
> 
> MIOG | Megan Biogenic Emissions: 19 unused variables.
> CH4             
> ISOPRENE        
> TERP            
> BENZ            
> ARO1            
> ARO2MN          
> PRD2            
> CCOOOH          
> IPRD            
> HCN             
> CH3BR           
> CH3CL           
> CH3I            
> TRS             
> N2O             
> HCHO_PRIMARY    
> CCHO_PRIMARY    
> OCS             
> PYRYACID        
> 
> SEASPRAY | Sea Spray Aerosol Emissions: 18 unused variables.
> PMFINE_CR_VI    
> PMFINE_NI       
> PMFINE_AS       
> PMFINE_BE       
> PMFINE_PHG      
> PMFINE_PB       
> PMFINE_CD       
> PMFINE_MN_HAPS  
> PMFINE_BR       
> PMCOARSE_CR_VI  
> PMCOARSE_NI     
> PMCOARSE_AS     
> PMCOARSE_BE     
> PMCOARSE_PHG    
> PMCOARSE_PB     
> PMCOARSE_CD     
> PMCOARSE_MN_HAPS
> PMCOARSE_BR     
> 
> NOTE: Some Emissions Variables are unused by your current
> emission control configuration. You may want to include these 
> emissions if they are relevant to your application.
> 
> ```

```
I commented out ‘ISOPRENE’ for ‘ALL' emission streams because there is ISOPRENE emission calculated by MEGAN V2.1 in my gridded emission files (varlist as bellow), thus no ISOPRENE emission information was output. Lately, I modified the rules to 

```

‘EVERYWHERE’, ‘MIOG’ ,‘ISOPRENE’ ,‘ISOPRENE’ ,‘GAS’ ,1. ,‘UNIT’,‘a’,  
and I got the ISOPRENE emission rate.  
[CMAQ\_Control\_DESID\_saprc07tc\_ae6\_aq\_megan.txt](https://forum.cmascenter.org/uploads/short-url/eKQuMmpgxr127hSH9BLddF0NbAO.txt) (15.5 KB)  
[emis\_vars.txt](https://forum.cmascenter.org/uploads/short-url/56INGEYirTyaQaZh0B1mAsB2Tlb.txt) (58.7 KB)

- After  
 ![1清单物种使用](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/f/f2c87ad412f1e50a0b5dd4c2b3d60c844a075a70.png)  
[CMAQ\_Control\_DESID\_saprc07tc\_ae6\_aq\_megan\_modified.txt](https://forum.cmascenter.org/uploads/short-url/rkdtkksEtcBIz1q8oh4i95lUBgb.txt) (16.1 KB)

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [September 11, 2023, 4:03pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/16 "2023-09-11T16:03:46Z")

</div>

Ah ok. I understand better now that you have Isoprene on your gridded file that you would like to ignore while also using Isoprene from MEGAN. So is everything lining up now with your expectations? Are there parts of the issue that are still unanswered or need to be addressed?

Best,  
Ben

---

<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 12, 2023, 2:48am UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/17 "2023-09-12T02:48:01Z")

</div>

Hi Ben，  
Yes, the problem has been completely resolved. Thank you again for your kind attention. ::

---

<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:** [September 12, 2023, 1:04pm UTC](https://forum.cmascenter.org/t/no-megan-mass-emissions-diagnostic-file-in-cmaq-v5-4-similar-to-beis/3747/18 "2023-09-12T13:04:06Z")

</div>


