-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinventory_test.go
1427 lines (1412 loc) · 106 KB
/
inventory_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright (C) 2012 the AEP authors.
This file is part of AEP.
AEP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
AEP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AEP. If not, see <http://www.gnu.org/licenses/>.
*/
package aep
import (
"bytes"
"fmt"
"reflect"
"testing"
)
func TestInventory(t *testing.T) {
type testData struct {
name string
fileData string
expectedTotals map[string]float64
freq InventoryFrequency
sectorType string
period Period
}
table := []testData{
testData{
name: "ag2005",
freq: Annually,
period: Annual,
fileData: `#ORL NONPOINT
#TYPE NonPoint Inventory for CAPS
#COUNTRY US
#YEAR 2002
#DESC ANNUAL
#DESC US (including AK and HI), PR, VI
#DESC October 27, 2006 version of NEI
#DESC ag sector: nonpt_split.sas split out from arinv_non_point_cap2002nei_27oct2006_orl.txt
#DESC 02nov2006: non-point split into oarea minus ag and afdust and removed catastrophic releases (SCC=28300XX000)
#DESC "FIPS","SCC","SIC","MACT","SRCTYPE","NAICS","POLCODE","ANN_EMS","AVD_EMS","CEFF","REFF","RPEN","CPRI","CSEC","DATA_SOURCE","YEAR","TRIBAL_CODE","MACT_FLAG","PROCESS_MACT_COMPLIANCE_STATUS","START_DATE","END_DATE","WINTER_THROUGHPUT_PCT","SPRING_THROUGHPUT_PCT","SUMMER_THROUGHPUT_PCT","FALL_THROUGHPUT_PCT","ANNUAL_AVG_DAYS_PER_WEEK","ANNUAL_AVG_WEEKS_PER_YEAR","ANNUAL_AVG_HOURS_PER_DAY","ANNUAL_AVG_HOURS_PER_YEAR","PERIOD_DAYS_PER_WEEK","PERIOD_WEEKS_PER_PERIOD","PERIOD_HOURS_PER_DAY","PERIOD_HOURS_PER_PERIOD"
#EXPORT_DATE=Tue Dec 16 07:39:31 EST 2008
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2801700001","","","02","","NH3",1.2305699999999999,,,,,"","","P-02-X","2002","000","","","20020101","20021231",,,,,,,,,,,,,,,,
"01001","2801700003","","","02","","NH3",17.529599999999999,,,,,"","","P-02-X","2002","000","","","20020101","20021231",,,,,,,,,,,,,,,,
`,
},
// TODO: Support the ORL FIRE format
/* testData{
name: "ptfire_ptinv_2005_jan",
freq: Annually,
sectorType: "point",
period: Annual,
fileData: `#ORL FIRE
#TYPE Point Source Inventory for FIRES
#COUNTRY US
#YEAR 2005
#DATA ACRESBURNED HFLUX PM2_5 PM10 CO NOX NH3 SO2 VOC 75070 120127 218019 107028 74873 50328 26914181 85018 206440 108883 195197 193395 192972 463581 129000 198550 106990 56553 2381217 65357699 50000 110543 41637905 203338 207089 191242 71432 108383 106423 95476
#DESC The data are based on Sonoma Access databased named "EmissionsFinal2.mdb"
#DESC The date of this Access database is 3/12/2008
#DESC The data were converted by Steve Fudge to ORL format using program reformat_to_orlfire_2005.prg
#DESC ptfire data re-created on 11/09/08 to fix pollutant codes for methyl benzo pyrene ( from 247 to 65357699), methyl anthracene (from 26714181 to 26914181), and methyl chrysene (from 248 to 41637905)
#DESC For the ORL field MATBURNED, the values are FCCS codes and not MATBURNED values
#DESC XYLENE isomers added August 2008 by bkx
#DESC m-xyl=0.6141*xyl, p-xyl=0.1658*xyl, o-xyl=0.2201*xyl
#DESC XYLENE apportioned to isomers based on data in Gaseous and Particulate Emissions from Prescribed Burning in Georgia Sangill Lee, et. al, Environ. Sci. Technol. 2005, 39, 9049-9056, (http://ps.uci.edu/~rowlandblake/publications/lee.pdf)
#DESC "FIPS", "FIREID", "LOCID", "SCC", "FIRENAME", "LAT", "LON", "NFDRSCODE", "MATBURNED", "HEATCONTENT"
#EMF_START_DATE="01/01/2005 0:0"
#EMF_END_DATE="12/31/2005 23:59"
#EMF_TEMPORAL_RESOLUTION=Daily
#EMF_SECTOR=ptfire
#EMF_COUNTRY=US
#EMF_REGION=US
#EMF_PROJECT="OAQPS CSC RFS2 Evaluation Case"
#EXPORT_DATE=Wed May 04 10:28:09 EDT 2011
#EXPORT_VERSION_NAME=Fix HEATCONTENT
#EXPORT_VERSION_NUMBER=1
#REV_HISTORY v1(11/18/2008) Chris Allen. Replaced '-9.0' with '8000' for column datavalue SMOKE doesn't use HEATCONTECT, but if it's missing, Temporal crashes, so something needs to be there; we've used 8000 across the board in the past
"12051","747604","-9","2810015000","161894",26.571999000000002,-81.353999000000002,"-9",180,8000
"45089","747652","-9","2810015000","208474",33.780000000000001,-79.710999999999999,"-9",283,8000
"01021","747634","-9","2810015000","208465",32.893999999999998,-86.748999999999995,"-9",123,8000`,
},*/
/*testData{
name: "ptfire_ptday_2005_jan",
freq: Annually,
sectorType: "point",
period: Annual,
fileData: `#ORL FIREEMIS
#TYPE Point Source Inventory for FIRES
#COUNTRY US
#YEAR 2005
#DESC January
#DATA ACRESBURNED HFLUX PM2_5 PM10 CO NOX NH3 SO2 VOC 75070 120127 218019 107028 74873 50328 26914181 85018 206440 108883 195197 193395 192972 463581 129000 198550 106990 56553 2381217 65357699 50000 110543 41637905 203338 207089 191242 71432 108383 106423 95476
#DESC The data are based on Sonoma Access databased named "EmissionsFinal2.mdb"
#DESC The date of this Access database is 3/12/2008
#DESC The data were converted by Steve Fudge to ORL format using program reformat_to_orlfireemis_2005.prg
#DESC ptfire data re-created on 11/09/08 to fix pollutant codes for methyl benzo pyrene ( from 247 to 65357699), methyl anthracene (from 26714181 to 26914181), and methyl chrysene (from 248 to 41637905)
#DESC For the ORL field NFDRSCODE, the values are FCCS codes and not NFDRS codes
#DESC XYLENE isomers added August 2008 by bkx
#DESC m-xyl=0.6141*xyl, p-xyl=0.1658*xyl, o-xyl=0.2201*xyl
#DESC XYLENE apportioned to isomers based on data in Gaseous and Particulate Emissions from Prescribed Burning in Georgia Sangill Lee, et. al, Environ. Sci. Technol. 2005, 39, 9049-9056, (http://ps.uci.edu/~rowlandblake/publications/lee.pdf)
#DESC "FIPS", "FIREID", "LOCID", "SCC", "DATA", "DATE", "DATAVALUE", "BEGINHOUR", "ENDHOUR"
#EMF_START_DATE="01/01/2005 0:0"
#EMF_END_DATE="01/31/2005 23:59"
#EMF_TEMPORAL_RESOLUTION=Daily
#EMF_SECTOR=ptfire
#EMF_COUNTRY=US
#EMF_REGION=US
#EMF_PROJECT="OAQPS CSC RFS2 Evaluation Case"
#EXPORT_DATE=Wed May 04 10:28:21 EDT 2011
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"12051","747604","","2810015000","ACRESBURNED","01/01/05",99.9995861158,0,23
"12051","747604","","2810015000","HFLUX","01/01/05",496055228.16900003,0,23
`,
},*/
testData{
name: "ptipm_annual_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Source Inventory for CAPS
#COUNTRY US
#YEAR 2005
#DESC Annual PTIPM
#DESC US excluding AK, PR, VI and HI. Includes Tribal
#DESC NEI 2005 Version 2.0
#DESC Original inventory is EMF dataset ptipm_cap2005v2_revised12mar2009, version 5 (used in 2005cr_05b).
#DESC Starting from that inventory, the following changes were made for 2005cs_05b:
#DESC - Added ORIS IDs to_NEI UNIQUE_ID NEI2VA00040 (C. Allen, CSC, 11/30/2010)
#DESC ORIS_FACILITY_CODE is 7839, ORIS_BOILER_IDs are 1 and 2 (for POINTIDs 1 and 2, respectively)
#DESC - Applied PM10 and PM2_5 reduction factors for Natural Gas (boilers and turbines),Process Gas,and IGCC Units
#DESC per Madeleine Strum's spreadsheet 2005cr_adjustmnts3.xlsx (C. Allen, CSC 12/1/2010)
#DESC - Applied Pechan lat/lon coordinate fixes by ORIS FACILITY ID according to
#DESC NEEDS410SupplementalFileLatLon111910fromPechanRev120310comparisonwithIPM.xls (C. Allen, CSC 12/7/2010)
#DESC TD_creating_2005cs_ptipm_and_intermediate_ptnonipm_20DEC10_v4.xlsx changes (J. Beidler, CSC 12/21/2010)
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="12/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=ptipm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Transport Rule 1 Final (/tr1_f)"
#DESC FIPS,PLANTID,POINTID,STACKID,SEGMENT,PLANT,SCC,ERPTYPE,SRCTYPE,STKHGT,STKDIAM,STKTEMP,STKFLOW,STKVEL,SIC,MACT,NAICS,CTYPE,XLOC,YLOC,UTMZ,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,CPRI,CSEC,NEI_UNIQUE_ID,ORIS_FACILITY_CODE,ORIS_BOILER_ID,IPM_YN,DATA_SOURCE,STACK_DEFAULT_FLAG,LOCATION_DEFAULT_FLAG,YEAR,TRIBAL_CODE,HORIZONTAL_AREA_FUGITIVE,RELEASE_HEIGHT_FUGITIVE,ZIPCODE,NAICS_FLAG,MACT_FLAG,PROCESS_MACT_COMPLIANCE_STATUS,IPM_FACILITY,IPM_UNIT,BART_SOURCE,BART_UNIT,CONTROL_STATUS,START_DATE,END_DATE,WINTER_THROUGHPUT_PCT,SPRING_THROUGHPUT_PCT,SUMMER_THROUGHPUT_PCT,FALL_THROUGHPUT_PCT,ANNUAL_AVG_DAYS_PER_WEEK,ANNUAL_AVG_WEEKS_PER_YEAR,ANNUAL_AVG_HOURS_PER_DAY,ANNUAL_AVG_HOURS_PER_YEAR,PERIOD_DAYS_PER_WEEK,PERIOD_WEEKS_PER_PERIOD,PERIOD_HOURS_PER_DAY,PERIOD_HOURS_PER_PERIOD,DESIGN_CAPACITY
#EXPORT_DATE=Tue May 03 12:44:52 EDT 2011
#EXPORT_VERSION_NAME=Add FAKECEM72 and 82
#EXPORT_VERSION_NUMBER=1
#REV_HISTORY v1(12/29/2010) James Beidler. Added FAKECEM72 and FAKECEM82 NOX and SO2 For missing plants
"18043","00004","002","1","1","PSIENERGY-GALLAGHER","10100202","02","01",441.05000000000001,17.201000000000001,303,15176.16,65.307599999999994,"4911","1808-1","221112","L",-85.838099999999997,38.263599999999997,-9,"CO",92.247893099999999,,,,,,"NEI31676","1008","2","Y","E-E","11111"," ","2005","000",,,"47150",,,,"01",,"Y",,,"NA","20050101","20051231",,,,,,,,,,,,,,,,,,,
"18043","00004","002","1","1","PSIENERGY-GALLAGHER","10100202","02","01",441.05000000000001,17.201000000000001,303,15176.16,65.307599999999994,"4911","1808-1","221112","L",-85.838099999999997,38.263599999999997,-9,"NH3",0.1042403001,,,,,,"NEI31676","1008","2","Y","E-E","11111"," ","2005","000",,,"47150",,,,"01",,"Y",,,"NA","20050101","20051231",,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "avefire_ida_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE Area Source Emission Inventory
#DESC Output from SMOKE
#DESC Average U.S. fires developed taking the following steps:
#DESC 1) Calculate average acres burned for wildfires and Rx burning
#DESC (separately) by state using 1996 through 2002 data from Pechan
#DESC 2) Calculate 2001->ave year factor by dividing ave acres burned
#DESC by 2001 acres burned by state for both wildfires and Rx fires.
#DESC Use resulting factors to create a SMOKE projection packet
#DESC 3) Use SMOKE to apply the projection factors to the 2001 fire
#DESC inventory.
#DESC Modified 19jan2007 by ram to include only the following SCCs:
#DESC 2810001000 (wildfires), 2810005000 (Managed Burning/logging), 2810015000 (Rx burning)
#DESC Original file was arinv.fire_us_ave_1996-2002.ida
#DESC C. Allen, 21dec2007: Changed VOC across-the-board; now VOC = 0.229*CO
#DESC Original file: arinv_avefire_2002cc_19jan2007_v0_ida.txt
#POLID CO NOX VOC NH3 SO2 PM10 PM2_5
#COUNTRY US
#DESC 2010
#YEAR 2002
#EMF_START_DATE=1/1/2002
#EMF_END_DATE=12/31/2002
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=avefire
#EMF_REGION=US
#EMF_PROJECT=GHG Final Rule
#EXPORT_DATE=Mon Mar 09 08:45:52 EDT 2009
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
1 12810001000 1190.36 3.2613 331.48 0.01.0 1.0 25.5372 0.07 7.11 0.01.0 1.0 272.59244 0.7468377 15.6 0.01.0 1.0 5.3593 0.0147 1.49 0.01.0 1.0 6.9965 0.0192 1.95 0.01.0 1.0 115.736 0.3171 32.23 0.01.0 1.0 99.2663 0.272 27.64 0.01.0 1.0
1 32810001000 2794.4199 7.6559 331.48 0.01.0 1.0 59.946 0.1642 7.11 0.01.0 1.0639.922157 1.7532011 15.6 0.01.0 1.0 12.5657 0.0344 1.49 0.01.0 1.0 16.4418 0.045 1.95 0.01.0 1.0 271.702 0.7444 32.23 0.01.0 1.0 233.025 0.6384 27.64 0.01.0 1.0
`,
},
testData{
name: "avefire_orl_2005",
freq: Annually,
period: Annual,
fileData: `#ORL NONPOINT - avefire
#TYPE Nonpoint Inventory - HAPS avefire
#COUNTRY US
#YEAR 2002
#DESC ANNUAL
#DESC US (including AK and HI)
#DESC read pm25 from file
#DESC /orchid/oaqps/2002/smoke/inventory/v3/2002cc/avefire
#DESC 2224479 Mar 22 2007 arinv_avefire_2002cc_19jan2007_v0_ida.txt
#DESC EPA factors times avefire pm2.5 equals estimated HAP
#DESC name, polcode, factor:
#DESC BUTADIE 106990 0.0147
#DESC METHYLPYRE1 2381217 0.00033
#DESC ACETALD 75070 0.0148
#DESC ACROLEI 107028 0.0154
#DESC ANTHRACEN 120127 0.00018
#DESC BENZAANTH 56553 0.00022
#DESC BENZENE 71432 0.041
#DESC BNZOAFLURAN 203338 0.00009
#DESC BNZOCPHENAN 195197 0.00014
#DESC BENZOAPYR 50328 0.00005
#DESC BENZOEPYRNE 192972 0.0001
#DESC BENZOGHIP 191242 0.00018
#DESC BENZOKFLU 207089 0.00009
#DESC CARBNYLSUL 463581 0.00002
#DESC CHRYSENE 218019 0.00022
#DESC FLUORANTH 206440 0.00024
#DESC FORMALD 50000 0.0936
#DESC HEXANE 110543 0.00059
#DESC INDENO123 193395 0.00012
#DESC MTHYLCHLRD 74873 0.00464
#DESC MTHYLANTRAC 26914181 0.0003
#DESC MTHYLBNZPYR 65357699 0.00011
#DESC MTHYLCHYSEN 41637905 0.00029
#DESC OXYL 95476 0.0019325544
#DESC MXYL 108383 0.0053920652
#DESC PXYL 106423 0.0014553804
#DESC PERYLENE 198550 0.00003
#DESC PHENANTHR 85018 0.00018
#DESC PYRENE 129000 0.00034
#DESC TOLUENE 108883 0.0206
#DESC FIPS,SCC,SIC,MACT,SRCTYPE,NAICS,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,RPEN,PRIMARY_DEVICE_TYPE_CODE,SECONDARY_DEVICE_TYPE_CODE,DATA_SOURCE,YEAR,TRIBAL_CODE,MACT_FLAG,PROCESS_MACT_COMPLIANCE_STATUS,START_DATE,END_DATE,WINTER_THROUGHPUT_PCT,WINTER_THROUGHPUT_PCT,SPRING_THROUGHPUT_PCT,SUMMER_THROUGHPUT_PCT,FALL_THROUGHPUT_PCT,ANNUAL_AVG_DAYS_PER_WEEK,ANNUAL_AVG_WEEKS_PER_YEAR,ANNUAL_AVG_HOURS_PER_DAY,ANNUAL_AVG_HOURS_YEAR,PERIOD_DAYS_PER_WEEK,PERIOD_WEEKS_PER_PERIOD,PERIOD_HOURS_PER_DAY,PERIOD_HOURS_PER_PERIOD
#EXPORT_DATE=Mon Mar 09 08:45:45 EDT 2009
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2810001000",,,,,"106990",1.4592146100000001,,0,1,1,,,"EPA","2002",,,,,,,,,,,,,,,,,,,,,
"01001","2810001000",,,,,"2381217",0.032757878999999997,,0,1,1,,,"EPA","2002",,,,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "afdust_2005",
freq: Annually,
period: Annual,
fileData: `#ORL NONPOINT
#TYPE Nonpoint Inventory
#DESC (Output from SMOKE)
#COUNTRY US
#YEAR 2002
# DESC Transportable fractions applied
# DESC File created on 26sep2007 by M. Houyoux using script:
# DESC amber:/orchid/oaqps/2002/smoke/subsys/v3/smoke232/scripts/cases/2002ad_xpf/smk_afdust_2002ad_apply_xportfrac.csh
# DESC and original input inventory file:
# DESC amber:/orchid/oaqps/2002/smoke/inventory/v3/from_NEI_team/arinv_afdust_cap2002nei_27oct2006_orl.txt
# DESC using control package developed by Rich Mason available at:
# DESC amber:/orchid/oaqps/2002/smoke/inventory/v3/2002ad_xpf/afdust/gcntl.xportfrac.txt
#EXPORT_DATE=Wed Jun 23 08:23:17 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2294000000","0000","-9","02","-9","PM2_5",3.0557325,0.00837187,0,100,100,,,,,,,,,,,,,,,,,,,,,,,,,
"01001","2294000000","0000","-9","02","-9","PM10",51.677104999999997,0.14158112,0,100,100,,,,,,,,,,,,,,,,,,,,,,,,,`,
},
testData{
name: "nonroad_CA_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL NONROAD
#TYPE Nonroad Inventory for CAPs and HAPs for California only
#COUNTRY US
#YEAR 2005
#DESC jan
#DESC California nonroad CAP and HAP emissions, 2005v2
#DESC Originally created 4/1/2008 by CSC, WO79
#DESC CAP emissions (except NH3) came from annual data provided by Martin Johnson of the California Air Resources Board (CARB), [email protected] in March 2007.
#DESC 2007. CAP emissions were created by applying a factor to the 2005 California ORL. Factors were developed by interpolating 2012 and 2020 emissions
#DESC from CARB data.
#DESC NH3 is from 2015 NMIM runs for California.
#DESC HAP emissions were estimated by applying HAP-to-CAP ratios computed from Calif 2005 NEI submittal (2005 data provided by Laurel Driver 12/2007)
#DESC this was done because the Calif submittal from March 2007 did not include estimates for HAP
#DESC Retained only those HAP that are also estimated by NMIM for nonroad mobile sources; all other HAP dropped
#DESC Revised on 6/23/2010 by CSC to add in missing PM emissions for seven counties. Used the March 2007 version of the Calif 2005 inventory emissions
#EMF_START_DATE=1/1/2005
#EMF_END_DATE=1/31/2005
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=nonroad
#EMF_REGION=California
#EMF_PROJECT="Clean Air Transport Rule (/cair_rep)"
#EMF_DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,RPEN,SRCTYPE,DATA_SOURCE,YEAR,TRIBAL_CODE
#EXPORT_DATE=Thu Jun 24 08:48:20 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"06067","2270002003","EXH__VOC",0,0.025497026700000001,,,,"03","S","2005","000",,,,,,,,,,,,,,,,,,
"06093","2270002045","EXH__VOC",0,0.0016022721999999999,,,,"03","S","2005","000",,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "nonroad_caps_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL
#NONROAD File for CAPS
#COUNTRY US
#YEAR 2005
#DESC JANUARY (MONTH=1)
#DESC US (including AK and HI), PR, VI, excluding California
#DESC ORL file created August 27, 2008 by CSC, data based solely on NMIM
# NMIM Version: 20071009
# NMIM County Database: NCD20070912 with 2006 meteorological data copied from 2005
# NMIM Nonroad Version: nr05c-BondBase\NR05c.exe
# NMIM Mobile Version: M6203CHC\M6203ChcOxFixNMIM.exe
#DESC Pollutants in file are CO,NOX,SO2,VOC,NH3,PM10,PM2_5
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,RPEN,SRCTYPE,DATA_SOURCE,YEAR,TRIBAL_CODE
#EMF_START_DATE="1/1/2005 0:0"
#EMF_ENF_DATE="1/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=nonroad
#EMF_COUNTRY=US
#EMF_REGION="US, not Calif"
#EMF_PROJECT="2005-based platform, v2"
#EXPORT_DATE=Wed Apr 28 15:31:04 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2260002006","EVP__VOC",-9,3.6423011949999997e-05,-9,-9,-9,"03","E","2005"," ",,,,,,,,,,,,,,,,,,
"01001","2260002006","EXH__CO",-9,0.0048233352361100003,-9,-9,-9,"03","E","2005"," ",,,,,,,,,,,,,,,,,,
"01001","2260002006","EXH__NH3",-9,1.9171988418337001e-07,-9,-9,-9,"03","E","2005"," ",,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "onroad_runpm_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL
#TYPE Mobile Source (onroad) for MOVES-based Onroad Gasoline PM (including Naphthalene) excluding California, partial monthly file REPLACING a subset of onroad SCCs and pollutants from the 2005v2 NMIM results
#COUNTRY US
#YEAR 2005
#DESC January (MONTH=1)
#DESC US excluding California (including AK and HI but not PR, VI)
#DESC ORL file created 06MAY2010 (from 2005v2 NMIM state:county ratios and MOVES2010-based data from OTAQ) by Rich
#DESC MOVES2010-based state inventories provided by Harvey Michaels (OTAQ) in May 2010
#DESC Generated on garnet using: /garnet/home/rhc/2005cr/create_MOVES2005cr.sas
#DESC NMIM ratios obtained from: /garnet/home/rhc/2005cr/create_2005cr_onroad_NMIM_plus_ST_CTY_ratios.sas
#DESC The SCCs in this file are all that have the first 7 digits as follows:
#DESC 2201001*, 2201020*, 2201040*, 2201070*, for RUNNING (non-START) SCCs ONLY: *110:20:*330, or, all except *350, and *370
#DESC *** DIESEL Exhaust SCCs for PM and Gasoline non-PM/Naphthalene MOVES emissions provided separately
#DESC Pollutants in file are: PEC_72 POC_72 PNO3 PSO4 OTHER PMFINE_72 PMC_72 NAPHTH_72
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="1/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=on_moves_runpm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Clean Air Transport Rule (/cair_rep)"
#EXPORT_DATE=Mon May 10 12:19:55 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2201001110","NAPHTH_72",,0.00022282850000000001,"04","E","2005",,,,,,,,
"01003","2201001110","NAPHTH_72",,0.00075862830000000001,"04","E","2005",,,,,,,,
`,
},
testData{
name: "onroad_startpm_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL
#TYPE Mobile Source (onroad) for MOVES-based Onroad Gasoline PM (including Naphthalene) excluding California, partial monthly file REPLACING a subset of onroad SCCs and pollutants from the 2005v2 NMIM results
#COUNTRY US
#YEAR 2005
#DESC January (MONTH=1)
#DESC US excluding California (including AK and HI but not PR, VI)
#DESC ORL file created 06MAY2010 (from 2005v2 NMIM state:county ratios and MOVES2010-based data from OTAQ) by Rich
#DESC MOVES2010-based state inventories provided by Harvey Michaels (OTAQ) in May 2010
#DESC Generated on garnet using: /garnet/home/rhc/2005cr/create_MOVES2005cr.sas
#DESC NMIM ratios obtained from: /garnet/home/rhc/2005cr/create_2005cr_onroad_NMIM_plus_ST_CTY_ratios.sas
#DESC The SCCs in this file are all that have the first 7 digits as follows:
#DESC 2201001*, 2201020*, 2201040*, 2201070*, 2201080* for START SCCs ONLY: *350, and *370
#DESC *** DIESEL Exhaust SCCs for PM and Gasoline non-PM/Naphthalene MOVES emissions provided separately
#DESC Created URBAN/RURAL parking (SCC= *370/*350 respectively) from broad SCCs based on state-level urban/rural local road (*330/*210 respectively) emissions
#DESC Pollutants in file are: PEC_72 POC_72 PNO3 PSO4 OTHER PMFINE_72 PMC_72 NAPHTH_72
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="1/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=on_moves_startpm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Clean Air Transport Rule (/cair_rep)"
#EXPORT_DATE=Mon May 10 13:06:50 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01001","2201001350","NAPHTH_72",,2.6754199999999999e-05,"04","E","2005",,,,,,,,
"01001","2201001370","NAPHTH_72",,5.4614899999999998e-05,"04","E","2005",,,,,,,,
`,
},
testData{
name: "onroad_CA_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL ONROAD
#TYPE OnRoad Inventory for CAPs and HAPs for California only; RFL excluded
#COUNTRY US
#YEAR 2005
#DESC California onroad CAP and HAP emissions, 2002v2
#DESC Created 4/1/2008 by CSC, WO79
#DESC CAP emissions (except NH3) came from annual data provided by Chris Nguyen of the California Air Resources Board (CARB), [email protected] in September 2007.
#DESC SCCs represent 11 vehicle types: -- Calif data does not have the NMIM vehicle type of 'Heavy Duty Diesel Vehicles (HDDV) Class 6 & 7' (2230073)
#DESC Emissions were allocated to the NEI road types using NMIM Calif results for 2005
#DESC Monthly emissions computed using NMIM monthly Calif results for 2005
#DESC HAP emissions were estimated by applying HAP-to-CAP ratios computed from Calif 2005 NEI submittal (2005 data provided by Laurel Driver 03/2008)
#DESC Retained only those HAP that are also estimated by NMIM for onroad mobile sources; all other HAP dropped
#DESC Revised from origival 2005v2 by replacing NH3 emissions from the 2005 MOVES data
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR,TRIBAL_CODE
#EMF_START_DATE=1/1/2005
#EMF_END_DATE=1/31/2005
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=onroad
#EMF_REGION=California
#EMF_PROJECT="2005 Platform, v2"
#EXPORT_DATE=Wed Jun 30 08:28:14 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"06001","2201001130","BRK__PM10",0,0.0014111735999999999,"04","S","2005",,,,,,,,
"06001","2201001150","BRK__PM10",0,0.00073439019999999998,"04","S","2005",,,,,,,,
`,
},
testData{
name: "onroad_not2moves_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL
#TYPE Mobile Source (onroad) for HAPs excluding California, partial monthly file containing a subset of onroad SCCs and pollutants from the 2005v2 NMIM results
#COUNTRY US
#YEAR 2005
#DESC January (MONTH=1)
#DESC US excluding California (including AK and HI but does not include PR, VI)
#DESC ORL file created 04MAY2010 by Rich M. using /garnet/home/rhc/2005cr/create_2005cr_onroad_NMIM_plus_ST_CTY_ratios.sas
#DESC All HAP emissions because CAPs use MOVES emissions -16MAR2010: even for motorcycles (SCC=2201080XXX)...
#DESC ...all dioxins removed and xylenes split into modes.
#DESC MOVES2010 replaces all: CAPs including brake/tire PM and evap VOC and all EXHAUST...
#DESC 106990 (butadiene), 107028 (acrolein), 50000 (formaldehyde), 71432 (benzene), 75070 (acetaldehyde) and all EVAP 71432 (benzene) and 91203 (naphthalene)
#DESC These HAPs contain all onroad mobile emissions (none are replaced with MOVES): EVP__10041 (ETHYLBENZ), EXH__100414(ETHYLBENZ), EXH__100425(STYRENE),
#DESC EVP__108883(TOLUENE), EXH__108883(TOLUENE), EVP__110543(HEXANE), EXH__110543(HEXANE), EXH__120127(ANTHRACEN), EXH__123386(PROPIONAL), EXH__129000(PYRENE),
#DESC EVP__108383 (MXYL as 0.68 of EVP__1330207(XYLS)), EVP__95476 (OXYL as 0.32 of EVP__1330207(XYLS)), EXH__108383 (MXYL as 0.74 of EXH__1330207 (XYLS)),
#DESC EXH__95476 (OXYL as 0.26 of EXH__1330207(XYLS)), EXH__16065831(CHROMTRI), EXH__1634044(MTBE), EXH__18540299(CHROMHEX), EXH__191242(BENZOGHIP), EXH__193395(INDENO123),
#DESC EXH__200(HG), EXH__201(HGIIGAS), EXH__202(PHGI), EXH__205992(BENZOBFLU), EXH__206440(FLUORANTH), EXH__207089(BENZOKFLU), EXH__208968(ACENAPHTY),
#DESC EXH__218019(CHRYSENE), EXH__50328(BENZOAPYR), EXH__53703(DIBENZAHA), EVP__540841(TRMEPN224), EXH__54084(TRMEPN224), EXH__56553(BENZAANTH), EXH__7439965(MANGANESE),
#DESC EXH__7440020(NICKEL), EXH__83329(ACENAPENE), EXH__85018(PHENANTHR), EXH__86737(FLUORENE), EXH__93(ARSENIC)
# NMIM Version: 20071009
# NMIM County Database: NCD20080522 with 2005 meteorological data
# NMIM Mobile Version: M6203CHC\M6203ChcOxFixNMIM.exe
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="1/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=on_noadj
#EMF_COUNTRY="US"
#EMF_REGION="US, not Calif"
#EMF_PROJECT="Clean Air Transport Rule (/cair_rep)"
#EXPORT_DATE=Mon May 10 08:15:38 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"72001","2230075290","BRK__PM10",,3.2589945999999999e-06,"04","E","2005",,,,,,,,
"72003","2230075230","EXH__PM2_5",,0.0002112626,"04","E","2005",,,,,,,,
`,
},
testData{
name: "onroad_moves_jan_2005",
freq: Monthly,
period: Jan,
fileData: `#ORL
#TYPE Mobile Source (onroad excluding California) for MOVES-based Diesel and Gasoline except PM and Naphthalene gasoline exhaust, partial monthly file REPLACING a subset of onroad SCCs and pollutants from the 2005v2 NMIM results
#COUNTRY US
#YEAR 2005
#DESC January (MONTH=1)
#DESC US excluding California (including AK and HI but not PR, VI)
#DESC ORL file created 06MAY2010 (from 2005v2 NMIM state:county ratios and MOVES2010-based data from OTAQ) by Rich
#DESC MOVES2010-based state inventories provided by Harvey Michaels (OTAQ) in May 2010
#DESC Generated on garnet using: /garnet/home/rhc/2005cr/create_MOVES2005cr.sas
#DESC NMIM ratios obtained from: /garnet/home/rhc/2005cr/create_2005cr_onroad_NMIM_plus_ST_CTY_ratios.sas
#DESC All onroad SCCs are in this file. All modes (EXH, EVP, TIR, and BRK) are in this file except PM and Naphthalene exhaust from gasoline engines (provided separately)
#DESC Pollutants in file are: 1) ALL SCCS: BRK__PM10 BRK__PM2_5 TIR__PM10 TIR__PM2_5 EVP__VOC EVP__71432 (benzene), EVP__91203 (naphthalene), EXH__106990 (butadiene), EXH__107028 (acrolein),
#DESC EXH__50000 (formaldehyde), EXH__71432, EXH__75070 (acetaldehyde), EXH__CO, EXH__NH3, EXH__NOX, EXH__SO2, EXH__VOC
#DESC 2) EXH__91203 (Naphthalene), PEC POC PNO3 PSO4 PMFINE and PMC (exhaust mode) for onroad diesel sources
#DESC FIPS,SCC,POLCODE,ANN_EMIS,AVD_EMIS,SRCTYPE,DATA_SOURCE,YEAR
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="1/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Monthly
#EMF_SECTOR=on_noadj
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Clean Air Transport Rule (/cair_rep)"
#EXPORT_DATE=Mon May 10 08:12:34 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"01071","2201001170","BRK__PM10",,0.00087661970000000005,"04","E","2005",,,,,,,,
"01001","2201001170","EVP__VOC",,0.0078043662000000001,"04","E","2005",,,,,,,,
`,
},
testData{
name: "onroad_canada_2005",
freq: Annually,
period: Annual,
fileData: `#ORL
#TYPE Onroad Mobile Sources
#COUNTRY CANADA
#YEAR 2006
#DESC ANNUAL
#DESC Emissions, in short tons, for the on-road Transportation
#DESC Created: 10 Oct 2008
#DESC
#DESC Dropped "Region_code","Fuel_type","Annual_VKT","Population","Mobile_class","Trans_category" columns.
#DESC 2/4/2009 James Beidler <[email protected]>
#DESC
#DESC "FIPS","US_SCC","POLL","ANN_EMISS","AVD_EMISS","SRCTYPE","DATA_SOURCE","RptYear"
#EXPORT_DATE=Mon Apr 26 15:49:16 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"48000","2230070000","CO",1390.23,-9,"4","!","2006",,,,,,,,
"48000","2230060000","VOC",680.94000000000005,-9,"4","!","2006",,,,,,,,
`,
},
testData{
name: "onroad_mexico_border_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE ONROAD MOBILE SOURCE INVENTORY
#COUNTRY MEXICO
#YEAR 1999
#DESC MEXICO NATIONAL EMISSIONS INVENTORY, VER. 2.2, FOR THE SIX NORTHERN BORDER STATES.
#DESC PREPARED FOR THE WGA, EPA, COMMISSION FOR ENVIRONMENTAL COOPERATION, MEXICO'S
#DESC SECRETARIAT OF NATURAL RESOURCES AND THE ENVIRONMENT (SEMARNAT), AND WRAP.
#DESC PREPARED BY EASTERN RESEARCH GROUP, INC. (ERG), SACRAMENTO, CA.
#DESC DOMAIN: BAJA CALIFORNIA, SONORA, CHIHUAHUA, COAHUILA, NUEVO LEON, AND TAMAULIPAS.
#DESC VEHICLE CLASSIFICATIONS INCLUDE: LDGV, LDGT, HDGV, LDDV, LDDT, HDDV, AND MC.
#DESC SEE "MEXICO NATIONAL EMISSIONS INVENTORY, 1999. DRAFT FINAL." ERG, NOVEMBER 2005.
#DESC IDA CONVERSION BY ERG, MORRISVILLE, NC ON OCTOBER 27, 2006.
#DATA CO NH3 NOX PM10 PM2_5 SO2 VOC
#EXPORT_DATE=Mon Apr 26 15:49:17 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
2 1 2201001000 7697.581 21.08926 18.363470.05031088 321.4992 0.8808197 20.069510.05498496 18.30982 0.0501639 35.085230.09612392 1053.695 2.886834
2 1 2201060000 5064.543 13.87546 12.690330.03476802 206.7932 0.5665568 17.694050.04847684 16.153150.04425522 31.003110.08494004 571.3939 1.565463
`,
},
testData{
name: "onroad_mexico_interior_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE ONROAD SOURCE INVENTORY
#COUNTRY MEXICO
#YEAR 1999
#DESC WESTERN REGIONAL AIR PARTNERSHIP (WRAP)
#DESC INVENTORY OF LOWER TWENTY-SIX STATES FOR MEXICO
#DESC VERSION 1 OF 1999 MEXICO NEI - 26 INTERIOR STATES
#DESC IDA CONVERSION BY MS. STACIE ENOCH, EASTERN RESEARCH GROUP, INC
#DESC ON August 18, 2006
#DATA CO NH3 NOX PM10 PM2_5 SO2 VOC
#EXPORT_DATE=Mon Apr 26 15:49:16 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
1 10 220100100022175.968760.756076831.83475110.08721849773.2713622.1185517351.24645230.1404012446.74902340.1280795189.68405150.245709712726.500977.46986532
1 10 220106000014671.444340.195735922.00213430.06027982505.9719231.38622438 45.1727180.1237608741.23746490.1129793679.24516290.217110021551.348874.25027084
`,
},
testData{
name: "canada_point1_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Sources
#COUNTRY CANADA
#YEAR 2006
#DESC ANNUAL
#DESC Emissions, in short tons, for facilities reporting to the NPRI
#DESC Created: 10 Oct 2008
#DESC
#DESC Dropped unused columns: CITY, PROVSTATE, CLASS_CAT, CLASS_CODE, SUB_CLASS_CODE, NOTE
#DESC Moved YEAR from the CC position to the JJ position. Changed SIC to 0000
#DESC Changed all SCCs to 39999999.
#DESC 2/3/2009 James Beidler <[email protected]>
#DESC
#DESC "FIPS","PLANTID","POINTID","STACKID","SEGMENT","PLANT","SCC","ERPTYPE","SRCTYPE","STKHGT","STKDIAM","STKTEMP","STKFLOW","STKVEL","SIC_CODE","MACT","NAICS","CTYPE","LONG","LAT","UTMZ","POLL","ANN_EMISS","AVD_EMISS","CEFF","REFF","CPRI","CSEC","NEI_UNIQUE_ID","ORIS_FACILITY_CODE","ORIS_BOILER_ID","IPM_YN","DATA_SOURCE","STACK_DEFAULT_FLAG","LOCATION_DEFAULTS_FLAG","YEAR"
#EXPORT_DATE=Mon Apr 26 15:46:58 EDT 2010
#EXPORT_VERSION_NAME=change county codes
#EXPORT_VERSION_NUMBER=2
#REV_HISTORY 03/05/2009 Allan Beidler. What: CO for 5900,5188,4122 Why: emissions value too high
#REV_HISTORY 03/09/2009 Allan Beidler. What: Replaced '35000' with '35001' for column fips Replaced '10000' with '10001' for column fips Replaced '11000' with '11001' for column fips Replaced '12000' with '12001' for column fips Replaced '13000' with '13001' for column fips Replaced '24000' with '24001' for column fips Replaced '46000' with '46001' for column fips Replaced '47000' with '47001' for column fips Replaced '48000' with '48001' for column fips Replaced '59000' with '59001' for column fips Replaced '61000' with '61001' for column fips Replaced '62000' with '62001' for column fips Why: add county codes of 001 for point source temporal matching.
"35001","7188","ON07188","","","TSTechCanada","39999999","01","01",,,,-9,,"0000","","336360","L",-79.430000000000007,44.07,,"PM2_5",0.33000000000000002,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
"35001","10177","ON10177","","",,"39999999","01","01",,,,-9,,"0000","","911910","L",-75.730000000000004,45.399999999999999,,"PM2_5",0.40999999999999998,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "canada_point2_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Sources
#COUNTRY CANADA
#YEAR 2006
#DESC ANNUAL
#DESC Emissions, in short tons, for facilities reporting to the NPRI
#DESC CB05 speciation
#DESC Emissions in short tons for facilities reporting to the NPRI
#DESC This version correct from previous version with invalid speciated emissions values (values that were too high).
#DESC CB5 speciation Created: 4 March 2009
#DESC
#DESC Dropped unused columns: CITY, PROVSTATE, CLASS_CAT, CLASS_CODE, SUB_CLASS_CODE, NOTE
#DESC Moved YEAR from the CC position to the JJ position
#DESC Changed all SCCs to 399999999
#DESC Removed ", Groupe des produits forestiers" from all "Tembec Inc." PLANT names.
#DESC 3/5/2009 James Beidler <[email protected]>
#DESC
#DESC "FIPS","PLANTID","POINTID","STACKID","SEGMENT","PLANT","SCC","ERPTYPE","SRCTYPE","STKHGT","STKDIAM","STKTEMP","STKFLOW","STKVEL","SIC_CODE","MACT","NAICS","CTYPE","LONG","LAT","UTMZ","POLL","ANN_EMISS","AVD_EMISS","CEFF","REFF","CPRI","CSEC","NEI_UNIQUE_ID","ORIS_FACILITY_CODE","ORIS_BOILER_ID","IPM_YN","DATA_SOURCE","STACK_DEFAULT_FLAG","LOCATION_DEFAULTS_FLAG","YEAR"
#DESC 03/09/2009 Allan Beidler. What: Replaced '10000' with '10001'
#EXPORT_DATE=Mon Apr 26 15:47:13 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"10001","4316","100067","","","North Atlantic Refining","39999999","","01",,,,-9,,"0000","","","L",-53.990000000000002,47.789999999999999,,"ALD2",0.02,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
"10001","4316","100067","","","North Atlantic Refining","39999999","","01",,,,-9,,"0000","","","L",-53.990000000000002,47.789999999999999,,"ALDX",0.0041044172,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "canada_point3_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Sources
#COUNTRY CANADA
#YEAR 2006
#DESC ANNUAL
#DESC Emissions, in short tons, for facilities reporting to the NPRI
#DESC Upstream Oil and Gas inventory
#DESC Created: 10 Oct 2008
#DESC
#DESC Dropped unused columns: CITY, PROVSTATE, CLASS_CAT, CLASS_CODE, SUB_CLASS_CODE, NOTE
#DESC Moved YEAR from the CC position to the JJ position
#DESC Mapped Canadian "facility name" to PLANT.
#DESC 2/3/2009 James Beidler <[email protected]>
#DESC
#DESC "FIPS","PLANTID","POINTID","STACKID","SEGMENT","PLANT","SCC","ERPTYPE","SRCTYPE","STKHGT","STKDIAM","STKTEMP","STKFLOW","STKVEL","SIC_CODE","MACT","NAICS","CTYPE","LONG","LAT","UTMZ","POLL","ANN_EMISS","AVD_EMISS","CEFF","REFF","CPRI","CSEC","NEI_UNIQUE_ID","ORIS_FACILITY_CODE","ORIS_BOILER_ID","IPM_YN","DATA_SOURCE","STACK_DEFAULT_FLAG","LOCATION_DEFAULTS_FLAG","YEAR"
#EXPORT_DATE=Mon Apr 26 15:47:00 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"48012","040591 ","COMB ","FLARE "," ","PCP LINDBERGH 12-36 ","31000160 ","01","01",-9,-9,-9,-9,-9,"0000"," ","-9 ","L",-110.47,53.789999999999999,,"SO2 ",0.20999999999999999,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
"48007","028002 ","COMB ","PROP "," ","FIRST ALBERTA LEELA 104/4-26 ","10201002 ","01","01",-9,-9,-9,-9,-9,"0000"," ","-9 ","L",-110.61,52.289999999999999,,"SO2 ",1.0066625275049e-06,,0,100,-9,-9,"","","","","","","","2006",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "mexico_point_border_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE POINT SOURCE INVENTORY
#COUNTRY MEXICO
#YEAR 1999
#DESC MEXICO BORDER STATES ONLY
#DESC CLIENT: WESTERN REGIONAL AIR PARTNERSHIP (WRAP)
#DESC MEXICO NATIONAL EMISSIONS INVENTORY, VER. 2.2, FOR THE SIX NORTHERN BORDER STATES.
#DESC IDA CONVERSION BY MS. STACIE ENOCH, EASTERN RESEARCH GROUP, INC
#DESC ON OCTOBER 27, 2006
#DESC MINOR REVISIONS BY MR. REGI OOMMEN, EASTERN RESEARCH GROUP, INC ON JANUARY 18, 2007
#DATA CO NH3 NOX PM10 PM2_5 SO2 VOC
#EXPORT_DATE=Mon Apr 26 15:47:06 EDT 2010
#EXPORT_VERSION_NAME=update stack diameter at 1 stack
#EXPORT_VERSION_NUMBER=1
#REV_HISTORY 03/03/2008 Rich Mason. What: old stack diameter was 777.55, new one, calc from flowrate & velocity indicated old value had truncation issue Why: stack diameter error
2 102001001 1 1 INDUSTRIA NAVAL DE CALIFORNIA S.A. DE C.31499900 29.81.8044141. 37.08449 14.50131 0 342931.863611-116.6108 4.94 0.01353425 0.0 0.07 1.917808E-4 0.0 9.78 0.02679452 0.0 9.42 0.02580822 0.0 0.07 1.917808E-4 0.0 7750.4 21.23397 0.0
2 102001002 1 1 CEMEX MEXICO S.A. DE C.V. PLANTA ENSENAD30500600 74.03.2808175. 418.8144 49.54068 0 324131.863611-116.6108 22.61 0.0619452 0.0 10.66 0.02920548 0.0 7.18 0.01967123 0.0 268.62 0.7359452 0.0
`,
},
testData{
name: "mexico_point_interior_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE POINT SOURCE INVENTORY
#COUNTRY MEXICO
#YEAR 1999
#DESC WESTERN REGIONAL AIR PARTNERSHIP (WRAP)
#DESC INVENTORY OF LOWER TWENTY-SIX STATES FOR MEXICO
#DESC VERSION 1 OF 1999 MEXICO NEI - 26 INTERIOR STATES
#DESC IDA CONVERSION BY MS. STACIE ENOCH, EASTERN RESEARCH GROUP, INC
#DESC ON August 18, 2006
#DESC FILE REVISED JANUARY 8, 2007. NULL GAS FLOW RATES WERE SET TO 0
#DATA CO NH3 NOX PM10 PM2_5 SO2 VOC
#EXPORT_DATE=Mon Apr 26 15:46:59 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
1 1311211 1 1 PASTEURIZADORA AGUASCALIENTES S.A DE C.V302030 58.43.2964205. 392.4562 45.9856 0 202321.814615 -102.286 1.64068 0.004495013 0.0 8.861478 0.02427802 0.0 1.053148 0.002885337 0.0 0.6859682 0.001879365 0.0 32.89054 0.09011105 0.0 0.3592432 9.842279E-4 0.0
1 1311212 1 1 Evaporadora Mexicana, S.A. de C.V. 302030 58.43.2964205. 392.4562 45.9856 0 202321.814615 -102.286 5.199711 0.01424578 0.0 48.74904 0.133559 0.0 28.47313 0.07800858 0.0 20.56207 0.05633444 0.0 616.7692 1.689778 0.0 1.080706 0.002960838 0.0
`,
},
testData{
name: "point_offshore_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Inventory for CAPS
#COUNTRY US
#YEAR 2005
#DESC ANNUAL ptnonipm offshore oil (FIPS=85000 in original PQA file) -changed to FIPS=99000
#DESC US (including AK and HI), PR, VI, and Tribal
#DESC October 21, 2008 version of 2005 V2 NEI, original PQA file name: ptinv_point_cap2005_11062008_orl.txt
#DESC ptnonIPM AFTER TF: split and TF applied using split_point_ORL_IPM_2005v2_applyTF_20nov2008.sas
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="12/31/2005 23:59"
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=ptnonipm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="2005 Platform, v2"
#DESC FIPS,PLANTID,POINTID,STACKID,SEGMENT,PLANT,SCC,ERPTYPE,SRCTYPE,STKHGT,STKDIAM,STKTEMP,STKFLOW,STKVEL,SIC,MACT,NAICS,CTYPE,XLOC,YLOC,UTMZ,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,CPRI,CSEC,NEI_UNIQUE_ID,ORIS_FACILITY_CODE,ORIS_BOILER_ID,IPM_YN,DATA_SOURCE,STACK_DEFAULT_FLAG,LOCATION_DEFAULT_FLAG,YEAR,TRIBAL_CODE,HORIZONTAL_AREA_FUGITIVE,RELEASE_HEIGHT_FUGITIVE,ZIPCODE,NAICS_FLAG,SIC_FLAG,MACT_FLAG,PROCESS_MACT_COMPLIANCE_STATUS,IPM_FACILITY,IPM_UNIT,BART_SOURCE,BART_UNIT,CONTROL_STATUS,START_DATE,END_DATE,WINTER_THROUGHPUT_PCT,SPRING_THROUGHPUT_PCT,SUMMER_THROUGHPUT_PCT,FALL_THROUGHPUT_PCT,ANNUAL_AVG_DAYS_PER_WEEK,ANNUAL_AVG_WEEKS_PER_YEAR,ANNUAL_AVG_HOURS_PER_DAY,ANNUAL_AVG_HOURS_PER_YEAR,PERIOD_DAYS_PER_WEEK,PERIOD_WEEKS_PER_PERIOD,PERIOD_HOURS_PER_DAY,PERIOD_HOURS_PER_PERIOD
#EXPORT_DATE=Mon Apr 26 15:47:08 EDT 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"99000","10063-1","BOI-01","BOI-01","BO>100","SPNResources,LLC(MMSID=02636)Platfo","10200601","02"," ",40,1,400,3.92699,5,"1311","none","211111","L",-93.557173000000006,28.242024000000001,-9,"CO",8.7443999999999998e-05,-9,,,,,"NEIMMS-10063-1"," "," "," ","G","00000"," ","2005","000",,,"77073"," "," "," "," "," "," "," "," ","NA","20050101","20051231",,,,,,,,,,,24,1464,,,,,,,
"99000","10121-1","BOI-01","BOI-01","BO>100","TheHoustonExplorationCompany(MMSID=","10200601","02"," ",67,1,400,3.92699,5,"1311","none","211111","L",-93.899291000000005,28.395147000000001,-9,"CO",0.14607599939999999,-9,,,,,"NEIMMS-10121-1"," "," "," ","G","00000"," ","2005","000",,,"77002-5215"," "," "," "," "," "," "," "," ","NA","20050101","20051231",,,,,,,,,,,24,8759,,,,,,,
`,
},
testData{
name: "alm_caps_2005",
freq: Annually,
period: Annual,
fileData: `#ORL NONROAD ALM
#TYPE NonRoad ALM Inventory for CAPS
#COUNTRY US
#YEAR 2002
#DESC ANNUAL
#DESC US (including AK and HI), PR, VI
#DESC March 27, 2007 version of NEI
#DESC Pollutants in file are CO, NH3, NOX, PM10, PM2_5, SO2, VOC
#DESC
#DESC Mar 28 2007, C. Allen: removed SCCs 2285002015, 2285004015, and 2285006015
#DESC Nov 19 2007: C. Allen removed C3 SCCs (2280003100, 2280003200)
#DESC Feb 20 2009: R. Mason removed all aircraft SCCs via UNIX grep '"2275' -for use with 2005v2 point inventory
#DESC Based on V1 (tribal data removed) of EMF dataset export arinv_alm_no_c3_cap2002v3_30jul2008_v1_orl.txt
#DESC "FIPS","SCC","POLCODE","ANN_EMS","AVD_EMS","CEFF","REFF","RPEN","SRCTYPE","DATA_SOURCE","YEAR","TRIBAL_CODE","START_DATE","END_DATE","WINTER_THROUGHPUT_PCT","SPRING_THROUGHPUT_PCT","SUMMER_THROUGHPUT_PCT","FALL_THROUGHPUT_PCT","ANNUAL_AVG_DAYS_PER_WEEK","ANNUAL_AVG_WEEKS_PER_YEAR","ANNUAL_AVG_HOURS_PER_DAY","ANNUAL_AVG_HOURS_PER_YEAR","PERIOD_DAYS_PER_WEEK","PERIOD_WEEKS_PER_PERIOD","PERIOD_HOURS_PER_DAY","PERIOD_HOURS_PER_PERIOD","PRIMARY_DEVICE_TYPE_CODE"
#ORL NONROAD ALM
#TYPE NonRoad ALM Inventory for CAPS
#COUNTRY US
#YEAR 2002
#DESC ANNUAL
#DESC US (including AK and HI), PR, VI
#DESC March 27, 2007 version of NEI
#DESC Pollutants in file are CO, NH3, NOX, PM10, PM2_5, SO2, VOC
#DESC
#DESC Mar 28 2007, C. Allen: removed SCCs 2285002015, 2285004015, and 2285006015
#DESC Nov 19 2007: C. Allen removed C3 SCCs (2280003100, 2280003200)
#DESC "FIPS","SCC","POLCODE","ANN_EMS","AVD_EMS","CEFF","REFF","RPEN","SRCTYPE","DATA_SOURCE","YEAR","TRIBAL_CODE","START_DATE","END_DATE","WINTER_THROUGHPUT_PCT","SPRING_THROUGHPUT_PCT","SUMMER_THROUGHPUT_PCT","FALL_THROUGHPUT_PCT","ANNUAL_AVG_DAYS_PER_WEEK","ANNUAL_AVG_WEEKS_PER_YEAR","ANNUAL_AVG_HOURS_PER_DAY","ANNUAL_AVG_HOURS_PER_YEAR","PERIOD_DAYS_PER_WEEK","PERIOD_WEEKS_PER_PERIOD","PERIOD_HOURS_PER_DAY","PERIOD_HOURS_PER_PERIOD","PRIMARY_DEVICE_TYPE_CODE"
#REV_HISTORY 07/30/2008 Madeleine Strum. What: removed records with FIPS like '88%' (tribal data) Why: County-level tribal data cannot be spatially allocated andgets dropped in SMOKE and we don't want it in our summaries
#EXPORT_DATE=Wed Dec 22 12:11:52 EST 2010
#EXPORT_VERSION_NAME=changes for 2005cs
#EXPORT_VERSION_NUMBER=1
#REV_HISTORY v1(12/22/2010) Chris Allen. Updated diesel CMV port and underway emissions (SCC=2280002100 and 2280002200), NOX/SO2/PM, Delaware with those in EPA-HQ-OAR-2009-0491-3838.3_ram.xlsx For TR1 Final (2005cs)
"26117","2280002100","CO",0.00076158035949999996,,,,,"03","S","2002","000","20020101","20021231",,,,,,,,,,,,,,,,
"26117","2280002100","NOX",0.0043735907157000002,,,,,"03","S","2002","000","20020101","20021231",,,,,,,,,,,,,,,,
`,
},
testData{
name: "nonpt_2005",
freq: Annually,
period: Annual,
fileData: `#ORL NONPOINT
#TYPE NonPoint Inventory for CAPS
#COUNTRY US
#YEAR 2002
#DESC ANNUAL
#DESC US (including AK and HI), PR, VI
#DESC October 27, 2006 version of NEI
#DESC oarea sector: nonpt_split.sas split out from arinv_non_point_cap2002nei_27oct2006_orl.txt
#DESC 02nov2006: non-point split into oarea minus ag and afdust and removed ALL catastrophic releases (SCC=28300XX000)
#DESC 14nov2006: removed invalid SCC (2501060300) that was in RI did this in EMF
#DESC 09jan2007: removed two fire SCCs (2810001000 and 2810015000) using "work/remove_fires_2.csh" (C. Allen)
#DESC Additional Records 08mar2007- NY Refueling for CAPS, February 26, 2007 version from Roy Huntley
#DESC 04jan2008, C. Allen: Modified residential wood combustion (RWC) emissions. Original file was "arinv_nonpt_cap2002_nopfc_08mar2007_v0_orl.txt"
#DESC 08Sep2008, Re-calculated VOC for non-California SCC=2104008000 and 2104008001
#DESC "FIPS","SCC","SIC","MACT","SRCTYPE","NAICS","POLCODE","ANN_EMS","AVD_EMS","CEFF","REFF","RPEN","CPRI","CSEC","DATA_SOURCE","YEAR","TRIBAL_CODE","MACT_FLAG","PROCESS_MACT_COMPLIANCE_STATUS","START_DATE","END_DATE","WINTER_THROUGHPUT_PCT","SPRING_THROUGHPUT_PCT","SUMMER_THROUGHPUT_PCT","FALL_THROUGHPUT_PCT","ANNUAL_AVG_DAYS_PER_WEEK","ANNUAL_AVG_WEEKS_PER_YEAR","ANNUAL_AVG_HOURS_PER_DAY","ANNUAL_AVG_HOURS_PER_YEAR","PERIOD_DAYS_PER_WEEK","PERIOD_WEEKS_PER_PERIOD","PERIOD_HOURS_PER_DAY","PERIOD_HOURS_PER_PERIOD"
#EMF_START_DATE=1/1/2002
#EMF_END_DATE=12/31/2002
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=nonpt
#EMF_REGION=US
#EMF_PROJECT="2002 Platform, v3.1"
#EXPORT_DATE=Tue Jan 04 13:43:29 EST 2011
#EXPORT_VERSION_NAME=Nebraska corrections for 2005cs
#EXPORT_VERSION_NUMBER=5
#REV_HISTORY v1(02/04/2009) Rich Mason. removed WRAP states other than California Oil and GAS emissions, SCCs=23100XXXXX WRAP emissions provided separately
#REV_HISTORY v2(08/26/2009) Rich Mason. copied PM10 CEFF to PM2.5 CEFF for SCC=2610000400 in FIPS=18019,18043,18127 accuracy when considering direct PM controls
#REV_HISTORY v3(05/28/2010) Rich Mason. Oklahoma NEI oil and gas (2310000000) removed OK DEQ replaced data May 2010
#REV_HISTORY v4(12/16/2010) Chris Allen. For Delaware, replaced NOX/SO2/PM2.5 emissions for Fuel Combustion and Open Burning with those in Delaware_EPA?HQ?OAR200904913823_NODA_comments_fnl.xls For TR1 Final (2005cs)
#REV_HISTORY v4(12/16/2010) Chris Allen. For South Carolina, removed all SCC=2102005000 emissions for all pollutants For TR1 Final (2005cs)
#REV_HISTORY v4(12/16/2010) Chris Allen. For Delaware, replaced PM10 emissions for Fuel Combustion and Open Burning: new_PM10 = (old_PM10/old_PM2_5)*new_PM2_5. PM10 was not provided in the spreadsheet used to make NOX/SO2/PM2.5 changes. For TR1 Final (2005cs)
#REV_HISTORY v4(12/16/2010) Chris Allen. Removed Delaware residential wood emissions (SCC=2104008*) for NOX, SO2, PM10, PM2_5 These will be replaced in the next revision
#REV_HISTORY v4(12/16/2010) Chris Allen. Added Delaware residential wood emissions, NOX/SO2/PM10/PM2_5 (where PM10 = PM2_5), from Delaware_EPA?HQ?OAR200904913823_NODA_comments_fnl.xls. SCCs in that spreadsheet were mapped to those already part of the 2005 platform. For TR1 Final (2005cs)
#REV_HISTORY v4(12/17/2010) Chris Allen. Completing earlier Delaware changes, removed NOX/SO2/PM emissions for 2102001000, 2102011000, 2103011000, 2610000500 Replacement emissions for these SCCs not provided in Delaware_EPA?HQ?OAR200904913823_NODA_comments_fnl.xls, which contains the entire set of Fuel Combustion and Open Burning emissions
#REV_HISTORY v4(12/20/2010) Chris Allen. Removed all Nebraska emissions for SCC=2102002000 Will be replaced with CENRAP emissions in the next revision
#REV_HISTORY v4(12/20/2010) Chris Allen. Added 2002 CENRAP version G inventory emissions for Nebraska, SCC=2102002000, all pollutants For TR1 Final (2005cs)
#REV_HISTORY v5(01/04/2011) Chris Allen. For Nebraska, removed all emissions for eight fuel combustion SCCs Will be replaced in the next step
#REV_HISTORY v5(01/04/2011) Chris Allen. Added 2002 CENRAP version G inventory emissions for Nebraska, eight fuel combustion SCCs, all pollutants For TR1 Final (2005cs); original emissions were removed in the last revision
"01001","2102002000",,"0107-1","02",,"CO",0.01,,,0,0,,,"S-02-X","2002","000","SCC-D","03","20020101","20021231",25,25,25,25,6,0,0,0,0,0,0,0,,,,
"01001","2102002000",,"0107-1","02",,"NH3",0.00079090910000000005,,,,,,,"S-02-X-NR","2002","000","SCC-D","03","20020101","20021231",25,25,25,25,6,0,0,0,0,0,0,0,,,,
`,
},
testData{
name: "nonpt_mexico_2005",
freq: Annually,
period: Annual,
fileData: `#IDA
#TYPE NONPOINT SOURCE INVENTORY
#COUNTRY MEXICO
#YEAR 1999
#DESC MEXICO NATIONAL EMISSIONS INVENTORY, VER. 2.2, FOR THE SIX NORTHERN BORDER STATES.
#DESC PREPARED FOR THE WGA, EPA, COMMISSION FOR ENVIRONMENTAL COOPERATION, MEXICO'S
#DESC SECRETARIAT OF NATURAL RESOURCES AND THE ENVIRONMENT (SEMARNAT), AND WRAP.
#DESC PREPARED BY EASTERN RESEARCH GROUP, INC. (ERG), SACRAMENTO, CA.
#DESC DOMAIN: BAJA CALIFORNIA, SONORA, CHIHUAHUA, COAHUILA, NUEVO LEON, AND TAMAULIPAS.
#DESC CATEGORIES INCLUDE TRADITIONAL "AREA" SOURCES, PLUS LOCOMOTIVES, AIRCRAFT, AND
#DESC COMMERICAL MARINE VESSELS; WILDFIRE AND AGRICULTURAL BURNING.
#DESC ALSO INCLUDED ARE UNIQUE MEXICAN SOURCES/SCCS: BORDER CROSSINGS, BRICK KILNS,
#DESC LPG DISTRIBUTION (NOT VIA PIPELINES), AND DOMESTIC AMMONIA.
#DESC AREA SOURCES DO NOT INCLUDE PAVED AND UNPAVED ROAD DUST, AND WINDBLOWN DUST.
#DESC FOR DETAILS ON MEXICO NEI DEVELOPMENT, INCLUDING EMISSIONS SUMMARIES, REFER TO:
#DESC "MEXICO NATIONAL EMISSIONS INVENTORY, 1999. DRAFT FINAL." ERG, NOVEMBER 2005.
#DESC IDA CONVERSION BY ERG, MORRISVILLE, NC, ON OCTOBER 27, 2006.
#DESC Removed SCC 5555555555 Domestic Ammonia, A. Beidler, Dec. 21, 2006
#DATA CO NH3 NOX PM10 PM2_5 SO2 VOC
#EXPORT_DATE=Fri Jan 07 15:07:30 EST 2011
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
2 121020040004.157395360.01139012 0.0 0.0 19.95549770.05467259 0.831479070.00227802 0.19955498 5.4672E-4 4.961953160.01359439 0.16629581 4.556E-4
2 12102005000 12.2804450.03364505 0.0 0.0 115.436180.31626349 78.59968560.21534159 51.18119040.14022243 1426.263423.90757107 0.687704920.00188412
`,
},
testData{
name: "ptinv_cem_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Source Inventory for CAPS
#COUNTRY US
#YEAR 2005
#DESC Annual PTIPM
#DESC US excluding AK, PR, VI and HI. Includes Tribal
#DESC NEI 2005 Version 2.0
#DESC Original inventory is EMF dataset ptipm_cap2005v2_revised12mar2009, version 5 (used in 2005cr_05b).
#DESC Starting from that inventory, the following changes were made for 2005cs_05b:
#DESC - Added ORIS IDs to_NEI UNIQUE_ID NEI2VA00040 (C. Allen, CSC, 11/30/2010)
#DESC ORIS_FACILITY_CODE is 7839, ORIS_BOILER_IDs are 1 and 2 (for POINTIDs 1 and 2, respectively)
#DESC - Applied PM10 and PM2_5 reduction factors for Natural Gas (boilers and turbines),Process Gas,and IGCC Units
#DESC per Madeleine Strum's spreadsheet 2005cr_adjustmnts3.xlsx (C. Allen, CSC 12/1/2010)
#DESC - Applied Pechan lat/lon coordinate fixes by ORIS FACILITY ID according to
#DESC NEEDS410SupplementalFileLatLon111910fromPechanRev120310comparisonwithIPM.xls (C. Allen, CSC 12/7/2010)
#DESC TD_creating_2005cs_ptipm_and_intermediate_ptnonipm_20DEC10_v4.xlsx changes (J. Beidler, CSC 12/21/2010)
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="12/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=ptipm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Transport Rule 1 Final (/tr1_f)"
#DESC FIPS,PLANTID,POINTID,STACKID,SEGMENT,PLANT,SCC,ERPTYPE,SRCTYPE,STKHGT,STKDIAM,STKTEMP,STKFLOW,STKVEL,SIC,MACT,NAICS,CTYPE,XLOC,YLOC,UTMZ,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,CPRI,CSEC,NEI_UNIQUE_ID,ORIS_FACILITY_CODE,ORIS_BOILER_ID,IPM_YN,DATA_SOURCE,STACK_DEFAULT_FLAG,LOCATION_DEFAULT_FLAG,YEAR,TRIBAL_CODE,HORIZONTAL_AREA_FUGITIVE,RELEASE_HEIGHT_FUGITIVE,ZIPCODE,NAICS_FLAG,MACT_FLAG,PROCESS_MACT_COMPLIANCE_STATUS,IPM_FACILITY,IPM_UNIT,BART_SOURCE,BART_UNIT,CONTROL_STATUS,START_DATE,END_DATE,WINTER_THROUGHPUT_PCT,SPRING_THROUGHPUT_PCT,SUMMER_THROUGHPUT_PCT,FALL_THROUGHPUT_PCT,ANNUAL_AVG_DAYS_PER_WEEK,ANNUAL_AVG_WEEKS_PER_YEAR,ANNUAL_AVG_HOURS_PER_DAY,ANNUAL_AVG_HOURS_PER_YEAR,PERIOD_DAYS_PER_WEEK,PERIOD_WEEKS_PER_PERIOD,PERIOD_HOURS_PER_DAY,PERIOD_HOURS_PER_PERIOD,DESIGN_CAPACITY
#EXPORT_DATE=Wed Dec 29 13:07:20 EST 2010
#EXPORT_VERSION_NAME=Add FAKECEM72 and 82
#EXPORT_VERSION_NUMBER=1
#REV_HISTORY v1(12/29/2010) James Beidler. Added FAKECEM72 and FAKECEM82 NOX and SO2 For missing plants
"18043","00004","002","1","1","PSIENERGY-GALLAGHER","10100202","02","01",441.05000000000001,17.201000000000001,303,15176.16,65.307599999999994,"4911","1808-1","221112","L",-85.838099999999997,38.263599999999997,-9,"CO",92.247893099999999,,,,,,"NEI31676","1008","2","Y","E-E","11111"," ","2005","000",,,"47150",,,,"01",,"Y",,,"NA","20050101","20051231",,,,,,,,,,,,,,,,,,,
"18043","00004","002","1","1","PSIENERGY-GALLAGHER","10100202","02","01",441.05000000000001,17.201000000000001,303,15176.16,65.307599999999994,"4911","1808-1","221112","L",-85.838099999999997,38.263599999999997,-9,"NH3",0.1042403001,,,,,,"NEI31676","1008","2","Y","E-E","11111"," ","2005","000",,,"47150",,,,"01",,"Y",,,"NA","20050101","20051231",,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "ptnonipm_cap_2005",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Inventory for CAPS
#COUNTRY US
#YEAR 2005
#DESC ANNUAL ptnonipm NOT including offshore oil (FIPS=85000 in original PQA file)
#DESC US (including AK and HI), PR, VI, and Tribal
#DESC October 21, 2008 version of 2005 V2 NEI, original PQA file name: ptinv_point_cap2005_11062008_orl.txt
#DESC ptnonIPM AFTER TF: split and TF applied using split_point_ORL_IPM_2005v2_applyTF_20nov2008.sas
#DESC TD_creating_2005cs_ptipm_and_intermediate_ptnonipm_20DEC10_v4.xlsx changes (J. Beidler, CSC 12/21/2010)
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="12/31/2005 23:59"
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=ptnonipm
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="2005 Platform, v2"
#DESC FIPS,PLANTID,POINTID,STACKID,SEGMENT,PLANT,SCC,ERPTYPE,SRCTYPE,STKHGT,STKDIAM,STKTEMP,STKFLOW,STKVEL,SIC,MACT,NAICS,CTYPE,XLOC,YLOC,UTMZ,POLCODE,ANN_EMIS,AVD_EMIS,CEFF,REFF,CPRI,CSEC,NEI_UNIQUE_ID,ORIS_FACILITY_CODE,ORIS_BOILER_ID,IPM_YN,DATA_SOURCE,STACK_DEFAULT_FLAG,LOCATION_DEFAULT_FLAG,YEAR,TRIBAL_CODE,HORIZONTAL_AREA_FUGITIVE,RELEASE_HEIGHT_FUGITIVE,ZIPCODE,NAICS_FLAG,SIC_FLAG,MACT_FLAG,PROCESS_MACT_COMPLIANCE_STATUS,IPM_FACILITY,IPM_UNIT,BART_SOURCE,BART_UNIT,CONTROL_STATUS,START_DATE,END_DATE,WINTER_THROUGHPUT_PCT,SPRING_THROUGHPUT_PCT,SUMMER_THROUGHPUT_PCT,FALL_THROUGHPUT_PCT,ANNUAL_AVG_DAYS_PER_WEEK,ANNUAL_AVG_WEEKS_PER_YEAR,ANNUAL_AVG_HOURS_PER_DAY,ANNUAL_AVG_HOURS_PER_YEAR,PERIOD_DAYS_PER_WEEK,PERIOD_WEEKS_PER_PERIOD,PERIOD_HOURS_PER_DAY,PERIOD_HOURS_PER_PERIOD
#REV_HISTORY 01/09/2009 Madeleine Strum. What: begain removing records Why: duplicates
#REV_HISTORY 01/09/2009 Madeleine Strum. What: deleted more records Why: duplicates
#REV_HISTORY 01/09/2009 Madeleine Strum. What: removed records with fips=30777 Why: invalid fips, point sources located in northern Wyoming near Montana and emissions not that large.
#REV_HISTORY 01/16/2009 Allan Beidler. What: fixed Lat/Lon coordinates for larger sources Why: Didn't match the FIPS code
#REV_HISTORY 01/16/2009 Allan Beidler. What: Dropped sources located well in the ocean or lakes Why: Outside of US
#REV_HISTORY v1(06/14/2010) Madeleine Strum. deleted all records associated with both kilns - 1 and 2- from Atlanta LaFarge Cement Plant Per Dan McCain, George DEP,unit 2 shut down in 2002 and the other unit in 2004 Dan: (404)362-2778. Confrimed by SPPD project lead Elineth. Grinding operations for this facility remain in the NEI
#REV_HISTORY v1(06/14/2010) Chris Allen. Removed 175 duplicate records. See /orchid/share/em_v4/inputs/2005cr_05b/ptnonipm/work/2005ck_ptnonipm_cap_true_duplicates.csv for list; all records with year=2002 in that file were removed These records were duplicates in that records from both 2002 and 2005 were in the inventory, but weren'tcaught before due to extra leading zeroes in the plant IDs, point IDs, etc for one year or the other
#REV_HISTORY v3(07/01/2010) Madeleine Strum. REmoved BlueRidge Paper - CantonMill records that were for year 2006 (none were state-submitted). In this case: Plantid= '3708700159' and (DATA_SOURCE = 'R' or year='2006') these records double count state-reported emissions
#REV_HISTORY v3(07/08/2010) Madeleine Strum. Removed Unit 017 from Domtar Paper FIPS=47163, plantid='0022', and pointid = '017' Email from James.R Smith, Division ofAir Pollution Control , state of Tennessee, 8July2010 confirmed: Yes I did hear back from Domtar. We had a conference call on yesterday evening. They are re-submitting their form to us. They stated that unit 017 is not operating. It is being removed from the site but not all of it is gone completely. They stated that they submitted a notice to EPA back in 2003 about the changes. The unit was taken out of commission from operation sometime in 2002.
#REV_HISTORY v4(07/08/2010) Madeleine Strum. changed unit 039 of domtar paper "end date" back to 20021231 mistakenly changed unit 039 enddate to 2005 when I was changing unit 041 so I needed to change it back
#REV_HISTORY v3(07/01/2010) Madeleine Strum. removed unit B001from P. H. Glatfelter Company - Chillicothe Facility (0671010028). No other units were removed as theywere confirmed to emit in 2008 by the Ohio EPA (tom Velais) EIS indicates that unit B001 shut down in 2002 and OHIO State contact (Tom Velais, "Tom Velalis" <[email protected]>) confirmed it shut down mid 2002. email from Velais sent to Strum: 07/01/2010 03:06 PM
#REV_HISTORY v3(07/08/2010) Madeleine Strum. pointid 041, plantid = '420470005' which is DOMTAR PAPER and poll in ('SO2', 'NOX') so2 and nox to reflect 2005 data provided by PA DEP in a fax details in reference SO2 was from 2002 and did not reflect the fact that the boilers added scrubber so2002 emissions were overestimated
#REV_HISTORY v5(07/22/2010) Madeleine Strum. Removed perceived duplicate records- removed state submitted 2005 data and used the Industry-based 2006 data gathered by SPPD which was very similar in magnitude of emissions. Chose to keep the SPPD data because it had all the pollutants present whereas state data had only a subset. For the same unitid, stackid and SCC there were two records for the same polllutant with different data source codes but similar emissions values. they appeared to be duplicates so they were removed.
#REV_HISTORY v2(06/30/2010) Rich Mason. lat/lons for 3 NEI plantsReplaced '-95.8027' with '-95.7832' for column xloc using filter 'fips = '27083' and plantid = '2708300038'' Replaced '44.4710' with '44.4753' for column yloc using filter 'fips = '27083' and plantid = '2708300038'' Replaced '-88.6450' with '-88.6518' for column xloc using filter 'fips = '55139' and plantid = '471006470'' Replaced '44.0700' with '43.981' for column yloc using filter 'fips = '55139' and plantid = '471006470'' Also changedFIPS='20173' and plantid='0053'. RFS2 OTAQ x/y's were better
#REV_HISTORY v6(08/16/2010) Madeleine Strum. Replaced '45063' with '45017' for column fips using filter 'NEI_UNIQUE_ID = 'NEI41393'' chaged to facilitate future year tagging and projections From: 45063 (Lexington) to 45017 (Calhoun) because this facility straddles both counties, but Boiler MACT ICR database puts all the boilers in 45017 (Calhoun)
#EXPORT_DATE=Thu Jan 06 09:56:16 EST 2011
#EXPORT_VERSION_NAME=DE PM reduction at IKON
#EXPORT_VERSION_NUMBER=4
#REV_HISTORY v1(12/28/2010) Allan Beidler. plantid = '11500021', F4 removed not in spreadsheet
#REV_HISTORY v2(01/03/2011) Rich Mason. removed 2 WV facilities erroneously not deleted. docket #2525 fips=54039, plantid=0002, fips=54079, plantid=0001
#REV_HISTORY v3(01/04/2011) Allan Beidler. added 13115,11500021, F4 & F5 should not have ben deleted
#REV_HISTORY v4(01/06/2011) Rich Mason. PM2.5 and PM10 reduced at plantid=1000300087, pointid=007. PM10=oldPM10/PM25 * newPM25. segment1=120.2960/103.2186*2=2.3309,segment2=367.0724/314.9622*2=2.3309 comment in docket 3838.3.xls
"06001","01130314665","4","63","1","HEWLETTPACKARDCORPORATION","20200102","02","02",26.489999999999998,1.4179999999999999,490,95.114170000000001,60.211799999999997,"3751","0105-2","336991","L",-121.926106,37.469099,-9,"CO",0.014,,,,,,"NEI2CA314665"," "," ","","S","11111","Exact","2005","000",,,"94538"," "," ","SCC-Default","03"," "," ",""," ","NA","20050101","20051231",25,25,25,25,7,52,24,,7,52,24,,,,,,,,
"06007","041604670","1","1","1","WORLDCOM","20100105","02"," ",30.149999999999999,1.667,588,135.85599999999999,62.247900000000001,"4813","NONE","517","L",-121.87587000000001,39.837409999999998,-9,"NOX",0.13,,,,,,"NEI2CA604670"," "," ","","S","22222","SITEAVG","2005","000",,,"95926"," "," "," "," "," "," "," "," ","NA","20050101","20051231",,,,,,,,,7,52,24,,,,,,,,
`,
},
testData{
name: "secac3_2005_caps",
freq: Annually,
period: Annual,
fileData: `#ORL POINT
#TYPE Point Inventory for CAPs only
#COUNTRY US
#YEAR 2005
#DESC ANNUAL
#DESC Ocean Going Class 3 Commercial Marine: Port and Underway
#DESC See http://coast.cms.udel.edu/NorthAmericanSTEEM/ This inventory NOT on that website, rather, is a RERUN provided by Penny Carey 6/12/2007
#DESC R Mason converted ANNUAL raster data to SMOKE PTINV using mk_SECA_2002pf31_rerun_JUNE2008.sas
#DESC ** THIS INVENTORY contains emissions for all US states and non-US throughout 36km CMAQ domain...
#DESC MODIFIED June2010 to project to 2005 and future years (by pollutant and region) using OTAQ factors C3 ctl inv adj_4-19-10.xls
#DESC June2010 PC SAS code mk_ECA_IMO_GISbased_llxref.sas (initial grid cell to FIPS/growth region assignments) then ...
#DESC ..OCTOBER2010 PC SAS code C:\CAIR\TR1\NODA Fall 2010\mk_ECA_IMO_GISbased_llxref_FALL2010.sas then garnet SAS mk_ecaIMO_2002_2005_20XX_FALL2010.sas to create this file
#DESC JUNE2010: GIS polygons used to assign Canadian FIPS for ECA-IMO areas in EEZ (British Columbia and deafulted to Nova Scotia for Atlantic Canada (East Coast region)...
#DESC Gulf Coast region (affects projection factors) redefined to include all waterways that impact the Gulf.
#DESC CONTAINS FIPS and LAT/LON from CSC xref, modified June2010 for ECA-IMO control regions outside contiguous US **
#DESC MODIFIED OCTOBER 2010: 1) Used NEI2008 CMV shapefiles to restrict US FIPS to state waters (~3-10 miles offshore),...
#DESC 2) this caused new FIPS assignments of 8500X for offshore but within EEZ waters for region GFs, 3) port shapefile
#DESC 4) Suffolk county NY offshore was erroneously assigned as 36013 (from Laurel's older EEZ shipping lane polygon file)..
#DESC ... this was replaced with 85004 and more importantly, with EC not GL growth factors. OTHERWISE, EMISSIONS ARE UNCHANGED
#DESC NEI2008 website with polygons: ftp://ftp.epa.gov/EmisInventory/2008_nei/mobile/rail_cmv_shapefiles/shipping_lanes_111309.zip and port_032310.zip
#DESC Port shapefile used to assign grid cells as port (SCC=2280003200) if within 2km, otherwise assigned as underway (2280003100)
#DESC Canada (FIPS=120000,135000, and 159000) are in separate ORL file
#DESC MODIFIED 12/9/10 on garnet .../2005cs/mk_ecaIMO_2005_20XX_with_DE_TR1updates.sas to incorporate DE TR1 NODA C3 cty-level tots for PM2.5, SO2, and NOX -port and underway.
#DESC NEW DE emissions for 2005, 2012 and 2014 from docket EPA-HQ-OAR-2009-0491-3838.3.xls (NODA 11/22/2010) **
#DESC Also scaled PM10 same ratio as PM2.5 was adjusted (by county/SCC) and fixed SCCs -they were backwards in OCT2010 ORL files!
#DESC FIPS,PLANTID (row),POINTID (column),STACKID (colrow),SEGMENT (region),PLANT,SCC,ERPTYPE,SRCTYPE,STKHGT,STKDIAM,STKTEMP,STKFLOW,STKVEL,SIC,MACT,NAICS,CTYPE,XLOC,YLOC,UTMZ,POLCODE,ANN_EMS
#EMF_START_DATE="1/1/2005 0:0"
#EMF_END_DATE="12/31/2005 0:0"
#EMF_TEMPORAL_RESOLUTION=Annual
#EMF_SECTOR=seca_c3
#EMF_COUNTRY="US"
#EMF_REGION="US"
#EMF_PROJECT="Transport Rule 1 Final(/tr1_f)"
#EXPORT_DATE=Fri Dec 10 08:52:40 EST 2010
#EXPORT_VERSION_NAME=Initial Version
#EXPORT_VERSION_NUMBER=0
"10001","1096","3159","31591096","EC","SECA_C3","2280003200","02","03",65.620000000000005,2.625,539.60000000000002,0,82.019999999999996,"",""," ","L",-75.492564130000005,39.364973204000002,,"NOX",12.878310506,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
"10001","1096","3160","31601096","EC","SECA_C3","2280003200","02","03",65.620000000000005,2.625,539.60000000000002,0,82.019999999999996,"",""," ","L",-75.456632400000004,39.364973204000002,,"NOX",80.512382521000006,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`,
},
testData{
name: "ptnonipm_2011",
freq: Annually,
period: Annual,
fileData: `#FORMAT=FF10_POINT
#COUNTRY=US
#YEAR=2011
#SELECTION_NAME=2011 NEI V2 with Biogenics
#INVENTORY_VERSION=General Purpose Release
#INVENTORY_LABEL=2011 NEI V2 with Biogenics
#CREATION_DATE=20140913 09:09
#CREATOR_NAME=Jonathan Miller
#VALUE_UNITS=TON
#INCLUDES_CAPS=true
#INCLUDES_HAPS=all
# Newly identified ptegu units removed from /garnet/oaqps/em_v6.2/2011platform/2011eg_nata_v6_11g/inputs/ptnonipm/ptnonipm_2011NEIv2_POINT_20140913_revised_20141007_09dec2014_v9.csv
# using /garnet/oaqps/em_v6.2/2011platform/work/point_neiv2_final/ptipm_final/remove_ptegu_from_ptnonipm.sas
#DATA_SET_ID="543;2011EPA_Airports;Laurel Driver;2011"
#DATA_SET_ID="780;2011EPA_BOEM;Ron Ryan;2011"