# ERROR in running mcip

**URL:** <https://forum.cmascenter.org/t/error-in-running-mcip/5021>\
**Category:** MCIP\
**Created:** [June 21, 2024, 7:11am UTC](https://forum.cmascenter.org/t/error-in-running-mcip/5021 "2024-06-21T07:11:33Z")\
**Posts on this page:** 4\
**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:** [June 21, 2024, 7:11am UTC](https://forum.cmascenter.org/t/error-in-running-mcip/5021/1 "2024-06-21T07:11:33Z")

</div>

Hi All  
I encountered two errors while running the CMAQ/mcip section, as follows:

 ![微信截图_20240621103603](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/c/c3f79b9fd030fd4c4102be850d26ab4dac167b10.jpeg)  
 ![微信截图_20240621151059](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2e8373858e248fca4586cc0bf6a3cf9d88d5bcb0.jpeg)

Plese hellp me  
Thanks!  
[run\_mcip.csh](https://forum.cmascenter.org/uploads/short-url/nn66wgRrBPhIIX6ax9gDFNAt5oN.csh) (15.3 KB)

---

<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:** [June 21, 2024, 1:37pm UTC](https://forum.cmascenter.org/t/error-in-running-mcip/5021/2 "2024-06-21T13:37:51Z")

</div>

Here is the error message that you shared a screenshot of.

```auto
****************************
*** SUBROUTINE: STATFLDS
*** CANNOT COLLAPSE TO THINNER BOTTOM OR TOP LAYER THAN INPUT
***. BOTTOM CTM, MET LAYERS: 0.998000 0.993000
***. TOP CTM, MET LAYERS: 0.50000. 0.005775
*****************************

       *** ERROR ABORT in subroutine STATFLDS
       ABNORMAL TERMINATION IN STATFLDS
       Date and time 0:00:00 Jan. 1, 2018. (2018001:000000)

Error running mcip

```

Excerpt from the run\_mcip.csh that you shared:

```auto
#-----------------------------------------------------------------------
# Set CTM layers. Should be in descending order starting at 1 and
# ending with 0. There is currently a maximum of 100 layers allowed.
# To use all of the layers from the input meteorology without
# collapsing (or explicitly specifying), set CTMLAYS = -1.0.
#-----------------------------------------------------------------------

#set CTMLAYS = "-1.0"
 set CTMLAYS = "1.000, 0.998, 0.99, 0.985, 0.98, 0.97, 0.96, 0.95, 0.94, \
               0.93, 0.92, 0.91, 0.9, 0.88, 0.86, 0.83, 0.8, 0.77, 0.74, \
               0.71, 0.68, 0.64, 0.6, 0.56, 0.52, 0.48, 0.44, 0.4, 0.36, \
               0.32, 0.28,0.24, 0.2, 0.16, 0.12, 0.08, 0.05, 0.000"

```

I am not sure what version of MCIP you are using, but current versions do not support using different layers than what is available from the WRF model output.

Please try using this option instead.

```auto
set CTMLAYS = "-1.0"

```

In addition, please consider downloading the latest versions of CMAQ and MCIP.

> <https://github.com/USEPA/CMAQ/blob/main/PREP/mcip/README.md>

---

<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:** [June 22, 2024, 2:17am UTC](https://forum.cmascenter.org/t/error-in-running-mcip/5021/3 "2024-06-22T02:17:53Z")

</div>

Thanks for your reply！  
I am currently using CMAQv5.2. I used the MCIP module in CMAQv5.2 to process WRFOUT. I set CTMLAYS = “-1.0”, then run run\_mcip.csh again, and Unmatched as shown in the first figure appears. What is the cause of this problem? Please hellp me, thanks!

---

<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:** [June 22, 2024, 7:52pm UTC](https://forum.cmascenter.org/t/error-in-running-mcip/5021/4 "2024-06-22T19:52:17Z")

</div>

Please verify the contents of the log file. Prior to running mcip again, also delete any mcip output that was previously generated.
