# CCTM Run error-revised

**URL:** <https://forum.cmascenter.org/t/cctm-run-error-revised/516>\
**Category:** CMAQ\
**Created:** [February 13, 2019, 9:34pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516 "2019-02-13T21:34:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.kashfi73](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/a.kashfi73/32/49_2.png) [@a.kashfi73](https://forum.cmascenter.org/u/a.kashfi73)\
**Post date:** [February 13, 2019, 9:34pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/1 "2019-02-13T21:34:29Z")

</div>

Dear All,

After trying to run CCTM, I encountered the following error. Please find the log file attached. It seems that there is something wrong with XORIG and YORIG, but I do not know where it comes from. Not to mention that I need you like before.

YORIG\_B, YORIG\_F: -11.0000000000000 -264.750000000000

```
 *** ERROR ABORT in subroutine SubhFile_Cell on PE 001   
 Inconsistent Base/File Yorig
```

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [February 13, 2019, 10:04pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/2 "2019-02-13T22:04:58Z")

</div>

The error message says that one of your input files does not have a grid consistent with your CCTM modeling grid: the lower left corner in one is at a different location from that of the other (11 grid cells left of the coordinate origin, rather than 264.75 grid cells left of the coordinate origin.

This **may** mean that the file’s coordinate system may be different from the model’s, in an “affine related” way – for example, it is possible to use the same projection-cone for a 30-60-90 Lambert projection, but measure Cartesian X=Y=0 relative to (45N,90W) in one of these and relative to (40N,90W) in the other; the two sets of coordinates differ by an (X1,Y1)=(X2,Y2)+(X0,Y0) transformation, where (X0,Y0) are (messily trig-related-formula) constants.

Unfortunately, the message does not detail which file is the problematic one – that is a coding-standard violation in the subroutine: the log-message should state which file is involved ;-(

---

<div class="post-metadata">

**Author:** ![a.kashfi73](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/a.kashfi73/32/49_2.png) [@a.kashfi73](https://forum.cmascenter.org/u/a.kashfi73)\
**Post date:** [February 13, 2019, 10:30pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/3 "2019-02-13T22:30:11Z")

</div>

Thank you Carlie for your response. The error stems from using MODIS\_FPAR for running, and I still do not know how to address this. I have more logs to attach, but unfortunately it could not be attached. May I send it to you?

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [February 14, 2019, 3:30pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/4 "2019-02-14T15:30:43Z")

</div>

If you know the file, and know that this is one of those “affine related” errors (and that all the rest of the grid description is correct), then one way to fix it is to use M3TOOLS program “m3edhdr” ([https://cjcoats.github.io/ioapi/M3EDHDR.html](https://cjcoats.github.io/ioapi/M3EDHDR.html)) to edit the (XORIG,YORIG) of the file.

Otherwise you need to talk with someone else about that MODIS\_FPAR file…

---

<div class="post-metadata">

**Author:** ![a.kashfi73](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/a.kashfi73/32/49_2.png) [@a.kashfi73](https://forum.cmascenter.org/u/a.kashfi73)\
**Post date:** [February 15, 2019, 1:43pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/5 "2019-02-15T13:43:35Z")

</div>

Thank you for your help and response. Yes, I have the program to edit headers, but my problem is that I do not know how should I edit them. Could you please take a look at what I did?

XCENT\_B: 51.387001037598 XCENT3D (file): 51.387001037598  
YCENT\_B: 35.724998474121 YCENT3D (file): 40.000000000000  
XCELL\_B: 2000.000000000000 XCELL3D (file): 2000.000000000000  
YCELL\_B: 2000.000000000000 YCELL3D (file): 2000.000000000000

```
 *** ERROR ABORT in subroutine SubhFile_Cell on PE 001   
 File header inconsistent with GRID_CRO_2D

```

PM3EXIT: date&time specified as 0  
Date&time specified as 0

As can be seen, YCENT=40 is forced to MODIS\_FPAR file by the program that produces it. After I tried to modify it and set it to match the correct one, I faced the following error which you have already seen.

RELOFFY: -0.250000000000000  
YORIG\_B, YORIG\_F: -11.0000000000000 -264.750000000000

```
 *** ERROR ABORT in subroutine SubhFile_Cell on PE 001   
 Inconsistent Base/File Yorig.

```

As you already mentioned, I should try to modify XORIG and YORIG, but my problem is that I do not have any idea about the number that they must be set to. Could you please help me with this? I mean what should be the relation between XORIG and YORIG of CMAQ domain, and the XORIG and YORIG of another file? Please let me know if you need further information.

BTW, as apparently can be seen, there has not been anything wrong with XORIG of the files. Can we say that this wrong YORIG has been computed based on the wrong YCENT that I have no idea how is that came from?

I am looking forward to hearing from you.

Sincerely,

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [February 15, 2019, 5:45pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/6 "2019-02-15T17:45:49Z")

</div>

The obvious choice would be one of the cross-point met-files – METCRO2D, METCRO3D or GRIDCRO2D

All of the files must have consistent (either dot-point or cross-point) grids…

– Carlie

---

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [May 30, 2019, 4:11pm UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/7 "2019-05-30T16:11:30Z")

</div>

Dear Arash

Good day.

Did you solve the problem? if yes, could you please let me know how? I have the same problem.

Thanks  
Amin

---

<div class="post-metadata">

**Author:** ![a.kashfi73](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/a.kashfi73/32/49_2.png) [@a.kashfi73](https://forum.cmascenter.org/u/a.kashfi73)\
**Post date:** [May 31, 2019, 12:44am UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/8 "2019-05-31T00:44:57Z")

</div>

Dear Amin,

Yes. Is there a difference between the LAT of two files? If yes, you need some modification so that your file matches your MCIP domain. Are you using the MODIS\_FPAR file?

Best,

---

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [May 31, 2019, 7:06am UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/9 "2019-05-31T07:06:19Z")

</div>

Dear Arash

Thank you for response.

Which two files I should exactly compare?  
I don’t know what is MODIS\_FPAR so I think I don’t use it.

Are you in Iran, if yes we can talk by phone.

Thanks  
Amin

---

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [May 31, 2019, 7:17am UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/10 "2019-05-31T07:17:04Z")

</div>

this is my error:

Value for KZMIN: Y returning TRUE  
RELOFFY: -1.0000000000000000E-003  
YORIG\_B, YORIG\_F: -24.501000000000001 -24.500000000000000

```
 *** ERROR ABORT in subroutine SubhFile_Cell on PE 001   
 Inconsistent Base/File Yorig

```

PM3EXIT: date&time specified as 0  
Date&time specified as 0

---

<div class="post-metadata">

**Author:** ![a.kashfi73](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/a.kashfi73/32/49_2.png) [@a.kashfi73](https://forum.cmascenter.org/u/a.kashfi73)\
**Post date:** [May 31, 2019, 8:30am UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/11 "2019-05-31T08:30:46Z")

</div>

Dear Amin,

Yes, I am in Iran, but I cannot find a way to send you my number. Are you amin reihani? I remember him from the previous forum.

And for the error, I think it is saying there is a difference between y origins of two different headers, try to see the log to find out what are those. Based on my experience, it could be your smoke file and mcip files with different grid files. Make sure if you have used the same griddesc file for producing related files. If it is not the case, maybe you should post your complete log and error separately so experts will answer.

Best,

---

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [May 31, 2019, 11:12am UTC](https://forum.cmascenter.org/t/cctm-run-error-revised/516/12 "2019-05-31T11:12:36Z")

</div>

Dear Arash

It was related to ocean file, I corrected it.  
I didn’t know Reihani.

Thanks
