# Error running mcip 5.4 with wrf 4.4.1

**URL:** <https://forum.cmascenter.org/t/error-running-mcip-5-4-with-wrf-4-4-1/3801>\
**Category:** MCIP\
**Created:** [December 26, 2022, 11:00am UTC](https://forum.cmascenter.org/t/error-running-mcip-5-4-with-wrf-4-4-1/3801 "2022-12-26T11:00:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weipeng\_1981](https://avatars.discourse-cdn.com/v4/letter/w/e0b2c6/32.png) [@weipeng\_1981](https://forum.cmascenter.org/u/weipeng_1981)\
**Post date:** [December 26, 2022, 11:00am UTC](https://forum.cmascenter.org/t/error-running-mcip-5-4-with-wrf-4-4-1/3801/1 "2022-12-26T11:00:54Z")

</div>

Hi guys, I got error when running mcip 5.4 :

\*\*\* SUBROUTINE: SETUP\_WRFEM  
\*\*\* ERROR RETRIEVING VARIABLE FROM WRF FILE  
\*\*\* VARIABLE = ZNW  
\*\*\* NCF: NetCDF: Index exceeds dimension bound

WRF version is 4.4.1 with no hybrid level.  
Tried to solve this problem for several days but I didn’t solve it.  
Thanks for any advice.

Wei

---

<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:** [January 3, 2023, 4:16pm UTC](https://forum.cmascenter.org/t/error-running-mcip-5-4-with-wrf-4-4-1/3801/2 "2023-01-03T16:16:17Z")

</div>

The error message indicates that you are attempting to read more vertical layers than exist for this variable. It is a 1-D array of length bottom\_top\_stag, which should correspond to the number of CMAQ layers + 1.  
If you still can’t figure out what is going wrong, post more information, including your log file and the WRF header file (from `ncdump -h wrfout_filename`).
