# A simple question about how SMOKE reads Annual Emissions Data from FF10 file?

**URL:** <https://forum.cmascenter.org/t/a-simple-question-about-how-smoke-reads-annual-emissions-data-from-ff10-file/3574>\
**Category:** SMOKE\
**Tags:** smoke, smoke-481, emissions\
**Created:** [September 15, 2022, 3:49pm UTC](https://forum.cmascenter.org/t/a-simple-question-about-how-smoke-reads-annual-emissions-data-from-ff10-file/3574 "2022-09-15T15:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Iqbal](https://forum.cmascenter.org/u/Iqbal)\
**Post date:** [September 15, 2022, 3:49pm UTC](https://forum.cmascenter.org/t/a-simple-question-about-how-smoke-reads-annual-emissions-data-from-ff10-file/3574/1 "2022-09-15T15:49:41Z")

</div>

Hello,

Let’s say I am working on a FF10 formatted input file for the ptegu sector from EPA 2016v2 platform.

For the ptegu "one time "SMOKE script, SMOKE reads annual emissions. The annual emissions is on column 14 in the CSV formatted file. for example, the annual emissions are (column 14)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/6/687c9176863e9acb8e255d15d41fdac3627fa97f.png)

in the following file.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/0/074807fc6128cf12aaec4d900aa0c9edba2d9710.png)

**If you see closely, column 9 has a comma within the double quotes.**

If I call column 14 (annual emissions) using command

> cut -d, -f14

The output I can see is  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/0/0ae390da4326e18321971292d62337435be2a04b.png)

That’s because there is a comma within double quotes in column 9 .

My question is , How SMOKE reads/calls annual emissions data from column 14?.

Does SMOKE source code consider the commas inside double quotes?

Thanks in advance

---

<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:** [September 19, 2022, 12:44pm UTC](https://forum.cmascenter.org/t/a-simple-question-about-how-smoke-reads-annual-emissions-data-from-ff10-file/3574/2 "2022-09-19T12:44:01Z")

</div>

SMOKE can handle commas within embedded quotes. So, “A01,2” is treated by SMOKE as a single column. The ‘cut’ command does not handle quotes, though, so ‘cut’ does treat that embedded comma as a delimiter and shifts all subsequent columns off by one as a result. But that’s not an issue in SMOKE.
