# Error in run.cctm in WRF-CMAQ

**URL:** <https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255>\
**Category:** WRF-CMAQ\
**Created:** [July 24, 2023, 8:27am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255 "2023-07-24T08:27:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 24, 2023, 8:27am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/1 "2023-07-24T08:27:33Z")

</div>

Hi, I’m new to the CMAQ and am trying my best to run it. I received an error when executing cctm in CMAQ according to the following procedure. Can you please correct the error screen and script?

(1) geo\_em/d01~4 and wrfout\_d01~d04 calculated by WRF in the home/tmp/CMAQv5.1/data/wrf directory  
The following is the design with domain 1 calculations  
(ii) Run.mcip to process the meteorological data. (run.mcip is attached)  
A file is created in Tmp/CMAQv5.1/data/mcip/d01  
(iii) Run.icon to create the initial concentration field file. (run.icon is attached.)  
A file is created in Tmp/CMAQv5.1/data/icon/d01  
4) Run.bcon to create the boundary concentration field file (run.bcon is attached)  
The file is created in Tmp/CMAQv5.1/data/bcon/d01  
⑤ Run air quality simulation (run.cctm)  
An error is displayed here. The error screen is attached. the file that should be output to Tmp/CMAQv5.1/data/cctm/d01 is not created.

 ![error screen](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/d2329dc698ad4ad5b8f99fb2d325731f8c528fa1.png)

---

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 24, 2023, 8:29am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/2 "2023-07-24T08:29:12Z")

</div>

![スクリーンショット 2023-07-24 172455](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/166c599d8455843550440d5844c382cd230c4168.png)

---

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 24, 2023, 8:29am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/3 "2023-07-24T08:29:43Z")

</div>

![スクリーンショット 2023-07-24 172512](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/c/c67bcda0cb791d1f844b3252e4c1052d08852a7b.png)

---

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 24, 2023, 8:30am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/4 "2023-07-24T08:30:15Z")

</div>

![スクリーンショット 2023-07-24 172532](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/20a2fec5a6d0631a744869fcbdd0c6fcdd6c6734.png)

---

<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 24, 2023, 2:38pm UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/5 "2023-07-24T14:38:08Z")

</div>

The error message indicates that the METCRO3D file name or directory name is incorrectly specified in the run script.

Please use the ls or list command to verify that the file isn’t found.

ls -lrt /home/hiro/tmp/CMAQv5.1/data/mcip/d01/METCRO3D\_110701

It may be that the file has an exension, that isn’t specified on lines 151-166  
Or, the date isn’t specified correctly in EXTN

ls -lrt /home/hiro/tmp/CMAQv5.1/data/mcip/d01/METCRO3D\*

If the path is correct for the METCRO3D file, then the above command will tell you what the filename is.

If the path is incorrect, then you may need to use the find command to determine the location of the METCRO3D file, to learn what the $METpath environment variable definition should be.

---

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 26, 2023, 7:28am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/6 "2023-07-26T07:28:47Z")

</div>

Thank you for your reply. I was able to fix it with the content you pointed out and re-performed CCTM and was able to solve the problem. thank you very much.  
However, another error occurred again, is this error caused by not specifying the file name correctly?  
I would like to know if there is any solution.  
Thank you very much.

 ![スクリーンショット 2023-07-26 162739](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/b/bda09cb9a916e10886c286795f5fadc2630c2a7b.png)

---

<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 26, 2023, 12:28pm UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/7 "2023-07-26T12:28:01Z")

</div>

The error you obtained is similar.

CMAQ run scripts need to be modified to correctly specify the location and name of input files.

If you see the error message “File not available”, then you need to find the location of the input file, and then make edits to the run script to specify the correct path and filename.

In this case it is the INIT\_GASC\_1 environment variable that is specified incorrectly.

use the list command to verify that the file does not exist as it is currently defined.  
`ls -lrt /home/hiro/tmp/CMAQv5.4/data/icon/d01/CCTM_DS1a_Linux2_x86_64intel_CGRID.CMAQ51-BENCHMARK_20110630`

Check to see if any files exist in the directory that is specified:  
`ls -lrt /home/hiro/tmp/CMAQv5.4/data/icon/d01/*`

Edit the run script to specify INIT\_GASC\_1 environment variable.

That environment variable may be defined in more than one place, so you will need to follow the logic of the c-shell script to determine where to make the edit.

You can also add debug options to the run script. (add -v or -x to the top of the script)  
Do a google search for more information about these options.

The following shell script starts with:  
`#!/bin/csh`

Change the line to:  
`#!/bin/csh -x`

---

<div class="post-metadata">

**Author:** ![hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hiro](https://forum.cmascenter.org/u/hiro)\
**Post date:** [July 28, 2023, 5:58am UTC](https://forum.cmascenter.org/t/error-in-run-cctm-in-wrf-cmaq/4255/8 "2023-07-28T05:58:37Z")

</div>

Thank you so much for your response.  
Similarly, I was able to solve it by specifying the file path and name correctly. However, I got another error again. This time I got an error like the image below. Looking back at past questions, it was written that it would be good to correct the settings for CTM\_STDATE, CTM\_STTIME, CTM\_RUNLEN, and CTM\_TSTEP, but I entered STDATE = 20150721, STTIME = 000000, NSTEPS = 240000, TSTEP = 010000 and there is no problem It seems like  
I’m sorry to ask this question again and again, but could you please enlighten me?

 ![スクリーンショット 2023-07-28 130444](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/e/e769a1a40bcc36ebcd7e08f4380102f4ce76b97b.png)
