# Smkmerge without spcmat/temporal

**URL:** <https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771>\
**Category:** SMOKE\
**Created:** [June 20, 2019, 7:48pm UTC](https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771 "2019-06-20T19:48:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhfkwok](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rhfkwok](https://forum.cmascenter.org/u/rhfkwok)\
**Post date:** [June 20, 2019, 7:48pm UTC](https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771/1 "2019-06-20T19:48:00Z")

</div>

Hi there,

I don’t remember whether SMOKE can generate netcdf files that are gridded but without speciation or temporization. Basically I am interested in visualizing spatial distribution of inventory pollutants through Verdi on netcdf files.  
If it is possible, what key settings are needed in smoke run and assigns scripts?

Thanks,  
Roger

---

<div class="post-metadata">

**Author:** ![bbaek](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/bbaek/32/22_2.png) [@bbaek](https://forum.cmascenter.org/u/bbaek)\
**Post date:** [June 20, 2019, 8:04pm UTC](https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771/2 "2019-06-20T20:04:34Z")

</div>

Hi Roger, long time no see. 🙂 Hope this finds you well.  
Yes, you can generate any gridded emissions using SMOKE. You can set the following the flags to generate various types of gridded emissions files. However, gridded emissions is default.

setenv MRG\_LAYERS\_YN N # Y produces layered output  
setenv MRG\_SPCMAT\_YN N # Y produces speciated output  
setenv MRG\_TEMPORAL\_YN N # Y produces temporally allocated output  
setenv MRG\_GRDOUT\_YN Y # Y produces a gridded output file

If you set MRG\_SPCMAT\_YN=N and MRG\_TEMPORAL\_YN=N for Smkmerge/Movesmrg runs, you can generate the gridded emissions without speciation and temporal. If you read the output file through Verdi, you will see the gridded emissions in unit of tons/year. You can also output the emissions in a different unit by updating the flag “MRG\_GRDOUT\_UNIT” if you wish.

---

<div class="post-metadata">

**Author:** ![rhfkwok](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rhfkwok](https://forum.cmascenter.org/u/rhfkwok)\
**Post date:** [June 20, 2019, 11:53pm UTC](https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771/3 "2019-06-20T23:53:50Z")

</div>

Nice to see you BH! How are you?

Yes, I already tried the settings you suggested. Yes, a gridded netcdf was generated in reports/{a case}/static folder, but without any data. I captured some text lines from smkmerge\*.log:

```
 "AG" opened as UNKNOWN(R-W)
 File name "/aa/rkwok/SMOKE4_official/data/reports/sacv_4k_by16fy16_gs072618e_cmaqtox_Srg100/static/ag.area.4km.sacv_4k_by16fy16_gs072618e_cmaqtox_Srg100.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name "SAC_43x75"
 Dimensions: 75 rows, 43 cols, 1 lays, 9 vbles
 NetCDF ID: 196608 opened as READWRITE
 Starting date and time -635:000000 (0:00:00 April 5, -002)
 Timestep 010000 (1:00:00 hh:mm:ss)
 Maximum current record number 0

```

And then at the bottom of the log file an error was encountered:  
Requested date & time: 0:000000  
File starting date & time: -635:000000 time step: 010000

```
 >>--->> WARNING in subroutine WRITE3
 Time step error writing file: AG

 *** ERROR ABORT in subroutine WMRGEMIS
 Could not write "CO " to file "AG "

```

It seems to me that the negative value -635 as the File Starting Date is the cause. But I cannot find anywhere in either Smoke or Ioapi source code forcing the start date for time-independent output. Have you encountered this issue before? What else did I miss?

Thanks,  
Roger

---

<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:** [June 21, 2019, 12:03pm UTC](https://forum.cmascenter.org/t/smkmerge-without-spcmat-temporal/771/4 "2019-06-21T12:03:23Z")

</div>

`File starting date & time: -635:000000 time step: 010000`

> But I cannot find anywhere in either Smoke or Ioapi source code forcing the start date for time-independent output.

This is not a time independent file: 'time step: 010000` – and that is probably the problem.
