# Cmaq2camx error while converting ICON file

**URL:** <https://forum.cmascenter.org/t/cmaq2camx-error-while-converting-icon-file/2212>\
**Category:** CMAQ-POST\
**Created:** [March 31, 2021, 9:57pm UTC](https://forum.cmascenter.org/t/cmaq2camx-error-while-converting-icon-file/2212 "2021-03-31T21:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maryam](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Maryam](https://forum.cmascenter.org/u/Maryam)\
**Post date:** [March 31, 2021, 9:57pm UTC](https://forum.cmascenter.org/t/cmaq2camx-error-while-converting-icon-file/2212/1 "2021-03-31T21:57:28Z")

</div>

Greetings,

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,  
Maryam

---

<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:** [April 1, 2021, 11:24am UTC](https://forum.cmascenter.org/t/cmaq2camx-error-while-converting-icon-file/2212/2 "2021-04-01T11:24:09Z")

</div>

If youi will check the latest version of this program on Gitub, [https://github.com/epa-kpc/O3PM-PSDNSR/blob/master/NNSR/preprocess/cmaq2camx/src/cmaq2uam.f](https://github.com/epa-kpc/O3PM-PSDNSR/blob/master/NNSR/preprocess/cmaq2camx/src/cmaq2uam.f) 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**.

---

<div class="post-metadata">

**Author:** ![Maryam](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Maryam](https://forum.cmascenter.org/u/Maryam)\
**Post date:** [April 2, 2021, 3:25pm UTC](https://forum.cmascenter.org/t/cmaq2camx-error-while-converting-icon-file/2212/3 "2021-04-02T15:25:45Z")

</div>

It worked! Thank you for your comment!
