# MCIP Error encontered

**URL:** <https://forum.cmascenter.org/t/mcip-error-encontered/5038>\
**Category:** MCIP\
**Created:** [June 27, 2024, 10:46am UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038 "2024-06-27T10:46:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 27, 2024, 10:46am UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/1 "2024-06-27T10:46:14Z")

</div>

Dear @tlspero @cgnolte @lizadams @peng

I got the error below while running MCIPv4.4 with output from WRFv4.2:

**2022-04-28 2022-04-29**  
**1 35 28 1**

\*\*\*\*\* SUBROUTINE: GETVERSION\*\*  
\*\*\*\*\* MM5v2-FORMATTED DATA ARE NO LONGER SUPPORTED\*\*  
\*\*\*\*\* - CONSIDER CONVERTING DATA SET\*\*  
\*\*\*\*\* TO MM5v3 FORMAT USING UTILITY CODE\*\*

**—**

**`**  ***** ERROR ABORT in subroutine GETVERSION **** ABNORMAL TERMINATION IN GETVERSION **** Date and time 0:00:00 April 28, 2022 (2022118:000000) **** `**

Error running mcip

MCIP4.4 accompanied CMAQv5.2, the one I want to use. Kindly note that the MCIP4.4 runs well with WRF4.2 outputs on another server of ours. I just don’t know why encountering the error above on our new server. I need solution to it, please.  
I will really appreciate your suggestions and help in fixing the above error.

Thanks and best regards

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 27, 2024, 1:02pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/2 "2024-06-27T13:02:43Z")

</div>

As suggested by @cjcoats, I used the recent version of MCIPV5.4 but still got the error below:

==============================================================================

```
              US EPA COMMUNITY MULTISCALE AIR QUALITY MODEL
                METEOROLOGY-CHEMISTRY INTERFACE PROCESSOR

                       MCIP V5.4 FROZEN 07/12/2022

```

==============================================================================

* * *

\*\*\* SUBROUTINE: SETUP  
\*\*\* ERROR OPENING WRF NETCDF FILE  
\*\*\* FILE = /p1g/dust-department/idsulaymon/MENA/may2022/wrf\_output/wrfout\_d02\_2022-04-28\_00:00:00  
\*\*\* NCF: NetCDF: Unknown file format

* * *

```
 *** ERROR ABORT in subroutine SETUP
 ABNORMAL TERMINATION IN SETUP
 Date and time 0:00:00 April 28, 2022 (2022118:000000)

```

Error running mcip

Kindly help in proffering solution to it.

Thanks

---

<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:** [June 27, 2024, 1:13pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/3 "2024-06-27T13:13:04Z")

</div>

The fact that are able to read the file on one system suggests to me that it is either something wrong with your NetCDF on the new system or that the file has become corrupted. NetCDF files ought to be platform-independent.  
Are you able to `ncdump -h` this file to view its header?

Also, I will note that this version of WRF is from April 2020, several years after the versions of MCIP and CMAQ you are using. Beginning I think with WRF version 4.0, the default vertical coordinate changed. The older version of MCIP does not understand and properly handle this vertical coordinate. I do not know how much of an impact this would have on layer 1 pollutant concentrations. See the release notes in CMAQ v5.3.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 27, 2024, 2:07pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/4 "2024-06-27T14:07:43Z")

</div>

Thanks for your response.

I could view the header.  
I don’t think it has to do with the versions. Besides, I have used MCIPv5.4, the most recent version but still got errors.

---

<div class="post-metadata">

**Author:** ![tlspero](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tlspero](https://forum.cmascenter.org/u/tlspero)\
**Post date:** [June 27, 2024, 7:44pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/5 "2024-06-27T19:44:25Z")

</div>

Hi @Catalyst2682!

Did you do anything to post-process your WRF output files after you ran WRF? That is, is the wrfout file that you are providing to MCIP the exact same file that was generated by WRF?

If you are using the WRF output directly, then please post the list of the global attributes that you see in the WRF header from your “ncdump -h ” command.

–Tanya

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 30, 2024, 7:04am UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/6 "2024-06-30T07:04:16Z")

</div>

Hello @tlspero,

I am sorry for responding lately.

No, I didn’t do anything to the WRF output and I am using it directly. Below is the list of the global attributes in the WRF header:

// global attributes:  
:TITLE = " OUTPUT FROM WRF V4.2.1 MODEL" ;  
:START\_DATE = “2022-04-28\_00:00:00” ;  
:SIMULATION\_START\_DATE = “2022-04-28\_00:00:00” ;  
:WEST-EAST\_GRID\_DIMENSION = 241 ;  
:SOUTH-NORTH\_GRID\_DIMENSION = 271 ;  
:BOTTOM-TOP\_GRID\_DIMENSION = 44 ;  
:DX = 12000.f ;  
:DY = 12000.f ;  
:AERCU\_OPT = 0 ;  
:AERCU\_FCT = 1.f ;  
:IDEAL\_CASE = 0 ;  
:DIFF\_6TH\_SLOPEOPT = 0 ;  
:AUTO\_LEVELS\_OPT = 2 ;  
:DIFF\_6TH\_THRESH = 0.1f ;  
:DZBOT = 50.f ;  
:DZSTRETCH\_S = 1.3f ;  
:DZSTRETCH\_U = 1.1f ;  
:SKEBS\_ON = 0 ;  
:SPEC\_BDY\_FINAL\_MU = 1 ;  
:USE\_Q\_DIABATIC = 0 ;  
:GRIDTYPE = “C” ;  
:DIFF\_OPT = 1 ;  
:KM\_OPT = 4 ;  
:DAMP\_OPT = 0 ;  
:DAMPCOEF = 0.2f ;  
:KHDIF = 0.f ;  
:KVDIF = 0.f ;  
:MP\_PHYSICS = 8 ;  
:RA\_LW\_PHYSICS = 4 ;  
:RA\_SW\_PHYSICS = 4 ;  
:SF\_SFCLAY\_PHYSICS = 1 ;  
:SF\_SURFACE\_PHYSICS = 2 ;  
:BL\_PBL\_PHYSICS = 1 ;  
:CU\_PHYSICS = 3 ;  
:SF\_LAKE\_PHYSICS = 0 ;  
:SURFACE\_INPUT\_SOURCE = 1 ;  
:SST\_UPDATE = 0 ;  
:GRID\_FDDA = 1 ;  
:GFDDA\_INTERVAL\_M = 360 ;  
:GFDDA\_END\_H = 816 ;  
:GRID\_SFDDA = 0 ;  
:SGFDDA\_INTERVAL\_M = 0 ;  
:SGFDDA\_END\_H = 0 ;  
:HYPSOMETRIC\_OPT = 2 ;  
:USE\_THETA\_M = 1 ;  
:GWD\_OPT = 0 ;  
:SF\_URBAN\_PHYSICS = 0 ;  
:SF\_SURFACE\_MOSAIC = 0 ;  
:SF\_OCEAN\_PHYSICS = 0 ;  
:SHCU\_PHYSICS = 0 ;  
:MFSHCONV = 0 ;  
:FEEDBACK = 1 ;  
:SMOOTH\_OPTION = 0 ;  
:SWRAD\_SCAT = 1.f ;  
:W\_DAMPING = 0 ;  
:DT = 20.f ;  
:RADT = 30.f ;  
:BLDT = 0.f ;  
:CUDT = 5.f ;  
:AER\_OPT = 0 ;  
:SWINT\_OPT = 0 ;  
:AER\_TYPE = 1 ;  
:AER\_AOD550\_OPT = 1 ;  
:AER\_ANGEXP\_OPT = 1 ;  
:AER\_SSA\_OPT = 1 ;  
:AER\_ASY\_OPT = 1 ;  
:AER\_AOD550\_VAL = 0.12f ;  
:AER\_ANGEXP\_VAL = 1.3f ;  
:AER\_SSA\_VAL = 0.85f ;  
:AER\_ASY\_VAL = 0.9f ;  
:MOIST\_ADV\_OPT = 1 ;  
:SCALAR\_ADV\_OPT = 1 ;  
:TKE\_ADV\_OPT = 1 ;  
:DIFF\_6TH\_OPT = 0 ;  
:DIFF\_6TH\_FACTOR = 0.12f ;  
:FGDT = 0.f ;  
:GUV = 0.0003f ;  
:GT = 0.0003f ;  
:GQ = 0.0001f ;  
:IF\_RAMPING = 0 ;  
:DTRAMP\_MIN = 60.f ;  
:OBS\_NUDGE\_OPT = 0 ;  
:BUCKET\_MM = -1.f ;  
:BUCKET\_J = -1.f ;  
:PREC\_ACC\_DT = 0.f ;  
:ISFTCFLX = 0 ;  
:ISHALLOW = 0 ;  
:ISFFLX = 1 ;  
:ICLOUD = 1 ;  
:ICLOUD\_CU = 0 ;  
:TRACER\_PBLMIX = 1 ;  
:SCALAR\_PBLMIX = 0 ;  
:YSU\_TOPDOWN\_PBLMIX = 0 ;  
:GRAV\_SETTLING = 0 ;  
:DFI\_OPT = 0 ;  
:NTASKS\_X = 4 ;  
:NTASKS\_Y = 6 ;  
:NTASKS\_TOTAL = 24 ;  
:SIMULATION\_INITIALIZATION\_TYPE = “REAL-DATA CASE” ;  
:WEST-EAST\_PATCH\_START\_UNSTAG = 1 ;  
:WEST-EAST\_PATCH\_END\_UNSTAG = 240 ;  
:WEST-EAST\_PATCH\_START\_STAG = 1 ;  
:WEST-EAST\_PATCH\_END\_STAG = 241 ;  
:SOUTH-NORTH\_PATCH\_START\_UNSTAG = 1 ;  
:SOUTH-NORTH\_PATCH\_END\_UNSTAG = 270 ;  
:SOUTH-NORTH\_PATCH\_START\_STAG = 1 ;  
:SOUTH-NORTH\_PATCH\_END\_STAG = 271 ;  
:BOTTOM-TOP\_PATCH\_START\_UNSTAG = 1 ;  
:BOTTOM-TOP\_PATCH\_END\_UNSTAG = 43 ;  
:BOTTOM-TOP\_PATCH\_START\_STAG = 1 ;  
:BOTTOM-TOP\_PATCH\_END\_STAG = 44 ;  
:GRID\_ID = 2 ;  
:PARENT\_ID = 1 ;  
:I\_PARENT\_START = 39 ;  
:J\_PARENT\_START = 55 ;  
:PARENT\_GRID\_RATIO = 3 ;  
:CEN\_LAT = 23.96781f ;  
:CEN\_LON = 46.43536f ;  
:TRUELAT1 = 0.f ;  
:TRUELAT2 = 40.f ;  
:MOAD\_CEN\_LAT = 25.00001f ;  
:STAND\_LON = 47.f ;  
:POLE\_LAT = 90.f ;  
:POLE\_LON = 0.f ;  
:GMT = 0.f ;  
:JULYR = 2022 ;  
:JULDAY = 118 ;  
:MAP\_PROJ = 1 ;  
:MAP\_PROJ\_CHAR = “Lambert Conformal” ;  
:MMINLU = “MODIFIED\_IGBP\_MODIS\_NOAH” ;  
:NUM\_LAND\_CAT = 20 ;  
:ISWATER = 17 ;  
:ISLAKE = -1 ;  
:ISICE = 15 ;  
:ISURBAN = 13 ;  
:ISOILWATER = 14 ;  
:HYBRID\_OPT = 2 ;  
:ETAC = 0.2f ;

Thanks in anticipation as you help in fixing the error.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 30, 2024, 1:19pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/7 "2024-06-30T13:19:25Z")

</div>

@cgnolte @tlspero

I recently got this error:

/g/home/models/CMAQv-5.2/PREP/mcip\_new/src/mcip.exe: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory  
Error running mcip

The libnetcdff.so.5 is in the environmental path of netcdf but I don’t know why getting such error again.

---

<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:** [June 30, 2024, 3:18pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/8 "2024-06-30T15:18:43Z")

</div>

You need to set the `LD_LIBRARY_PATH` environment variable to point to the directory where libnetcdff.so.5 is located. Is it?

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 30, 2024, 4:43pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/9 "2024-06-30T16:43:47Z")

</div>

Yes, it is in the bashrc file.  
Or do I need to also set it on my working environment before running run\_mcip.csh script?

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [July 1, 2024, 6:54am UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/10 "2024-07-01T06:54:15Z")

</div>

I have fixed this in MCIP4.4 and mcip.exe built successfully. However, when I attempted to run the code, I got GETVERSION error as shown below:

* * *

\*\*\* SUBROUTINE: GETVERSION  
\*\*\* MM5v2-FORMATTED DATA ARE NO LONGER SUPPORTED  
\*\*\* - CONSIDER CONVERTING DATA SET  
\*\*\* TO MM5v3 FORMAT USING UTILITY CODE

* * *

```
 *** ERROR ABORT in subroutine GETVERSION
 ABNORMAL TERMINATION IN GETVERSION
 Date and time 0:00:00 April 28, 2022 (2022118:000000)

```

Error running mcip

In another instance, I built MCIP5.1 version but also got an error as shown below:

**- SUBROUTINE SETUP\_WRFEM - READING WRF HEADER**  
\*\* WRF GRID DIMENSIONS (X,Y,Z) 241 271 43\*\*

* * *

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

* * *

\*\* \*\*\* ERROR ABORT in subroutine SETUP\_WRFEM\*\*  
\*\* ABNORMAL TERMINATION IN SETUP\_WRFEM\*\*  
\*\* Date and time 0:00:00 April 28, 2022 (2022118:000000)\*\*

Error running mcip

Thanks in anticipation in solving these problems.

---

<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:** [July 1, 2024, 12:56pm UTC](https://forum.cmascenter.org/t/mcip-error-encontered/5038/11 "2024-07-01T12:56:22Z")

</div>

I recommend creating a private module file and loading it prior to running mcip.

Instructions are here:  
[https://researchcomputing.princeton.edu/support/knowledge-base/custom-modules](https://researchcomputing.princeton.edu/support/knowledge-base/custom-modules)

> **[Creating and Using Private Modules - QMUL ITS Research Blog](https://blog.hpc.qmul.ac.uk/private-modules/)**
>
> brought to you by the ITS Research team at QMUL
