Cmaq2camx error while converting ICON file


I am a user of the “cmaq2camx” program. I am facing a problem while converting the initial condition file (ICON).

My initial condition file is in NetCDF format and I believe it is a CMAQ output. I am trying to convert it to CAMx ready binary format. However, I receive an error that says:

" *** ERROR ABORT in subroutine CMAQ2UAM
Time step of CMAQICON must be 0"

I checked the cmaq2uam.f file and I think the problem is related to the “TSTEP” global attribute in the NetCDF ICON file but I am not sure about it. The “TSTEP” global attribute in the file is 10000, I changed it to 0 in the ICON file and now I receive another error saying:


—>> WARNING in subroutine RDTFLAG
Time step not available in file INFILE for variable CXO3
M3WARN: DTBUF 0:00:00 March 29, 2018(2018088:000000)
(Same for every variable)

I was wondering if you have any suggestions or comment on this problem?

Thank you in advance,

If youi will check the latest version of this program on Gitub, you will find that it does not require a TSTEP=0.

By the way, direct editing of I/O API files is NOT SUPPORTED: it will break internal data-structures and checks, just as you have done in this case.

It worked! Thank you for your comment!