# Error in running cctm with CMAQv5.2

**URL:** <https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406>\
**Category:** CMAQ\
**Tags:** cmaq\
**Created:** [December 4, 2024, 6:27am UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406 "2024-12-04T06:27:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunchanglei](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/sunchanglei/32/4358_2.png) [@Sunchanglei](https://forum.cmascenter.org/u/Sunchanglei)\
**Post date:** [December 4, 2024, 6:27am UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/1 "2024-12-04T06:27:27Z")

</div>

Hello teachers, I encountered an error when running the CMAQ-CCTM module. The following picture shows the error reported in LOG. Attached is my entire LOG file and cctm script.

The CMAQ version used is 5.2. I would appreciate it if you could help me.

 ![微信图片_20241204142248](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/1028cc31f6257e82ba93db2f0ff6447a903a9b0e.png)  
[run\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/lXp9Ecfm72UIKg9cVyxORgzGbnV.csh) (24.7 KB)  
[LOG.txt](https://forum.cmascenter.org/uploads/short-url/yvC6p3a7jqZngRjAjLBYWrLkdAp.txt) (48.1 KB)

---

<div class="post-metadata">

**Author:** ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.cmascenter.org/u/Ryan)\
**Post date:** [December 4, 2024, 8:15am UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/2 "2024-12-04T08:15:39Z")

</div>

File not available means that the out.nc file is not found under the following path:  
/disk1/scl/CMAQ/CMAQ-5.2/data/emis//disk1/scl/CMAQ/CMAQ-5.2/data/emis/

Please make sure that you have placed the emission file in the path with correct filename. Otherwise, CMAQ will not be able to read and open it.

---

<div class="post-metadata">

**Author:** ![Sunchanglei](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/sunchanglei/32/4358_2.png) [@Sunchanglei](https://forum.cmascenter.org/u/Sunchanglei)\
**Post date:** [December 4, 2024, 8:36am UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/3 "2024-12-04T08:36:20Z")

</div>

Thank you for your reply  
As you said, I checked run\_cctm.csh. The path of the emission source is set to look like the picture below, and I’m sure I have out.nc in my emis folder. As shown in the figure.

But I don’t know where this path came from, and I have no impression of setting the following repeated, wrong path.  
/disk1/scl/CMAQ/CMAQ-5.2/data/emis//disk1/scl/CMAQ/CMAQ-5.2/data/emis/

 ![微信图片_20241204162928](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/0/085af62f3d62f9d29d8ddba2d27bf74a62e12d37.png)  
 ![微信图片_20241204163237](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/a/af7357b793aadd4b8c984ef42e49c217f58ad7f8.png)

---

<div class="post-metadata">

**Author:** ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.cmascenter.org/u/Ryan)\
**Post date:** [December 4, 2024, 8:53am UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/4 "2024-12-04T08:53:59Z")

</div>

You lack the fundamental knowledge about the emission module in CMAQ. You set the file path for inline emission (which is generally for point sources). That’s the reason why CMAQ reports the error.

First of all, you need to check if you set $CTM\_PT3DEMIS == ‘N’.

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

If it is set to N, then you should put the file path and filename under the following screenshot:

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

If the option for CTM\_PT3DEMIS is not N, then CMAQ will read the following section (which you provide in the reply):

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

In summary, you should first check the option for CTM\_PT3DEMIS, then modify the emission section of run.cctm.csh accordingly. **In general, CTM\_PT3DEMIS should be set to ‘N’ when using CMAQ to simulate China since most Chinese users use MIX or MEIC emission inventory (there is no point source in MEIC and MIX).**

---

<div class="post-metadata">

**Author:** ![Sunchanglei](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/sunchanglei/32/4358_2.png) [@Sunchanglei](https://forum.cmascenter.org/u/Sunchanglei)\
**Post date:** [December 4, 2024, 12:14pm UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/5 "2024-12-04T12:14:31Z")

</div>

Thanks for your detailed guidance. According to your advice, now the program is running normally.

---

<div class="post-metadata">

**Author:** ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://forum.cmascenter.org/u/Ryan)\
**Post date:** [December 4, 2024, 6:52pm UTC](https://forum.cmascenter.org/t/error-in-running-cctm-with-cmaqv5-2/5406/6 "2024-12-04T18:52:56Z")

</div>

> [@Sunchanglei](#):
>
> now the program is running normally

Glad to hear it works now. I would recommend you carefully read through the CMAQ tutorial for the version that you are using to get familiar with the framework and settings.
