# Process area/point-source ag NH3 emission for CMAQ

**URL:** https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481
**Category:** Emissions Inventory
**Created:** [January 15, 2019, 9:01pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481 "2019-01-15T21:01:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![zyj.jess](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zyj.jess](https://forum.cmascenter.org/u/zyj.jess)
#### Post date: [January 15, 2019, 9:01pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/1 "2019-01-15T21:01:43Z")

</div>

Hello,all;

At first, I want to lay out what I want to do with the SMOKE output and CMAQ emission input. I am trying to run CMAQ\_12US1 for a single day of 20140101 with my own ammonia emission inventory for NC. This emission inventory is ammonia emission from animal farms in North Carolina. The challenge here is that my ammonia emission is a point source. I need to cut off the ammonia part in NC from non-point ag livestock emission. And also, I need to generate new point source inputs which will be inln and stack group for ag\_NH3\_NC.

I have a pre-merged emission input file for nonpt sources named “emis\_mole\_all\_20140101\_12US1\_cmaq\_cb6\_2014fb\_cdc\_cb6cmaq\_14j.ncf”. It is a gridded single day input. I want to use ncbo in netcdf nco tools to subtract ag\_NH3\_NC from this file. How to generate the similar gridded CMAQ input or SMOKE output from NEI modeling platform?

I have some outputs from running NEI model platform as shown below.  
aday\_ag\_livestock\_onlyNC\_2014fa\_nata\_cb6cmaq\_14j.ncf  
agmat\_ag\_livestock\_onlyNC\_12US2\_2014fa\_nata\_cb6cmaq\_14j.ncf  
area\_ag\_livestock\_onlyNC.ncf  
asmat\_l\_ag\_livestock\_onlyNC\_cmaq\_cb6cmaq\_2014fa\_nata\_cb6cmaq\_14j.ncf  
asmat\_s\_ag\_livestock\_onlyNC\_cmaq\_cb6cmaq\_2014fa\_nata\_cb6cmaq\_14j.ncf  
atmp\_ag\_livestock\_onlyNC\_2014fa\_nata\_cb6cmaq\_14j\_2014001.ncf

However, they are not gridded. It seems that they need to be merged at some point to be compatible with “emis\_mole\_all\_20140101\_12US1\_cmaq\_cb6\_2014fb\_cdc\_cb6cmaq\_14j.ncf”.

Do you have any suggestion? If you have any other thoughts on what I can do, please let me know.

Appreciate, CMAS community!

Best;  
Yijia Zhao

---

<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: [March 11, 2019, 4:11pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/2 "2019-03-11T16:11:40Z")

</div>

Hi Yijia,

Have you made any progress with this issue, perhaps @bbaek has been helping you offline on this?

Thanks, Liz

---

<div class="post-metadata">

### Author: ![zyj.jess](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zyj.jess](https://forum.cmascenter.org/u/zyj.jess)
#### Post date: [March 11, 2019, 6:18pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/3 "2019-03-11T18:18:23Z")

</div>

Hi,Liz;

Running CMAQ with my pt\_livestock ammonia emission inventory file is the ultimate goal. Now I am still trying to get the CMAQ run with NEI input run. Running with NEI is not only for testing the program, it will also give me a reference output which can be used to compare later on.

The netcdf dimension issue did not appear again but I have to debug some small issues potential associated with input files. Once the NEI input is running through, I will move on to use my ammonia emission inventory which will be more on NEI modeling platform or SMOKE.

Appreciate!

Yijia

---

<div class="post-metadata">

### Author: ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)
#### Post date: [March 11, 2019, 8:12pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/4 "2019-03-11T20:12:19Z")

</div>

> I want to use ncbo in netcdf nco tools to subtract ag\_NH3\_NC from this file.

No, you do not want to do this. NCO, cdo, and similar tools that operate directly on netCDF files without using the IOAPI interface result in outputs that are no longer proper IOAPI files, so that subsequent attempts to use the interface do not work.

Instead, use IOAPI-conformant tools: either the [combine](https://github.com/USEPA/CMAQ/tree/5.2/POST/combine) program or the IOAPI utility program [m3combo](https://www.cmascenter.org/ioapi/documentation/all_versions/html/M3COMBO.html) should work for this purpose.

---

<div class="post-metadata">

### Author: ![zyj.jess](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zyj.jess](https://forum.cmascenter.org/u/zyj.jess)
#### Post date: [April 17, 2019, 7:02pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/5 "2019-04-17T19:02:07Z")

</div>

Thank you for your advice! I finally made to this step. I will look into m3combo.

Yijia

---

<div class="post-metadata">

### Author: ![zyj.jess](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zyj.jess](https://forum.cmascenter.org/u/zyj.jess)
#### Post date: [April 17, 2019, 8:46pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/6 "2019-04-17T20:46:32Z")

</div>

Hi, cgnolte;

I am confusing myself by doing too much operations on the CMAQ input.

My current goal is to cut off the only variable of NH3 in North Carolina specifically for the sector “ag”.

The file I want to make operation on is called “emis\_mole\_all\_20140101\_12US1\_cmaq\_cb6\_2014fb\_cdc\_cb6cmaq\_14j.ncf”. In this file, all sectors’ premerged files are merged together.

And I have a pre-merged file named “emis\_mole\_ag\_onlyNC\_20140101\_12US1\_cmaq\_cb6cmaq\_2014fa\_nata\_cb6cmaq\_14j.ncf”. This file has only NH3 and fert-NH3 from sector “ag” in NC.

What I did are:

1. Using m3xtract to extract only NH3 variable (all layers) from “emis\_mole\_all\_20140101\_12US1\_cmaq\_cb6\_2014fb\_cdc\_cb6cmaq\_14j.ncf”

2.Using m3tract to extract only NH3 variable (all layers) from “emis\_mole\_ag\_onlyNC\_20140101\_12US1\_cmaq\_cb6cmaq\_2014fa\_nata\_cb6cmaq\_14j.ncf”

1. Using ncbo to do the substraction on NH3 from the previous two steps and getting a file “onlyNH3\_woNC.ncf”. This file has only one variable which is NH3 and it is entire US except for NC.

I am thinking if m3tools has one for re-writing variable. If so, I can re-write the variable NH3 to drop off the part of NC.

Please give me some thoughts you have.

Thank you very much!

Yijia

---

<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: [April 18, 2019, 4:59pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/7 "2019-04-18T16:59:57Z")

</div>

Use _m3diff_: see  
[https://www.cmascenter.org/ioapi/documentation/all\_versions/html/M3DIFF.html](https://www.cmascenter.org/ioapi/documentation/all_versions/html/M3DIFF.html)

---

<div class="post-metadata">

### Author: ![zyj.jess](https://avatars.discourse-cdn.com/v4/letter/z/8dc957/32.png) [@zyj.jess](https://forum.cmascenter.org/u/zyj.jess)
#### Post date: [April 18, 2019, 7:22pm UTC](https://forum.cmascenter.org/t/process-area-point-source-ag-nh3-emission-for-cmaq/481/8 "2019-04-18T19:22:42Z")

</div>

I used m3diff to cut down the NH3 variable for NC.

Thank you!!!
