# SMOKE merge problem with time steps

**URL:** <https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206>\
**Category:** Emissions Inventory\
**Created:** [December 26, 2019, 8:32pm UTC](https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206 "2019-12-26T20:32:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soroush](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Soroush](https://forum.cmascenter.org/u/Soroush)\
**Post date:** [December 26, 2019, 8:32pm UTC](https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206/1 "2019-12-26T20:32:28Z")

</div>

Hello!

Can anyone please help me with the problem I faced in merging different sectors within SMOKE?  
I have finished all sectors separately using NEI-2015 and SMOKE. However, for merging all sectors, I receive an error that says some of my emission files have not enough time steps:

```
 ERROR: Number of time steps 24 in file 
      0�I��I���"��"/scratch/se75432/workDir/emis_2015/2015fd_cb6_15j/premerged/mrggrid/emis_mole_cmv_c1c2_20150804_12US2_cmaq_cb6_2015fd_cb6_15j.1.tmp.ncf@@@@�y+1p��" 
      is insufficient to cover the requested number of output 
      time steps 25
  
 *** ERROR ABORT in subroutine SETOUTDATE
 Problem with duration of input files

```

I checked the emission files in intermed folder and it seems four sectors (onroad, onroad\_ca, afdust\_adj, and othafdust\_adj) have 24 time steps and the rest of sectors have 25 time steps. I don’t know why the error says cmv\_c1c2 sector has problem.

Also, when I remove the mentioned four sectors (with 24 time steps) from sectors\_list, merging is done with no problem.

I couldn’t find any difference in run scripts of different sectors, related to time steps.  
Do you know what might be wrong?

Thank you,  
Soroush

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [December 27, 2019, 2:02pm UTC](https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206/2 "2019-12-27T14:02:51Z")

</div>

Souroush,

Can you please provide the following log files:

For afdust, a sample log for each of these programs: smkmerge, xportfrac, and apply.precip.adj? These are all in the intermed/afdust/logs/ directory.

For onroad, could provide a sample movesmrg log for RPD, RPP, RPH, and RPV, as well as a sample onroad mrggrid log (in intermed/onroad/RP\*/logs/ and intermed/onroad/logs/, respectively)?  
Note that I’m asking for an onroad mrggrid log, not a mrggrid log from the overall sector merge.

You can zip them and email them to [eyth.alison@epa.gov](mailto:eyth.alison@epa.gov)

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [December 27, 2019, 8:08pm UTC](https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206/3 "2019-12-27T20:08:45Z")

</div>

Soroush,

We found that  
the METCRO2D files you are using in /scratch/se75432/workDir/emis\_2015/met/08/ only contain 24 timesteps; but they should each have 25 for things to work properly.

---

<div class="post-metadata">

**Author:** ![Soroush](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Soroush](https://forum.cmascenter.org/u/Soroush)\
**Post date:** [January 6, 2020, 4:06pm UTC](https://forum.cmascenter.org/t/smoke-merge-problem-with-time-steps/1206/4 "2020-01-06T16:06:11Z")

</div>

Thank you for the help.  
That’s right. I used m3wndw program to change my met files domain size. The only thing I needed to do was that use end time of “245959” instead of the default end time “240000”.  
Now it is working.
