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.
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 ;-(
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?
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) to edit the (XORIG,YORIG) of the file.
Otherwise you need to talk with someone else about that MODIS_FPAR file…
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?
*** 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.
*** 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?
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?
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.