From 197a88788b50917b8d608e7112de3bb25e84adaa Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:32:16 -0600 Subject: [PATCH 01/15] incorporate the _nowcast_ changes into the Cornerstone FBS method --- .../ghg/GHG_national_Cornerstone_2017.yaml | 214 ++-- .../ghg/GHG_national_Cornerstone_2018.yaml | 181 ++-- .../ghg/GHG_national_Cornerstone_2019.yaml | 180 ++-- .../ghg/GHG_national_Cornerstone_2020.yaml | 181 ++-- .../ghg/GHG_national_Cornerstone_2021.yaml | 180 ++-- .../ghg/GHG_national_Cornerstone_2022.yaml | 171 +-- .../ghg/GHG_national_Cornerstone_2023.yaml | 171 +-- .../ghg/GHG_national_Cornerstone_2024.yaml | 171 +-- ...GHG_national_Cornerstone_nowcast_2017.yaml | 979 ------------------ ...GHG_national_Cornerstone_nowcast_2018.yaml | 948 ----------------- ...GHG_national_Cornerstone_nowcast_2019.yaml | 945 ----------------- ...GHG_national_Cornerstone_nowcast_2020.yaml | 945 ----------------- ...GHG_national_Cornerstone_nowcast_2021.yaml | 945 ----------------- ...GHG_national_Cornerstone_nowcast_2022.yaml | 936 ----------------- ...GHG_national_Cornerstone_nowcast_2023.yaml | 936 ----------------- ...GHG_national_Cornerstone_nowcast_2024.yaml | 939 ----------------- 16 files changed, 808 insertions(+), 8214 deletions(-) delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2017.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2018.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2019.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2020.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2021.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2022.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2023.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2024.yaml diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml index 9cfc9698..7af1dbf5 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml @@ -26,20 +26,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2018: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2017: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -85,19 +82,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -107,8 +98,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -117,8 +108,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -127,8 +126,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -137,8 +136,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -263,8 +262,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -316,8 +323,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -396,8 +411,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -408,8 +423,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -447,8 +462,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -464,8 +479,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -474,8 +489,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -484,8 +499,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -495,8 +510,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -523,8 +538,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -534,8 +549,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -545,26 +560,61 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + # EPA published no eGRID 2017, so 2017 is estimated from the two neighbouring + # eGRID years. They are NOT averaged in levels: 2017 was a trough for power + # sector emissions, not a point on the line between 2016 and 2018. The GHG + # inventory has electric power CO2 at 1808.9 MMT in 2016, 1732.0 in 2017 and + # 1753.4 in 2018 -- down 4.3% then back up 1.2% -- so a straight average puts + # 2017 2.8% too high and turns the 2017->2018 rise into a 1.5% fall. Almost + # all of that is natural gas (GHGI table 3-7: gas CO2 dips to 505.6 MMT in + # 2017 from 545.0 in 2016, then rebounds to 577.9 in 2018; coal is close to + # linear over the same three years). + # + # Instead each eGRID year is moved onto 2017 by the inventory's own ratio + # between the two years, and the two resulting estimates are averaged. eGRID + # supplies the plant-level composition, the inventory supplies the timing. + # The two estimates land at 1767.3 and 1769.0 MMT CO2 -- 0.10% apart, against + # an eGRID/GHGI level offset of 1.0203 in 2016 and 1.0214 in 2018, which is + # what makes the index credible here. + EPA_eGRID_electric: + FBS_datapull_fxn: !clean_function:flowbyclean average_flowby + index_source: + # Electric power sector CO2, the series this source replaced for 2018+. + # Only its 2017/2016 and 2017/2018 ratios are used, so the MMT CO2e unit + # and the boundary difference against eGRID both cancel. Table 3-7's + # all-gas total gives the same ratios to within 0.03%. + UMD_GHGIA_T_2_S1: + selection_fields: + ActivityProducedBy: Electric Power Sector + FlowName: CO2 + datasource_1: + EPA_eGRID_electric: + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: 2016 + year: 2016 + activity_to_sector_mapping: EPA_eGRID + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + datasource_2: + EPA_eGRID_electric: + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: 2018 + year: 2018 + activity_to_sector_mapping: EPA_eGRID + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + year: 2017 # target year: what the eGRID years are indexed onto UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -586,7 +636,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -598,8 +648,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -609,7 +659,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -621,8 +671,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -632,7 +682,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -709,7 +759,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -725,7 +775,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -746,7 +796,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -757,12 +807,13 @@ source_names: - '324121' - '324122' + natural_gas_neu: selection_fields: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -773,7 +824,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2017: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -817,6 +868,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -863,8 +915,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -874,8 +926,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -885,8 +937,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml index 9e9e8118..a8b41506 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml @@ -17,6 +17,11 @@ epa_ghgi_year: &epa_ghgi_year 2018 sources_to_cache: USDA_CoA_Cropland_NAICS: year: *coa_year + # Between censuses, blend 2017 and 2022 linearly. + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -26,20 +31,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2018: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2018: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -85,19 +87,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -107,8 +103,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -117,8 +113,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -127,8 +131,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -137,8 +141,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -263,8 +267,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -277,6 +289,10 @@ source_names: attribution_source: USDA_CoA_Cropland: year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -316,8 +332,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -396,8 +420,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -408,8 +432,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -447,8 +471,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -464,8 +488,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -474,8 +498,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -484,8 +508,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -495,8 +519,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -523,8 +547,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -534,8 +558,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -545,26 +569,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -586,7 +605,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -598,8 +617,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -609,7 +628,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -621,8 +640,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -632,7 +651,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -709,7 +728,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -725,7 +744,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -746,7 +765,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -757,12 +776,13 @@ source_names: - '324121' - '324122' + natural_gas_neu: selection_fields: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -773,7 +793,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2018: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -817,6 +837,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -863,8 +884,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -874,8 +895,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -885,8 +906,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml index 32b025d1..de95f064 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml @@ -14,6 +14,11 @@ epa_ghgi_year: &epa_ghgi_year 2019 sources_to_cache: USDA_CoA_Cropland_NAICS: year: *coa_year + # Between censuses, blend 2017 and 2022 linearly. + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -23,20 +28,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2018: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2019: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +84,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +100,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +110,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +128,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +138,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +264,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -274,6 +286,10 @@ source_names: attribution_source: USDA_CoA_Cropland: year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -313,8 +329,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +417,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +429,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +468,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +485,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +495,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +505,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +516,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +544,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +555,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +566,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +602,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +614,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +625,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +637,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +648,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +725,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +741,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +762,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -760,7 +779,7 @@ source_names: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -771,7 +790,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2019: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -815,6 +834,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -861,8 +881,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -872,8 +892,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -883,8 +903,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml index f2be5afc..ee5320f2 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml @@ -14,6 +14,11 @@ epa_ghgi_year: &epa_ghgi_year 2020 sources_to_cache: USDA_CoA_Cropland_NAICS: year: *coa_year + # Between censuses, blend 2017 and 2022 linearly. + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -23,20 +28,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2018: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2020: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +84,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +100,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +110,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +128,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +138,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +264,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -274,6 +286,10 @@ source_names: attribution_source: USDA_CoA_Cropland: year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -313,8 +329,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +417,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +429,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +468,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +485,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +495,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +505,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +516,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +544,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +555,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +566,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +602,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +614,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +625,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +637,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +648,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +725,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +741,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +762,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -754,12 +773,13 @@ source_names: - '324121' - '324122' + natural_gas_neu: selection_fields: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -770,7 +790,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2018: + Energy_manufacturing_national_nowcast_2020: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -814,6 +834,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -860,8 +881,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -871,8 +892,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -882,8 +903,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml index 95cab320..ea4ba7c0 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml @@ -14,6 +14,11 @@ epa_ghgi_year: &epa_ghgi_year 2021 sources_to_cache: USDA_CoA_Cropland_NAICS: year: *coa_year + # Between censuses, blend 2017 and 2022 linearly. + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -23,20 +28,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2022: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2021: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +84,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +100,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +110,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +128,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +138,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +264,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -274,6 +286,10 @@ source_names: attribution_source: USDA_CoA_Cropland: year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year selection_fields: Class: Land FlowName: @@ -313,8 +329,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +417,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +429,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +468,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +485,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +495,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +505,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +516,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +544,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +555,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +566,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +602,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +614,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +625,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +637,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +648,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +725,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +741,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +762,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -760,7 +779,7 @@ source_names: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -771,7 +790,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2021: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -815,6 +834,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -861,8 +881,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -872,8 +892,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -883,8 +903,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml index 6ae4b3ca..2039a48a 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml @@ -23,20 +23,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2022: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2022: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +79,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +95,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +105,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +123,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +133,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +259,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -313,8 +320,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +408,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +420,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +459,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +476,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +486,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +496,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +507,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +535,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +546,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +557,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +593,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +605,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +616,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +628,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +639,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +716,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +732,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +753,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -760,7 +770,7 @@ source_names: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -771,7 +781,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2022: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -815,6 +825,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -861,8 +872,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -872,8 +883,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -883,8 +894,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml index 47546a0f..afa3ef0e 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml @@ -23,20 +23,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2022: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2023: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +79,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +95,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +105,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +123,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +133,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +259,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -313,8 +320,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +408,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +420,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +459,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +476,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +486,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +496,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +507,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +535,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +546,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +557,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +593,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +605,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +616,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +628,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +639,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +716,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +732,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +753,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -760,7 +770,7 @@ source_names: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -771,7 +781,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2023: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -815,6 +825,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -861,8 +872,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -872,8 +883,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -883,8 +894,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml index fe1cd7bf..a345347f 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml @@ -23,20 +23,17 @@ sources_to_cache: _attribution_sources: # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_2022: &mecs_energy_alloc + Energy_manufacturing_national_nowcast_2024: &mecs_energy_alloc data_format: FBS geoscale: national - BEA: &bea # 2017 Make and Use tables - year: 2017 + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year activity_to_sector_mapping: Cornerstone_2025 exclusion_fields: - # Drop irrelevant final demand and total sectors + # Drop FD columns that should not take intermediate attribution ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00', - 'T001', 'T004', 'T007', 'T019'] - ActivityProducedBy: ['T007', 'T013', 'T015', 'T016', 'TOP', - 'MCIF'] + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] attribution_method: equal source_names: @@ -82,19 +79,13 @@ source_names: FlowName: SF6 attribution_method: direct - electric_power: - selection_fields: - PrimaryActivity: - Electric Power Sector: Electric Power # CO2 - attribution_method: direct - liming: # liming of agricultural soils selection_fields: PrimaryActivity: Liming #CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products @@ -104,8 +95,8 @@ source_names: - Urea Consumption for Non-Agricultural Purposes # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -114,8 +105,16 @@ source_names: PrimaryActivity: Urea Fertilization # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # Fertilizers @@ -124,8 +123,8 @@ source_names: PrimaryActivity: Other Process Uses of Carbonates # CO2 attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals @@ -134,8 +133,8 @@ source_names: PrimaryActivity: N2O from Product Uses # N2O attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'325120': ''} # Industrial gases @@ -260,8 +259,16 @@ source_names: - Synthetic Fertilizer Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -313,8 +320,16 @@ source_names: - Surface Leaching & Run-Off Cropland attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead. + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true selection_fields: ActivityProducedBy: {'325310': ''} # fertilizer sectors @@ -393,8 +408,8 @@ source_names: Light-Duty Trucks Diesel Fuel: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -405,8 +420,8 @@ source_names: Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -444,8 +459,8 @@ source_names: Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -461,8 +476,8 @@ source_names: PrimaryActivity: Construction/Mining Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment @@ -471,8 +486,8 @@ source_names: PrimaryActivity: Agricultural Equipment Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333111': ''} # purchases of farm machinery @@ -481,8 +496,8 @@ source_names: PrimaryActivity: Other Non-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products @@ -492,8 +507,8 @@ source_names: All activities Alternative Fuel On-Road: Alternative Fuel On-Road attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -520,8 +535,8 @@ source_names: - Coal Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -531,8 +546,8 @@ source_names: - Natural Gas Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -542,26 +557,21 @@ source_names: - Petroleum Commercial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'324110': ''} # purchases of refinery products - UMD_GHGIA_T_3_7: # stationary combustion - electricity + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - electric_power: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - counted in T 2-S1 - PrimaryActivity: - Coal Electric Power: Coal Electric Power - Natural Gas Electric Power: Natural Gas Electric Power - Natural gas Electric Power: Natural Gas Electric Power # fix capitalization - Petroleum Electric Power: Petroleum Electric Power - Wood Electric Power: Wood Electric Power - attribution_method: direct + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide UMD_GHGIA_T_3_11: # Stationary combustion - industrial year: *ghgi_year @@ -583,7 +593,7 @@ source_names: - Petroleum Industrial attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -595,8 +605,8 @@ source_names: - Natural Gas Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'221200': ''} # purchases of natural gas @@ -606,7 +616,7 @@ source_names: - Natural Gas Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -618,8 +628,8 @@ source_names: - Coal Industrial attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'212100': ''} # purchases of coal @@ -629,7 +639,7 @@ source_names: - Coal Industrial - Manufacturing attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Coal @@ -706,7 +716,7 @@ source_names: 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -722,7 +732,7 @@ source_names: Industry HGL: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: HGL @@ -743,7 +753,7 @@ source_names: Industry Natural Gasoline: Industry Petroleum Products Non-energy attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Petroleum @@ -760,7 +770,7 @@ source_names: PrimaryActivity: Industry Natural Gas to Chemical Plants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Natural Gas @@ -771,7 +781,7 @@ source_names: PrimaryActivity: Transportation Lubricants attribution_method: proportional attribution_source: - Energy_manufacturing_national_2022: + Energy_manufacturing_national_nowcast_2024: <<: *mecs_energy_alloc selection_fields: Flowable: Transport @@ -815,6 +825,7 @@ source_names: PrimaryActivity: Magnesium Production attribution_method: proportional attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available BEA_Detail_GrossOutput_IO: year: *ghgi_year geoscale: national @@ -861,8 +872,8 @@ source_names: - Industrial Process Refrigeration attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -872,8 +883,8 @@ source_names: - Commercial Stationary Air Conditioning attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: {'333415': ''} # Air conditioning equipment @@ -883,8 +894,8 @@ source_names: - Foams attribution_method: proportional attribution_source: - BEA_Detail_Use_AfterRedef: - <<: *bea + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast selection_fields: ActivityProducedBy: '326140': '' # Polystyrene foam diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2017.yaml deleted file mode 100644 index 52befc43..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2017.yaml +++ /dev/null @@ -1,979 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2017. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. -# Nested EPA attribution FBAs for 2017/2018 are only available on GCS -# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. -# When running generateFlowBySector(), set download_sources_ok=True. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2017 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2017 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2017: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_17: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - # EPA published no eGRID 2017, so 2017 is estimated from the two neighbouring - # eGRID years. They are NOT averaged in levels: 2017 was a trough for power - # sector emissions, not a point on the line between 2016 and 2018. The GHG - # inventory has electric power CO2 at 1808.9 MMT in 2016, 1732.0 in 2017 and - # 1753.4 in 2018 -- down 4.3% then back up 1.2% -- so a straight average puts - # 2017 2.8% too high and turns the 2017->2018 rise into a 1.5% fall. Almost - # all of that is natural gas (GHGI table 3-7: gas CO2 dips to 505.6 MMT in - # 2017 from 545.0 in 2016, then rebounds to 577.9 in 2018; coal is close to - # linear over the same three years). - # - # Instead each eGRID year is moved onto 2017 by the inventory's own ratio - # between the two years, and the two resulting estimates are averaged. eGRID - # supplies the plant-level composition, the inventory supplies the timing. - # The two estimates land at 1767.3 and 1769.0 MMT CO2 -- 0.10% apart, against - # an eGRID/GHGI level offset of 1.0203 in 2016 and 1.0214 in 2018, which is - # what makes the index credible here. Closes #914. - EPA_eGRID_electric: - FBS_datapull_fxn: !clean_function:flowbyclean average_flowby - index_source: - # Electric power sector CO2, the series this source replaced for 2018+. - # Only its 2017/2016 and 2017/2018 ratios are used, so the MMT CO2e unit - # and the boundary difference against eGRID both cancel. Table 3-7's - # all-gas total gives the same ratios to within 0.03%. - UMD_GHGIA_T_2_S1: - selection_fields: - ActivityProducedBy: Electric Power Sector - FlowName: CO2 - datasource_1: - EPA_eGRID_electric: - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2016 - year: 2016 - activity_to_sector_mapping: EPA_eGRID - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - datasource_2: - EPA_eGRID_electric: - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2018 - year: 2018 - activity_to_sector_mapping: EPA_eGRID - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - year: 2017 # target year: what the eGRID years are indexed onto - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2018.yaml deleted file mode 100644 index 1a042485..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2018.yaml +++ /dev/null @@ -1,948 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2018. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. -# Nested EPA attribution FBAs for 2017/2018 are only available on GCS -# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. -# When running generateFlowBySector(), set download_sources_ok=True. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2018 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2018 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly (#934). - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2018: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_17: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2019.yaml deleted file mode 100644 index 7e0acd77..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2019.yaml +++ /dev/null @@ -1,945 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2019. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2019 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2019 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly (#934). - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2019: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2020.yaml deleted file mode 100644 index 37e2e0e0..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2020.yaml +++ /dev/null @@ -1,945 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2020. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2020 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2020 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly (#934). - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2020: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2021.yaml deleted file mode 100644 index 56090c0c..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2021.yaml +++ /dev/null @@ -1,945 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2021. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2021 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2021 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly (#934). - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2021: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2022.yaml deleted file mode 100644 index cb79f91f..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2022.yaml +++ /dev/null @@ -1,936 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2022. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2022 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2022 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2022: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2023.yaml deleted file mode 100644 index 3e73cfd9..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2023.yaml +++ /dev/null @@ -1,936 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2023. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2023 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2023 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2023: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2024.yaml deleted file mode 100644 index b72a9033..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_2024.yaml +++ /dev/null @@ -1,939 +0,0 @@ -# Cornerstone GHG national methods (v2025), inventory year 2024. -# NowcastMUT after-redef Use attribution at the inventory year -- used when -# usa_detail_io_source is nowcast. Canonical bea_published builds use -# GHG_national_Cornerstone_2024 instead. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2024 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2023 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2024: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead (#934). - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - From 769a7fd41897f29371bbf5df69fdb81d2aa14df8 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:34:42 -0600 Subject: [PATCH 02/15] incorporate the _facilities_ changes into the Cornerstone FBS method --- .../ghg/GHG_national_Cornerstone_2017.yaml | 1175 +++-------------- .../ghg/GHG_national_Cornerstone_2018.yaml | 1144 +++------------- .../ghg/GHG_national_Cornerstone_2019.yaml | 1141 +++------------- .../ghg/GHG_national_Cornerstone_2020.yaml | 1141 +++------------- .../ghg/GHG_national_Cornerstone_2021.yaml | 1141 +++------------- .../ghg/GHG_national_Cornerstone_2022.yaml | 1132 +++------------- .../ghg/GHG_national_Cornerstone_2023.yaml | 1132 +++------------- .../ghg/GHG_national_Cornerstone_2024.yaml | 1132 +++------------- ...l_Cornerstone_nowcast_facilities_2017.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2018.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2019.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2020.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2021.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2022.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2023.yaml | 196 --- ...l_Cornerstone_nowcast_facilities_2024.yaml | 196 --- 16 files changed, 1568 insertions(+), 9138 deletions(-) delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2017.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2018.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2019.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2020.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2021.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2022.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2023.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2024.yaml diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml index 7af1dbf5..347cfc32 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml @@ -1,979 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2017. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. -# Nested EPA attribution FBAs for 2017/2018 are only available on GCS -# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. -# When running generateFlowBySector(), set download_sources_ok=True. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2017 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2017 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2017: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_17: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - # EPA published no eGRID 2017, so 2017 is estimated from the two neighbouring - # eGRID years. They are NOT averaged in levels: 2017 was a trough for power - # sector emissions, not a point on the line between 2016 and 2018. The GHG - # inventory has electric power CO2 at 1808.9 MMT in 2016, 1732.0 in 2017 and - # 1753.4 in 2018 -- down 4.3% then back up 1.2% -- so a straight average puts - # 2017 2.8% too high and turns the 2017->2018 rise into a 1.5% fall. Almost - # all of that is natural gas (GHGI table 3-7: gas CO2 dips to 505.6 MMT in - # 2017 from 545.0 in 2016, then rebounds to 577.9 in 2018; coal is close to - # linear over the same three years). - # - # Instead each eGRID year is moved onto 2017 by the inventory's own ratio - # between the two years, and the two resulting estimates are averaged. eGRID - # supplies the plant-level composition, the inventory supplies the timing. - # The two estimates land at 1767.3 and 1769.0 MMT CO2 -- 0.10% apart, against - # an eGRID/GHGI level offset of 1.0203 in 2016 and 1.0214 in 2018, which is - # what makes the index credible here. - EPA_eGRID_electric: - FBS_datapull_fxn: !clean_function:flowbyclean average_flowby - index_source: - # Electric power sector CO2, the series this source replaced for 2018+. - # Only its 2017/2016 and 2017/2018 ratios are used, so the MMT CO2e unit - # and the boundary difference against eGRID both cancel. Table 3-7's - # all-gas total gives the same ratios to within 0.03%. - UMD_GHGIA_T_2_S1: - selection_fields: - ActivityProducedBy: Electric Power Sector - FlowName: CO2 - datasource_1: - EPA_eGRID_electric: - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2016 - year: 2016 - activity_to_sector_mapping: EPA_eGRID - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - datasource_2: - EPA_eGRID_electric: - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2018 - year: 2018 - activity_to_sector_mapping: EPA_eGRID - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - year: 2017 # target year: what the eGRID years are indexed onto - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2017: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2017.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2017 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2017.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2017 + inventory_dict: + GHGRP: 2017 + NEI: 2017 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2017 + inventory_dict: + GHGRP: 2017 + NEI: 2017 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2017 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2017 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2017 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2017 + nei_year: 2017 + annex_fba: 'UMD_GHGIA_T_A5_1_S7' + annex_year: 2017 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2017 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2017 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml index a8b41506..3fc3a088 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml @@ -1,948 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2018. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. -# Nested EPA attribution FBAs for 2017/2018 are only available on GCS -# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. -# When running generateFlowBySector(), set download_sources_ok=True. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2018 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2018 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly. - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2018: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_17: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2018: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2018.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2018 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2018.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2018 + inventory_dict: + GHGRP: 2018 + NEI: 2018 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2018 + inventory_dict: + GHGRP: 2018 + NEI: 2018 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2018 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2018 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2018 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2018 + nei_year: 2018 + annex_fba: 'UMD_GHGIA_T_A5_1_S6' + annex_year: 2018 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2018 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2018 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml index de95f064..eeb0f47b 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml @@ -1,945 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2019. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2019 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2019 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly. - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2019: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2019: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2019.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2019 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2019.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2019 + inventory_dict: + GHGRP: 2019 + NEI: 2019 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2019 + inventory_dict: + GHGRP: 2019 + NEI: 2019 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2019 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2019 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2019 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2019 + nei_year: 2019 + annex_fba: 'UMD_GHGIA_T_A5_1_S5' + annex_year: 2019 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2019 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2019 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml index ee5320f2..e3aa622a 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml @@ -1,945 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2020. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2020 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2018 -coa_year: &coa_year 2017 -epa_ghgi_year: &epa_ghgi_year 2020 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly. - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2020: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S6' # align with 2018 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2020: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2020.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2020 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2020.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2020 + inventory_dict: + GHGRP: 2020 + NEI: 2020 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2020 + inventory_dict: + GHGRP: 2020 + NEI: 2020 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2020 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2020 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2020 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2020 + nei_year: 2020 + annex_fba: 'UMD_GHGIA_T_A5_1_S4' + annex_year: 2020 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2020 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2020 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml index ea4ba7c0..18346703 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml @@ -1,945 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2021. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2021 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2021 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - # Between censuses, blend 2017 and 2022 linearly. - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2021: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2021: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2021.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2021 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2021.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2021 + inventory_dict: + GHGRP: 2021 + NEI: 2021 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2021 + inventory_dict: + GHGRP: 2021 + NEI: 2021 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2021 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2021 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2021 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2021 + nei_year: 2021 + annex_fba: 'UMD_GHGIA_T_A5_1_S3' + annex_year: 2021 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2021 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2021 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml index 2039a48a..788796b1 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml @@ -1,936 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2022. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2022 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2022 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2022: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25b: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2022: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2022.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2022 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2022.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2022 + inventory_dict: + GHGRP: 2022 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2022 + inventory_dict: + GHGRP: 2022 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2022 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2022 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2022 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2022 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S2' + annex_year: 2022 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2022 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2022 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml index afa3ef0e..7ef22ef5 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml @@ -1,936 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2023. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2023 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2023 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2023: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2023: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2023.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2023 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2023.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2023 + inventory_dict: + GHGRP: 2023 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2023 + inventory_dict: + GHGRP: 2023 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2023 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2023 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2023 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2023 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S1' + annex_year: 2023 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2023 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2023 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml index a345347f..5c0ce094 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml @@ -1,936 +1,196 @@ -# Cornerstone GHG national methods (v2025), inventory year 2024. -# Uses UMD GHGIA FBAs. Some nested EPA GHGI tables -# remain for soils / NEU allocation and fluorochemical MT detail. - -!include:Cornerstone_2025_target.yaml -year: &ghgi_year 2024 -target_schema_year: 2017 -geoscale: national - -mecs_year: &mecs_year 2022 -coa_year: &coa_year 2022 -epa_ghgi_year: &epa_ghgi_year 2023 - -sources_to_cache: - USDA_CoA_Cropland_NAICS: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - FARM OPERATIONS - - AG LAND, CROPLAND, HARVESTED - estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution - -_attribution_sources: - # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). - Energy_manufacturing_national_nowcast_2024: &mecs_energy_alloc - data_format: FBS - geoscale: national - - Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year - year: *ghgi_year - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - # Drop FD columns that should not take intermediate attribution - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - -source_names: - UMD_GHGIA_T_2_S1: # U.S. GHG totals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: - - Abandoned Oil and Gas Wells #CH4 - - Abandoned Underground Coal Mines #CH4 - - Adipic Acid Production #N2O - - Aluminum Production #CO2 - - Ammonia Production #CO2 - - Anaerobic Digestion at Biogas Facilities #CH4 - - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O - - Carbide Production and Consumption #CO2 - - Cement Production #CO2 - - Coal Mining #CH4, CO2 - - Composting #CH4, N2O - - Ferroalloy Production #CO2, CH4 - - Glass Production #CO2 - - Landfills #CH4 - - Lead Production #CO2 - - Incineration of Waste #N2O and CO2 - - Lime Production #CO2 - - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 - - Nitric Acid Production #N2O - - Phosphoric Acid Production #CO2 - - Rice Cultivation #CH4 - - Soda Ash Production #CO2 - - Titanium Dioxide Production #CO2 - - Wastewater Treatment #CH4, N2O - - Zinc Production #CO2 - FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere - attribution_method: direct - electricity_transmission: - selection_fields: - PrimaryActivity: - - Electrical Equipment # SF6 - FlowName: SF6 - attribution_method: direct - - liming: # liming of agricultural soils - selection_fields: - PrimaryActivity: Liming #CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products - - urea: - selection_fields: - PrimaryActivity: - - Urea Consumption for Non-Agricultural Purposes # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - urea_fertilizer: - selection_fields: - PrimaryActivity: Urea Fertilization # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # Fertilizers - - carbonate_use: - selection_fields: - PrimaryActivity: Other Process Uses of Carbonates # CO2 - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals - - nitrous_oxide_use: - selection_fields: - PrimaryActivity: N2O from Product Uses # N2O - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'325120': ''} # Industrial gases - - field_burning_n2O: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["N2O"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: &field_burning - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: - CH4: N2O # replacing flow name - attribution_method: direct - - field_burning_ch4: - selection_fields: - PrimaryActivity: - - Field Burning of Agricultural Residues - FlowName: ["CH4"] - attribution_method: proportional - attribution_source: - UMD_GHGIA_T_5_15: - <<: *field_burning - selection_fields: - PrimaryActivity: - - Chickpeas - - Cotton - - Maize - - Rice - - Soybeans - - Wheat - - Lentils - - Sugarcane - FlowName: ["CH4"] - - -## Fossil Fuels - UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Distribution - - Post-Meter - - Exploration - - Processing - - Production - - Transmission and Storage - attribution_method: direct - UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 - UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" - - UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: -# - Crude Oil Transportation # not included in UMD - - Transportation - - Exploration - - Production - - Refineries -# - Crude Refining # not included in UMD - attribution_method: direct - UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 - UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 - -## Agriculture - UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - American Bison - - Beef Cattle - - Dairy Cattle - - Goats - - Horses - - Mules and Asses - - Sheep - - Swine - - Poultry # note, not in 5-3, is included in 5-6 - attribution_method: direct - UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management - - UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct: - selection_fields: - PrimaryActivity: Direct Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_18: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Organic Amendment Cropland - - Residue N Cropland - - Synthetic Fertilizer Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - cropland: - selection_fields: - PrimaryActivity: - - Mineralization and Asymbiotic Fixation Cropland - - Drained Organic Soils Cropland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland: - year: *coa_year - selection_fields: - Class: Land - FlowName: - - AREA HARVESTED - - AREA BEARING & NON-BEARING # Orchards - - AREA GROWN # Berry totals - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: AG LAND, CROPLAND, HARVESTED - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - indirect: - selection_fields: - PrimaryActivity: Indirect Agricultural Soil Management - attribution_method: proportional - attribution_source: - EPA_GHGI_T_5_19: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - fertilizer_use: - selection_fields: - PrimaryActivity: - - Volatilization & Atm. Deposition Cropland - - Surface Leaching & Run-Off Cropland - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - # Each crop's fertilizer purchases follow its revenue year to - # year; blend the census-year tables instead. - year: *coa_year - clean_fba: !clean_function:flowbyclean interpolate_census_years - census_interpolation: - years: [2017, 2022] - target_year: *ghgi_year - normalize: true - selection_fields: - ActivityProducedBy: {'325310': ''} # fertilizer sectors - - pasture: - selection_fields: - PrimaryActivity: - - All activities Grassland - attribution_method: proportional - attribution_source: - USDA_CoA_Cropland_NAICS: - selection_fields: - Flowable: FARM OPERATIONS - - -### Mobile Sources - UMD_GHGIA_T_3_8: #CO2 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_residual_fuel_oil: - selection_fields: - PrimaryActivity: - Ships & Boats Residual Fuel Oil: Ships and Boats - attribution_method: direct - - direct_lpg: - selection_fields: - PrimaryActivity: - Buses LPG: Buses - Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks - Light-Duty Trucks LPG: Light-Duty Trucks - Households - Passenger Cars LPG: Passenger Cars - Households - attribution_method: direct - - direct_jet: - selection_fields: - PrimaryActivity: - General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft - General Aviation Aircraft Jet Fuel: General Aviation Aircraft - Commercial Aircraft Jet Fuel: Commercial Aircraft - Military Aircraft Jet Fuel: Military Aircraft - attribution_method: direct - - direct_ng: - selection_fields: - PrimaryActivity: - Buses Natural Gas: Buses - Pipeline Natural Gas: Pipeline Natural Gas - Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Rail Diesel Fuel: Rail - Recreational Boats Diesel Fuel: Recreational Boats - Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats - attribution_method: direct - - direct_gasoline: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - Buses Diesel Fuel: Buses - Distillate Fuel Oil - Passenger Cars Diesel Fuel: Passenger Cars - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - direct_gasoline: # empty in some years (<0.05 MMT CO2eq) - selection_fields: - PrimaryActivity: - Motorcycles Gasoline On-Road: Motorcycles - Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses - attribution_method: direct - - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - direct_non_road: - selection_fields: - PrimaryActivity: - Rail Non-Road: Rail - Ships and Boats Non-Road: Ships and Boats - Aircraft Non-Road: General Aviation Aircraft - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - Households - attribution_method: direct - - construction_and_mining: #this set is allocated by purchases of construction equipment - selection_fields: - PrimaryActivity: Construction/Mining Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment - - farm_non_road: #this set is allocated by purchases of farm machinery - selection_fields: - PrimaryActivity: Agricultural Equipment Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333111': ''} # purchases of farm machinery - - other_non_road: #this set is allocated by purchases of petroleum refining - selection_fields: - PrimaryActivity: Other Non-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - alt_fuel_on_road: #this set is allocated by purchases of natural gas - selection_fields: # empty in some years (<0.05 MMT CO2eq) - PrimaryActivity: - All activities Alternative Fuel On-Road: Alternative Fuel On-Road - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 - -## Stationary Combustion - UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_commercial_co2: - selection_fields: - FlowName: CO2 - PrimaryActivity: - - Coal Residential - - Natural Gas Residential - - Petroleum Residential - attribution_method: direct - - non_manufacturing_coal: - selection_fields: - PrimaryActivity: - - Coal Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - non_manufacturing_natural_gas: - selection_fields: - PrimaryActivity: - - Natural Gas Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - petroleum_commercial: - selection_fields: - PrimaryActivity: - - Petroleum Commercial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'324110': ''} # purchases of refinery products - - EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: *ghgi_year - year: *ghgi_year - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide - - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - # note - below clean function splits ghgi data into manufacturing and non manufacturing - # while ceda does not originally use this terminology/append "manufacturing" to activity names, ceda - # accomplishes the same methods through - # _allocate_industrial_coal_to_industries_energy_allocation() + _allocate_remaining_industrial_coal_usage() - clean_fba_before_activity_sets: !script_function:EPA_GHGI allocate_industrial_combustion - clean_parameter: # Override each year for use in allocate_industrial_combustion - energy_fba: 'EIA_MECS_Energy' - year: *mecs_year - ghg_fba: 'UMD_GHGIA_T_A5_1_S2' # align with 2022 MECS - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_industrial: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Money - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'221200': ''} # purchases of natural gas - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Energy - - coal_nonmanufacturing: # empty in some years (i.e., all coal consumption for manufacturing) - selection_fields: - PrimaryActivity: - - Coal Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'212100': ''} # purchases of coal - - coal_manufacturing: - selection_fields: - PrimaryActivity: - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Coal - Class: Energy - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' - - - UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - residential_non_co2_direct: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history - attribution_method: direct - - residential_commercial_non_co2: - selection_fields: - FlowName: [CH4, N2O] # exclude co2 - PrimaryActivity: - - Coal Residential and Commercial - - Natural Gas Residential and Commercial - - Petroleum Residential and Commercial - attribution_method: proportional - attribution_source: - # using co2 data to proportionally attribute to residential and commercial - UMD_GHGIA_T_3_4: *umd_t_3_4 - - -## Other sources - UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Acrylonitrile - - Carbon Black - - Ethylene - - Ethylene Dichloride - - Ethylene Oxide - - Methanol - attribution_method: direct - - UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - emissions: - selection_fields: - PrimaryActivity: Emissions NEU Fossil Fuel Consumption - attribution_method: proportional - attribution_source: - EPA_GHGI_T_3_25: - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - activity_sets: - coal: - selection_fields: - PrimaryActivity: - - Industry Industrial Coking Coal - - Industry Industrial Other Coal - attribution_method: direct - - petroleum_neu_asphalt: - selection_fields: - PrimaryActivity: - 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - # Allocated to asphalt sectors only - SectorConsumedBy: - - '324121' - - '324122' - - petroleum_neu_hgl: - selection_fields: - PrimaryActivity: - Industry HGL: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: HGL - Class: Other - - petroleum_neu: - selection_fields: - PrimaryActivity: - Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy - Industry Lubricants: Industry Petroleum Products Non-energy - Industry Miscellaneous Products: Industry Petroleum Products Non-energy - 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy - 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy - Industry Petroleum Coke: Industry Petroleum Products Non-energy - Industry Special Naphtha: Industry Petroleum Products Non-energy - Industry Still Gas: Industry Petroleum Products Non-energy - Industry Waxes: Industry Petroleum Products Non-energy - Industry Natural Gasoline: Industry Petroleum Products Non-energy - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Petroleum - Class: Other - exclusion_fields: - # Skips petroleum products used for asphalt sectors - SectorConsumedBy: - - '324121' - - '324122' - - - natural_gas_neu: - selection_fields: - PrimaryActivity: Industry Natural Gas to Chemical Plants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Natural Gas - Class: Other - - transportation_lubricants: - selection_fields: - PrimaryActivity: Transportation Lubricants - attribution_method: proportional - attribution_source: - Energy_manufacturing_national_nowcast_2024: - <<: *mecs_energy_alloc - selection_fields: - Flowable: Transport - Class: Money - -## Other Emissions - UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: HCFC-22 Production - attribution_method: direct - - UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data - EPA_GHGI_T_4_64: # Fluorochemical production (MT) - year: *epa_ghgi_year - activity_to_sector_mapping: EPA_GHGI_Cornerstone - fedefl_mapping: GHGI_AR5_100 - selection_fields: - PrimaryActivity: Fluorochemical Production - exclusion_fields: - FlowName: ["Other PFCs", "Other HFCs"] - attribution_method: direct - - UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a - PrimaryActivity: Magnesium Production - attribution_method: proportional - attribution_source: - # Flag: published BEA GO; could update to newer Cornerstone GO data when available - BEA_Detail_GrossOutput_IO: - year: *ghgi_year - geoscale: national - activity_to_sector_mapping: BEA_2017_Detail - attribution_method: equal - - UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - - Electronics Industry - - Semiconductors - - PV - - MEMS - attribution_method: direct - - UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - attribution_method: direct - - UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - flow_fba: UMD_GHGIA_T_4_59 - year: *ghgi_year - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - households: - selection_fields: - PrimaryActivity: - - Domestic Refrigeration - - Residential Stationary Air Conditioning - attribution_method: direct - - refrigerants: - selection_fields: - PrimaryActivity: - - Commercial Refrigeration - - Industrial Process Refrigeration - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - air_conditioning: - selection_fields: - PrimaryActivity: - - Commercial Stationary Air Conditioning - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: {'333415': ''} # Air conditioning equipment - - foams: - selection_fields: - PrimaryActivity: - - Foams - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - <<: *nowcast - selection_fields: - ActivityProducedBy: - '326140': '' # Polystyrene foam - '326150': '' # Urethane and other foam - - UMD_GHGIA_T_A5_5_2: # Transportation HFCs - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type - clean_parameter: - # Proportions of specific HFCs are assigned based on national total - flow_fba: UMD_GHGIA_T_4_59 - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: - Mobile AC - Passenger Cars: Passenger Cars - Households - Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households - Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles - Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses - Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses - Comfort Cooling for Trains and Buses - Rail: Rail - Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks - Refrigerated Transport - Rail: Rail - Refrigerated Transport - Ships and Boats: Ships and Boats - attribution_method: direct - - - UMD_GHGIA_T_4_50: # PFCs from aluminum production - year: *ghgi_year - activity_to_sector_mapping: UMD_GHGIA - fedefl_mapping: UMD_GHGIA_AR5_100 - selection_fields: - PrimaryActivity: Aluminum Production - # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). - exclusion_fields: - FlowName: CO2 - attribution_method: direct - +# Stationary combustion with facility data under the residual rule. +# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. +# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). +# Hybrid: facility share where coverage >= 0.8, else MECS share; +# floor = max(facility share, MECS share) then renormalize. + +!include:GHG_national_Cornerstone_nowcast_2024.yaml + # Every in-scope sector's CO2 at least what its own facilities report to + # GHGRP (all subparts but power), moved within industrial combustion. + ghgrp_sector_floor: 2024 + sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2024.yaml:sources_to_cache + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2024 + inventory_dict: + GHGRP: 2024 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2024 + inventory_dict: + GHGRP: 2024 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2024 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + source_names: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names + # Pipeline natural gas burned at LNG export terminals and gas distribution + # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: + year: 2024 + activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2024 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2024 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S1' + annex_year: 2023 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2024 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2024 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2017.yaml deleted file mode 100644 index 448920e0..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2017.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2017.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2017 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2017.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2017 - inventory_dict: - GHGRP: 2017 - NEI: 2017 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2017 - inventory_dict: - GHGRP: 2017 - NEI: 2017 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2017 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2017 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2017 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2017 - nei_year: 2017 - annex_fba: 'UMD_GHGIA_T_A5_1_S7' - annex_year: 2017 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2018.yaml deleted file mode 100644 index 8cb1d6f1..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2018.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2018.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2018 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2018.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2018 - inventory_dict: - GHGRP: 2018 - NEI: 2018 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2018 - inventory_dict: - GHGRP: 2018 - NEI: 2018 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2018 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2018 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2018 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2018 - nei_year: 2018 - annex_fba: 'UMD_GHGIA_T_A5_1_S6' - annex_year: 2018 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2019.yaml deleted file mode 100644 index 726a8aca..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2019.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2019.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2019 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2019.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2019 - inventory_dict: - GHGRP: 2019 - NEI: 2019 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2019 - inventory_dict: - GHGRP: 2019 - NEI: 2019 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2019 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2019 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2019 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2019 - nei_year: 2019 - annex_fba: 'UMD_GHGIA_T_A5_1_S5' - annex_year: 2019 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2020.yaml deleted file mode 100644 index 07a60336..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2020.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2020.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2020 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2020.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2020 - inventory_dict: - GHGRP: 2020 - NEI: 2020 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2020 - inventory_dict: - GHGRP: 2020 - NEI: 2020 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2020 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2020 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2020 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2020 - nei_year: 2020 - annex_fba: 'UMD_GHGIA_T_A5_1_S4' - annex_year: 2020 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2021.yaml deleted file mode 100644 index d92b4392..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2021.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2021.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2021 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2021.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2021 - inventory_dict: - GHGRP: 2021 - NEI: 2021 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2021 - inventory_dict: - GHGRP: 2021 - NEI: 2021 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2021 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2021 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2021 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2021 - nei_year: 2021 - annex_fba: 'UMD_GHGIA_T_A5_1_S3' - annex_year: 2021 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2022.yaml deleted file mode 100644 index 3a9d2604..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2022.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2022.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2022 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2022.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2022 - inventory_dict: - GHGRP: 2022 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2022 - inventory_dict: - GHGRP: 2022 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2022 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2022 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2022 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2022 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S2' - annex_year: 2022 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2023.yaml deleted file mode 100644 index 09d15089..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2023.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2023.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2023 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2023.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2023 - inventory_dict: - GHGRP: 2023 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2023 - inventory_dict: - GHGRP: 2023 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2023 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2023 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2023 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2023 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S1' - annex_year: 2023 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2024.yaml deleted file mode 100644 index 16e4031b..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_2024.yaml +++ /dev/null @@ -1,196 +0,0 @@ -# Stationary combustion with facility data under the #928 residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2024.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion (#1060). - ghgrp_sector_floor: 2024 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2024.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2024 - inventory_dict: - GHGRP: 2024 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector - year: 2024 - inventory_dict: - GHGRP: 2024 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2024 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines (#1067). - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2024 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: - selection_fields: - PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2024 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2024 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S1' - annex_year: 2023 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel (#983): weight on refineries' - # own petroleum only, not every facility's (#1054). - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas (#1060). - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries (#1060). - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' From ac9dc77c067f96efe142659c48409d0042ee62fc Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:36:35 -0600 Subject: [PATCH 03/15] incorporate the _transportation_ changes into the Cornerstone FBS method --- .../ghg/GHG_national_Cornerstone_2017.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2018.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2019.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2020.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2021.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2022.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2023.yaml | 375 +++++++++--------- .../ghg/GHG_national_Cornerstone_2024.yaml | 375 +++++++++--------- ...owcast_facilities_transportation_2017.yaml | 191 --------- ...owcast_facilities_transportation_2018.yaml | 191 --------- ...owcast_facilities_transportation_2019.yaml | 191 --------- ...owcast_facilities_transportation_2020.yaml | 191 --------- ...owcast_facilities_transportation_2021.yaml | 191 --------- ...owcast_facilities_transportation_2022.yaml | 191 --------- ...owcast_facilities_transportation_2023.yaml | 191 --------- ...owcast_facilities_transportation_2024.yaml | 191 --------- 16 files changed, 1480 insertions(+), 3048 deletions(-) delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2017.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2018.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2019.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2020.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2021.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2022.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2023.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2024.yaml diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml index 347cfc32..1d60ab40 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2017.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2017 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2017.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2017 - inventory_dict: - GHGRP: 2017 - NEI: 2017 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2017.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2017: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2017 - inventory_dict: - GHGRP: 2017 - NEI: 2017 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2017 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2017 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2017 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2017 - nei_year: 2017 - annex_fba: 'UMD_GHGIA_T_A5_1_S7' - annex_year: 2017 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2017 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2017: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml index 3fc3a088..3d38975c 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2018.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2018 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2018.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2018 - inventory_dict: - GHGRP: 2018 - NEI: 2018 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2018.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2018: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2018 - inventory_dict: - GHGRP: 2018 - NEI: 2018 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2018 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2018 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2018 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2018 - nei_year: 2018 - annex_fba: 'UMD_GHGIA_T_A5_1_S6' - annex_year: 2018 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2018 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2018: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml index eeb0f47b..80d88c41 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2019.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2019 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2019.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2019 - inventory_dict: - GHGRP: 2019 - NEI: 2019 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2019.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2019: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2019 - inventory_dict: - GHGRP: 2019 - NEI: 2019 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2019 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2019 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2019 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2019 - nei_year: 2019 - annex_fba: 'UMD_GHGIA_T_A5_1_S5' - annex_year: 2019 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2019 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2019: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml index e3aa622a..62be424a 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2020.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2020 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2020.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2020 - inventory_dict: - GHGRP: 2020 - NEI: 2020 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2020.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2020: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2020 - inventory_dict: - GHGRP: 2020 - NEI: 2020 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2020 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2020 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2020 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2020 - nei_year: 2020 - annex_fba: 'UMD_GHGIA_T_A5_1_S4' - annex_year: 2020 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2020 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2020: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml index 18346703..98f516bc 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2021.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2021 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2021.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2021 - inventory_dict: - GHGRP: 2021 - NEI: 2021 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2021.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2021: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2021 - inventory_dict: - GHGRP: 2021 - NEI: 2021 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2021 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2021 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2021 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2021 - nei_year: 2021 - annex_fba: 'UMD_GHGIA_T_A5_1_S3' - annex_year: 2021 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2021 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2021: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml index 788796b1..65c87bea 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2022.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2022 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2022.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2022 - inventory_dict: - GHGRP: 2022 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2022.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2022: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2022 - inventory_dict: - GHGRP: 2022 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2022 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2022 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2022 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2022 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S2' - annex_year: 2022 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2022 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2022: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml index 7ef22ef5..147ff7f3 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2023.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2023 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2023.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2023 - inventory_dict: - GHGRP: 2023 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2023.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2023: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2023 - inventory_dict: - GHGRP: 2023 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2023 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2023 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2023 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2023 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S1' - annex_year: 2023 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2023 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2023: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml index 5c0ce094..60bd88b8 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml @@ -1,196 +1,191 @@ -# Stationary combustion with facility data under the residual rule. -# Hybrid_Facility_MECS is attribution shares (Unit=share, sum to 1 per fuel), not kg CO2e. -# GHGRP_NEI_Facilities is kg CO2e (lease/plant NG + still gas). -# Hybrid: facility share where coverage >= 0.8, else MECS share; -# floor = max(facility share, MECS share) then renormalize. - -!include:GHG_national_Cornerstone_nowcast_2024.yaml - # Every in-scope sector's CO2 at least what its own facilities report to - # GHGRP (all subparts but power), moved within industrial combustion. - ghgrp_sector_floor: 2024 - sources_to_cache: !include:GHG_national_Cornerstone_nowcast_2024.yaml:sources_to_cache - # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. - # Used for lease/plant NG and still gas (no MECS/Use fallback). - GHGRP_NEI_Facilities: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector - year: 2024 - inventory_dict: - GHGRP: 2024 - NEI: 2022 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). - # Lease/plant NG is added later from GHGRP subpart W as its own Flowable - # ("Natural Gas - lease and plant"). - keep_flowables: - - Petroleum - - Natural Gas - - Coal - # Attribution shares on SectorConsumedBy (Unit=share). One FBS with - # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. - # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, - # then: keep_prior->MECS, facility_vector->facility, - # facility_floor->max(shares); renormalize per fuel. Still gas stays on - # GHGRP_NEI (kg). - Hybrid_Facility_MECS: - data_format: FBS_outside_flowsa - FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector +# Facilities GHG method. Truck, bus, and passenger-car rows use highway +# fuel shares (private industries already attributed with VIUS in the +# energy FBS). Uses the transportation sector crosswalk; otherwise +# inherits the facilities method. +# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate + + +!include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml + _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2024.yaml:_attribution_sources + Energy_highway_fuel_shares_national_2024: &highway_fuel_shares + data_format: FBS + geoscale: national + Nowcast: &nowcast year: 2024 - inventory_dict: - GHGRP: 2024 - NEI: 2022 - min_coverage: 0.8 - sector_prefixes: - - '21' - - '22' - - '31' - - '32' - - '33' - exclude_sectors: - - '221100' - mecs_method: Energy_manufacturing_national_nowcast_2024 - flowables: - Natural Gas: Energy - Coal: Energy - Petroleum: Money - keep_flowables: - - Natural Gas - - Coal - - Petroleum - source_names: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names - # Pipeline natural gas burned at LNG export terminals and gas distribution - # facilities (GHGRP NAICS 221210) goes to them, not to pipelines. - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8 - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion - clean_parameter: - year: 2024 - activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - lng_liquefaction: + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + + source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names + UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: selection_fields: PrimaryActivity: - - Pipeline Natural Gas - LNG Liquefaction + Light-Duty Trucks Gasoline: Light-Duty Trucks attribution_method: proportional attribution_source: - GHGRP_NEI_Facilities: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares selection_fields: - Flowable: Natural Gas - LNG liquefaction - UMD_GHGIA_T_3_11: # Stationary combustion - industrial - year: 2024 - activity_to_sector_mapping: UMD_GHGIA - clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion - clean_parameter: - year: 2024 - nei_year: 2022 - annex_fba: 'UMD_GHGIA_T_A5_1_S1' - annex_year: 2023 - exclude_sectors: - - '221100' - fedefl_mapping: UMD_GHGIA_AR5_100 - activity_sets: - petroleum_still_gas: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Still Gas - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Petroleum - # Still gas is refinery fuel: weight on refineries' - # own petroleum only, not every facility's. - # The cached source carries refineries at industry spec, 32411; - # '324110' alone matched nothing and dropped all still gas. - SectorProducedBy: ['32411', '324110'] - - petroleum_facility: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Petroleum Coke - - Petroleum Industrial - HGL - - Petroleum Industrial - Kerosene - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Petroleum - - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - natural_gas_lease_plant: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Lease and Plant - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - lease and plant - - # Natural gas reformed into hydrogen, carved from manufacturing natural - # gas by the GHGRP subpart P amount and attributed to the reporting - # plants' sectors: industrial gases and refineries. - natural_gas_hydrogen: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Hydrogen Production - attribution_method: proportional - attribution_source: - GHGRP_NEI_Facilities: - selection_fields: - Flowable: Natural Gas - hydrogen production - - natural_gas_nonmanufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'221200': ''} - attribution_method: equal - - ng_manufacturing: - selection_fields: - PrimaryActivity: - - Natural Gas Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Natural Gas - - coal: - selection_fields: - PrimaryActivity: - - Coal Industrial - - Coal Industrial - Manufacturing - attribution_method: proportional - attribution_source: - Hybrid_Facility_MECS: - selection_fields: - Flowable: Coal - - # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9 + activity_to_sector_mapping: UMD_GHGIA_transportation + activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 + + # Industrial distillate is almost all burned off-road by farms, + # construction and mining. Weight it by each group's physical fuel volume + # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) + # rather than by refinery purchases, which also carry the on-road truck + # fuel attributed above. Motor gasoline keeps the facilities weighting. + UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11 + activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2024 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2024: + data_format: FBS + geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2017.yaml deleted file mode 100644 index 1d60ab40..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2017.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2017.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2017: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2017: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2018.yaml deleted file mode 100644 index 3d38975c..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2018.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2018.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2018: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2018: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2019.yaml deleted file mode 100644 index 80d88c41..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2019.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2019.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2019: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2019: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2020.yaml deleted file mode 100644 index 62be424a..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2020.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2020.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2020: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2020: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2021.yaml deleted file mode 100644 index 98f516bc..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2021.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2021.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2021: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2021: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2022.yaml deleted file mode 100644 index 65c87bea..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2022.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2022.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2022: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2022: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2023.yaml deleted file mode 100644 index 147ff7f3..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2023.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2023.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2023: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2023: - data_format: FBS - geoscale: national diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2024.yaml deleted file mode 100644 index 60bd88b8..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_nowcast_facilities_transportation_2024.yaml +++ /dev/null @@ -1,191 +0,0 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2024.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2024: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2024: - data_format: FBS - geoscale: national From a6daaa64a3148597220c10b50993a3f2c6ce16b9 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:37:58 -0600 Subject: [PATCH 04/15] delete outdated _egrid_ yamls - already incorporated into cornerstone method --- .../GHG_national_Cornerstone_2023_egrid.yaml | 34 ------------------- .../GHG_national_Cornerstone_2024_egrid.yaml | 34 ------------------- 2 files changed, 68 deletions(-) delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_2023_egrid.yaml delete mode 100644 bedrock/transform/ghg/GHG_national_Cornerstone_2024_egrid.yaml diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2023_egrid.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2023_egrid.yaml deleted file mode 100644 index 842083af..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2023_egrid.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# Cornerstone 2023 national GHG FBS inheriting GHG_national_Cornerstone_2023. -# electric_power emissions come from stewi eGRID (plant-level) instead of -# UMD_GHGIA_T_2_S1 / UMD_GHGIA_T_3_7 electric_power activity sets. - -!include:GHG_national_Cornerstone_2023.yaml - source_names: !include:GHG_national_Cornerstone_2023.yaml:source_names - UMD_GHGIA_T_2_S1: - !include:GHG_national_Cornerstone_2023.yaml:source_names:UMD_GHGIA_T_2_S1 - activity_sets: - !include:GHG_national_Cornerstone_2023.yaml:source_names:UMD_GHGIA_T_2_S1:activity_sets - electric_power: - selection_fields: - PrimaryActivity: __handled_by_EPA_eGRID__ - attribution_method: direct - - UMD_GHGIA_T_3_7: - !include:GHG_national_Cornerstone_2023.yaml:source_names:UMD_GHGIA_T_3_7 - activity_sets: - !include:GHG_national_Cornerstone_2023.yaml:source_names:UMD_GHGIA_T_3_7:activity_sets - electric_power: - selection_fields: - PrimaryActivity: __handled_by_EPA_eGRID__ - attribution_method: direct - - EPA_eGRID_electric: - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2023 - year: 2023 - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2024_egrid.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2024_egrid.yaml deleted file mode 100644 index c7734d8f..00000000 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2024_egrid.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# Cornerstone 2024 national GHG FBS inheriting GHG_national_Cornerstone_2024. -# electric_power emissions come from stewi eGRID (plant-level) instead of -# UMD_GHGIA_T_2_S1 / UMD_GHGIA_T_3_7 electric_power activity sets. - -!include:GHG_national_Cornerstone_2024.yaml - source_names: !include:GHG_national_Cornerstone_2024.yaml:source_names - UMD_GHGIA_T_2_S1: - !include:GHG_national_Cornerstone_2024.yaml:source_names:UMD_GHGIA_T_2_S1 - activity_sets: - !include:GHG_national_Cornerstone_2024.yaml:source_names:UMD_GHGIA_T_2_S1:activity_sets - electric_power: - selection_fields: - PrimaryActivity: __handled_by_EPA_eGRID__ - attribution_method: direct - - UMD_GHGIA_T_3_7: - !include:GHG_national_Cornerstone_2024.yaml:source_names:UMD_GHGIA_T_3_7 - activity_sets: - !include:GHG_national_Cornerstone_2024.yaml:source_names:UMD_GHGIA_T_3_7:activity_sets - electric_power: - selection_fields: - PrimaryActivity: __handled_by_EPA_eGRID__ - attribution_method: direct - - EPA_eGRID_electric: - activity_to_sector_mapping: EPA_eGRID - FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector - inventory_dict: - eGRID: 2024 - year: 2024 - include_flow_names: - - Carbon dioxide - - Methane - - Nitrous oxide From 8f40b76f7c8fe7ab7d1fc35c835936846299f10a Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:47:34 -0600 Subject: [PATCH 05/15] delete egrid specific teat --- .../__tests__/test_egrid_yaml_schema_shape.py | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 bedrock/transform/ghg/__tests__/test_egrid_yaml_schema_shape.py diff --git a/bedrock/transform/ghg/__tests__/test_egrid_yaml_schema_shape.py b/bedrock/transform/ghg/__tests__/test_egrid_yaml_schema_shape.py deleted file mode 100644 index 4804a3c6..00000000 --- a/bedrock/transform/ghg/__tests__/test_egrid_yaml_schema_shape.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Schema-shape checks for eGRID Cornerstone GHG method YAMLs / catalog.""" - -from __future__ import annotations - -from pathlib import Path - -from bedrock.utils.config.common import get_catalog_info - -_GHG_DIR = Path(__file__).resolve().parents[1] -_CATALOG = ( - Path(__file__).resolve().parents[3] / 'utils' / 'config' / 'source_catalog.yaml' -) - -_PUBLISHED_2024 = _GHG_DIR / 'GHG_national_Cornerstone_2024_egrid.yaml' -_NOWCAST_BASE_2024 = _GHG_DIR / 'GHG_national_Cornerstone_nowcast_2024.yaml' - - -def test_egrid_catalog_activity_schema() -> None: - info = get_catalog_info('EPA_eGRID_electric') - assert info.get('data_format') == 'FBS_outside_flowsa' - assert info.get('activity_schema') == {'naics': {'year': 2017, 'hierarchy': 'flat'}} - catalog_text = _CATALOG.read_text(encoding='utf-8') - assert 'EPA_eGRID_electric:' in catalog_text - assert 'NAICS_2017_Code' not in catalog_text - - -def test_nowcast_2024_base_uses_catalog_egrid() -> None: - text = _NOWCAST_BASE_2024.read_text(encoding='utf-8') - assert 'EPA_eGRID_electric:' in text - assert 'UMD_GHGIA_T_3_7' not in text - assert 'Electric Power Sector: Electric Power' not in text - # Static schema lives in source_catalog, not the method YAML. - assert 'activity_schema:' not in text - assert 'data_format: FBS_outside_flowsa' not in text - assert 'eGRID: *ghgi_year' in text - - -def test_published_2024_egrid_overlay_uses_catalog() -> None: - text = _PUBLISHED_2024.read_text(encoding='utf-8') - assert '!include:GHG_national_Cornerstone_2024.yaml' in text - assert 'industry_spec:' not in text - assert 'activity_schema:' not in text - assert 'data_format: FBS_outside_flowsa' not in text - assert 'EPA_eGRID_electric:' in text From c22f7e76fb17df734383620f319d03fad48e72b9 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:48:47 -0600 Subject: [PATCH 06/15] update tests for industrial distillate and facilities - load and test cornerstone fbs method --- .../test_facilities_yaml_schema_shape.py | 104 ++++++++---------- .../test_industrial_distillate_attribution.py | 2 +- 2 files changed, 47 insertions(+), 59 deletions(-) diff --git a/bedrock/transform/ghg/__tests__/test_facilities_yaml_schema_shape.py b/bedrock/transform/ghg/__tests__/test_facilities_yaml_schema_shape.py index f416c04b..216131df 100644 --- a/bedrock/transform/ghg/__tests__/test_facilities_yaml_schema_shape.py +++ b/bedrock/transform/ghg/__tests__/test_facilities_yaml_schema_shape.py @@ -1,10 +1,13 @@ -"""Schema-shape checks for facilities nowcast GHG method YAMLs.""" +"""Schema-shape checks for year Cornerstone GHG methods.""" from __future__ import annotations -from pathlib import Path +import pytest + +from bedrock.extract.stewifbs.stewiFBS import facility_combustion_to_sector +from bedrock.extract.umd.UMD_GHGIA import prepare_facilities_industrial_combustion +from bedrock.utils.config.common import load_yaml_dict -_GHG_DIR = Path(__file__).resolve().parents[1] _REQUIRED_SETS = ( 'petroleum_still_gas', 'petroleum_facility', @@ -14,66 +17,51 @@ 'ng_manufacturing', 'coal', ) -_FACILITY_FLOWABLES = ( - 'Flowable: Petroleum', - 'Flowable: Natural Gas', - 'Flowable: Coal', - 'Flowable: Natural Gas - lease and plant', -) -def _facility_year_yamls() -> list[Path]: - """Year files only. ``_transportation_`` is a separate method stem.""" - return sorted( - p - for p in _GHG_DIR.glob('GHG_national_Cornerstone_nowcast_facilities_*.yaml') - if '_transportation_' not in p.name +@pytest.mark.parametrize('year', range(2017, 2025)) +def test_cornerstone_year_wires_facility_activity_sets(year: int) -> None: + method = load_yaml_dict(f'GHG_national_Cornerstone_{year}', 'FBS') + facilities = method['sources_to_cache']['GHGRP_NEI_Facilities'] + assert facilities['FBS_datapull_fxn'] is facility_combustion_to_sector + assert '221100' in facilities['exclude_sectors'] + assert {'Petroleum', 'Natural Gas', 'Coal'} <= set(facilities['keep_flowables']) + industrial = method['source_names']['UMD_GHGIA_T_3_11'] + assert ( + industrial['clean_fba_before_activity_sets'] + is prepare_facilities_industrial_combustion + ) + assert '221100' in industrial['clean_parameter']['exclude_sectors'] + assert industrial['clean_parameter']['annex_fba'] + sets = industrial['activity_sets'] + for name in _REQUIRED_SETS: + assert name in sets, f'{year} missing activity set {name}' + lease = sets['natural_gas_lease_plant']['attribution_source'][ + 'GHGRP_NEI_Facilities' + ]['selection_fields'] + assert lease['Flowable'] == 'Natural Gas - lease and plant' + petroleum_use = sets['petroleum_use'] + assert 'Nowcast_Detail_Use_AfterRedef' in petroleum_use['attribution_source'] + assert ( + 'Petroleum Industrial - Motor Gasoline' + in petroleum_use['selection_fields']['PrimaryActivity'] + ) + assert ( + 'Petroleum Industrial - Distillate Fuel Oil' + in sets['petroleum_distillate']['selection_fields']['PrimaryActivity'] ) -def test_facilities_yamls_wire_prep_and_activity_sets() -> None: - paths = _facility_year_yamls() - assert [p.name for p in paths] == [ - f'GHG_national_Cornerstone_nowcast_facilities_{y}.yaml' - for y in range(2017, 2025) - ] - for path in paths: - text = path.read_text(encoding='utf-8') - year = path.stem.rsplit('_', 1)[-1] - assert f'!include:GHG_national_Cornerstone_nowcast_{year}.yaml' in text - assert 'GHGRP_NEI_Facilities:' in text - assert ( - 'FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector' - in text - ) - assert ( - 'clean_fba_before_activity_sets: !script_function:UMD_GHGIA ' - 'prepare_facilities_industrial_combustion' - ) in text - assert "exclude_sectors:" in text - assert "'221100'" in text - assert 'annex_fba:' in text - for name in _REQUIRED_SETS: - assert f'{name}:' in text, f'{path.name} missing activity set {name}' - for flowable in _FACILITY_FLOWABLES: - assert flowable in text, f'{path.name} missing {flowable}' - assert 'Nowcast_Detail_Use_AfterRedef:' in text - assert 'Petroleum Industrial - Distillate Fuel Oil' in text - assert 'Petroleum Industrial - Motor Gasoline' in text - - -def test_still_gas_attributes_to_refineries_only() -> None: - """Still gas is refinery fuel (#983): weight on refineries' petroleum only (#1054). +@pytest.mark.parametrize('year', range(2017, 2025)) +def test_still_gas_attributes_to_refineries_only(year: int) -> None: + """Still gas is refinery fuel: weight on refineries' petroleum only. The cached facility source carries refineries as 32411 (industry spec); a - selection on '324110' alone matched nothing and dropped all still gas (#1060). + selection on '324110' alone matched nothing and dropped all still gas. """ - for path in _facility_year_yamls(): - text = path.read_text(encoding='utf-8') - block = text.split('petroleum_still_gas:', 1)[1].split( - 'petroleum_facility:', 1 - )[0] - assert 'GHGRP_NEI_Facilities:' in block, path.name - assert ( - "SectorProducedBy: ['32411', '324110']" in block - ), f'{path.name}: still gas must attribute to refineries only' + method = load_yaml_dict(f'GHG_national_Cornerstone_{year}', 'FBS') + still_gas = method['source_names']['UMD_GHGIA_T_3_11']['activity_sets'][ + 'petroleum_still_gas' + ] + fields = still_gas['attribution_source']['GHGRP_NEI_Facilities']['selection_fields'] + assert fields['SectorProducedBy'] == ['32411', '324110'] diff --git a/bedrock/transform/ghg/__tests__/test_industrial_distillate_attribution.py b/bedrock/transform/ghg/__tests__/test_industrial_distillate_attribution.py index 31335beb..de141c6a 100644 --- a/bedrock/transform/ghg/__tests__/test_industrial_distillate_attribution.py +++ b/bedrock/transform/ghg/__tests__/test_industrial_distillate_attribution.py @@ -128,7 +128,7 @@ def test_scale_business_types_rejects_unknown_type() -> None: def test_transportation_method_splits_industrial_petroleum() -> None: method = load_yaml_dict( - 'GHG_national_Cornerstone_nowcast_facilities_transportation_2024', + 'GHG_national_Cornerstone_2024', flowbytype='FBS', ) sets = method['source_names']['UMD_GHGIA_T_3_11']['activity_sets'] From 7beaa6db9134f35fea9f1d3238d9b8fe806649aa Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 14:01:30 -0600 Subject: [PATCH 07/15] add ghg fbs parquet pins for configs and waterfalls --- bedrock/utils/config/configs/2025_usa_cornerstone_v0_3.yaml | 1 + .../2025_usa_cornerstone_v0_3_electricity_disaggregation.yaml | 1 + .../configs/2025_usa_cornerstone_v0_3_electricity_footing.yaml | 1 + .../2025_usa_cornerstone_v0_3_electricity_mixed_units.yaml | 1 + .../2025_usa_cornerstone_v0_3_electricity_reaggregation.yaml | 1 + .../2025_usa_cornerstone_v0_3_electricity_reallocation.yaml | 1 + bedrock/utils/config/configs/2025_usa_cornerstone_v0_4.yaml | 3 ++- .../configs/2025_usa_cornerstone_v0_4_materials_alpha_0_8.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2017.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2018.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2019.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2020.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2021.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2022.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2023.yaml | 1 + .../config/configs/2025_usa_cornerstone_v0_4_nowcast_2024.yaml | 1 + ...rnerstone_v0_4_nowcast_2024_electricity_disaggregation.yaml | 1 + ..._usa_cornerstone_v0_4_nowcast_2024_electricity_footing.yaml | 1 + ...ornerstone_v0_4_nowcast_2024_electricity_reaggregation.yaml | 1 + ...cornerstone_v0_4_nowcast_2024_electricity_reallocation.yaml | 1 + .../config/configs/v03_waterfall_ceda_g1a_schema_ghg.yaml | 1 + .../config/configs/v03_waterfall_ceda_g1b_waste_disagg.yaml | 1 + .../config/configs/v03_waterfall_useeio_g1_schema_ghg.yaml | 1 + 23 files changed, 24 insertions(+), 1 deletion(-) diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3.yaml index 453fbb3b..bf558e2a 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3.yaml @@ -20,6 +20,7 @@ model_base_year: 2024 # Data selection ##### usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_v0.3.0_c3a2acc.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_disaggregation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_disaggregation.yaml index 7ed2deff..2bb8d4cd 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_disaggregation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_disaggregation.yaml @@ -1,6 +1,7 @@ # v0.3.1 electricity footing + reallocation + 3-way split (margins off; no mixed units). model_base_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_egrid_v0.3.0_672c37c.parquet apply_io_year_adjustments: True implement_waste_disaggregation: True cornerstone_industry_avg_margins: False diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_footing.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_footing.yaml index c1fe2356..e5959047 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_footing.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_footing.yaml @@ -14,6 +14,7 @@ model_base_year: 2024 # Data selection ##### usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_v0.3.0_c3a2acc.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_mixed_units.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_mixed_units.yaml index 8dd62e17..6c36176c 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_mixed_units.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_mixed_units.yaml @@ -1,6 +1,7 @@ # v0.3.1 electricity chain FINAL: reallocation + 3-way split + mixed units (margins off). model_base_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_egrid_v0.3.0_672c37c.parquet apply_io_year_adjustments: True implement_waste_disaggregation: True cornerstone_industry_avg_margins: False diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reaggregation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reaggregation.yaml index dbe96609..5dc2f9b1 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reaggregation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reaggregation.yaml @@ -2,6 +2,7 @@ # G/T/D to monetary 221100 (margins on to match production; no mixed units). model_base_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_egrid_v0.3.0_672c37c.parquet apply_io_year_adjustments: True implement_waste_disaggregation: True cornerstone_industry_avg_margins: True diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reallocation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reallocation.yaml index 2b2824a6..eb9bafa2 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reallocation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_3_electricity_reallocation.yaml @@ -1,6 +1,7 @@ # v0.3.1 electricity footing + co-production reallocation (margins off). model_base_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_v0.3.0_c3a2acc.parquet apply_io_year_adjustments: True implement_waste_disaggregation: True cornerstone_industry_avg_margins: False diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4.yaml index ac7a3aad..fa0eef6d 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4.yaml @@ -12,7 +12,7 @@ # GHG_national_Cornerstone_nowcast_2024 (UMD GHGIA 2024 # inventory + 2022 MECS, attributed on the 2024 nowcast # after-redef Use rather than published BEA 2017 Use). -# Loaded from the newest GCS parquet for that stem. +# Pinned by cornerstone_ghg_fbs_filename. # - Waste disaggregation and industry-average margins as in v0.3. # # nowcast_mut_vintage pins one GCS build so the snapshot cut from this config is @@ -32,6 +32,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_materials_alpha_0_8.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_materials_alpha_0_8.yaml index 622dcdf2..42e578a5 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_materials_alpha_0_8.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_materials_alpha_0_8.yaml @@ -24,6 +24,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2017.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2017.yaml index dcb13348..5ade0eda 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2017.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2017.yaml @@ -24,6 +24,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2017 usa_ghg_data_year: 2017 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2017_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2018.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2018.yaml index 4d136f0b..9ed63c33 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2018.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2018.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2018 usa_ghg_data_year: 2018 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2018_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2019.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2019.yaml index 425b2a07..60e9dd8e 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2019.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2019.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2019 usa_ghg_data_year: 2019 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2019_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2020.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2020.yaml index 2f58ebe9..366fa307 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2020.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2020.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2020 usa_ghg_data_year: 2020 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2020_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2021.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2021.yaml index d674ac86..bacd1df6 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2021.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2021.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2021 usa_ghg_data_year: 2021 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2021_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2022.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2022.yaml index 1f0c7b26..400266f8 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2022.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2022.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2022 usa_ghg_data_year: 2022 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2022_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2023.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2023.yaml index 7ffc0b59..05ed9405 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2023.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2023.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2023 usa_ghg_data_year: 2023 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2023_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024.yaml index fa100ab9..6c37c81a 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024.yaml @@ -21,6 +21,7 @@ iot_before_or_after_redefinition: after usa_detail_io_source: nowcast usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_disaggregation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_disaggregation.yaml index f44b0a29..2b397200 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_disaggregation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_disaggregation.yaml @@ -5,6 +5,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet apply_io_year_adjustments: False implement_waste_disaggregation: True waste_weights_year: match_io diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_footing.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_footing.yaml index 916fcd18..b276767b 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_footing.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_footing.yaml @@ -15,6 +15,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet ##### # Methodology selection diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reaggregation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reaggregation.yaml index 0115baf2..3ff83b1a 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reaggregation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reaggregation.yaml @@ -7,6 +7,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet apply_io_year_adjustments: False implement_waste_disaggregation: True waste_weights_year: match_io diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reallocation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reallocation.yaml index 810c9e27..ee37cfcb 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reallocation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_4_nowcast_2024_electricity_reallocation.yaml @@ -5,6 +5,7 @@ usa_detail_io_source: nowcast nowcast_mut_vintage: 'v0.3.0_4276083' usa_base_io_data_year: 2024 usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_2024_v0.3.0_0e1b0f0.parquet apply_io_year_adjustments: False implement_waste_disaggregation: True waste_weights_year: match_io diff --git a/bedrock/utils/config/configs/v03_waterfall_ceda_g1a_schema_ghg.yaml b/bedrock/utils/config/configs/v03_waterfall_ceda_g1a_schema_ghg.yaml index 3112d2db..c73008dd 100644 --- a/bedrock/utils/config/configs/v03_waterfall_ceda_g1a_schema_ghg.yaml +++ b/bedrock/utils/config/configs/v03_waterfall_ceda_g1a_schema_ghg.yaml @@ -6,6 +6,7 @@ model_base_year: 2024 price_type: producer usa_ghg_data_year: 2023 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2023_v0.3.0_9030001.parquet apply_io_year_adjustments: false implement_waste_disaggregation: false diff --git a/bedrock/utils/config/configs/v03_waterfall_ceda_g1b_waste_disagg.yaml b/bedrock/utils/config/configs/v03_waterfall_ceda_g1b_waste_disagg.yaml index f19117a3..1ec0ad2c 100644 --- a/bedrock/utils/config/configs/v03_waterfall_ceda_g1b_waste_disagg.yaml +++ b/bedrock/utils/config/configs/v03_waterfall_ceda_g1b_waste_disagg.yaml @@ -5,6 +5,7 @@ model_base_year: 2024 price_type: producer usa_ghg_data_year: 2023 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2023_v0.3.0_9030001.parquet apply_io_year_adjustments: false implement_waste_disaggregation: true diff --git a/bedrock/utils/config/configs/v03_waterfall_useeio_g1_schema_ghg.yaml b/bedrock/utils/config/configs/v03_waterfall_useeio_g1_schema_ghg.yaml index 9c6874e5..600ed772 100644 --- a/bedrock/utils/config/configs/v03_waterfall_useeio_g1_schema_ghg.yaml +++ b/bedrock/utils/config/configs/v03_waterfall_useeio_g1_schema_ghg.yaml @@ -6,6 +6,7 @@ price_type: producer iot_before_or_after_redefinition: before usa_ghg_data_year: 2023 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2023_v0.3.0_9030001.parquet use_E_data_year_for_x_in_B: true implement_waste_disaggregation: true From 3ac7b36aedc41f9b32795cb7ac4929528a3ae074 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 15:07:24 -0600 Subject: [PATCH 08/15] updates in configs - we now only have one ghg fbs yaml stem name --- bedrock/transform/allocation/derived.py | 24 ++------ .../utils/config/__tests__/test_usa_config.py | 56 +++++++++---------- ...2025_usa_cornerstone_v0_5_9_transport.yaml | 10 ++-- .../configs/2025_usa_cornerstone_v0_6.yaml | 7 +-- .../configs/v06_waterfall_g5_facilities.yaml | 3 +- bedrock/utils/config/usa_config.py | 28 ---------- .../validation/evaluate_feature_impact.md | 4 +- 7 files changed, 44 insertions(+), 88 deletions(-) diff --git a/bedrock/transform/allocation/derived.py b/bedrock/transform/allocation/derived.py index a7ab063a..fde43132 100644 --- a/bedrock/transform/allocation/derived.py +++ b/bedrock/transform/allocation/derived.py @@ -307,27 +307,16 @@ def _select_cornerstone_ghg_fbs_base_name() -> str: """Resolve Cornerstone GHG FBS ``base_name`` from the active USAConfig. ``usa_ghg_data_year`` selects the inventory-year method stem. - ``usa_detail_io_source`` distinguishes published BEA Use attribution - (``GHG_national_Cornerstone_{year}``) from nowcast Use attribution - (``GHG_national_Cornerstone_nowcast_{year}``). With nowcast, - ``use_facility_ghg_attribution`` selects the facility-attribution stem - (``GHG_national_Cornerstone_nowcast_facilities_{year}``) instead. - ``use_transportation_ghg_allocation`` selects - ``GHG_national_Cornerstone_nowcast_facilities_transportation_{year}`` - on top of that facility stem. + Returns FBS methods based on year (``GHG_national_Cornerstone_{year}``). + A published config may still pin the older versions parquet + by filename. Electricity-disaggregation configs use :func:`egrid_fbs_method_for_config` instead of this helper. """ usa = get_usa_config() year = usa.usa_ghg_data_year - if usa.usa_detail_io_source == 'bea_published': - return f'GHG_national_Cornerstone_{year}' - if usa.use_facility_ghg_attribution: - if usa.use_transportation_ghg_allocation: - return f'GHG_national_Cornerstone_nowcast_facilities_transportation_{year}' - return f'GHG_national_Cornerstone_nowcast_facilities_{year}' - return f'GHG_national_Cornerstone_nowcast_{year}' + return f'GHG_national_Cornerstone_{year}' def _load_egrid_fbs_for_electricity_disagg() -> pd.DataFrame: @@ -354,9 +343,8 @@ def _load_egrid_fbs_for_electricity_disagg() -> pd.DataFrame: def _exact_cornerstone_ghg_fbs_name(resolved_base_name: str) -> str | None: """Pinned parquet name for this stem, or ``None`` when the config omits it. - The pin is the full filename. It applies only when its stem is the stem - being loaded, so an electricity-disaggregation load of a different method - is not redirected at a facilities pin. + The pin is the full filename. It is loaded only when its stem is the stem + being loaded. """ import os # noqa: PLC0415 diff --git a/bedrock/utils/config/__tests__/test_usa_config.py b/bedrock/utils/config/__tests__/test_usa_config.py index e5b01a1a..b20e4a7f 100644 --- a/bedrock/utils/config/__tests__/test_usa_config.py +++ b/bedrock/utils/config/__tests__/test_usa_config.py @@ -280,7 +280,6 @@ def test_v0_5_release_yaml_pins_the_v0_5_build() -> None: v04 = _load_usa_config_from_file_name('2025_usa_cornerstone_v0_4.yaml') assert v05.nowcast_mut_vintage == 'v0.3.0_3096818' assert v05.use_facility_ghg_attribution - assert not v05.use_transportation_ghg_allocation assert not v04.use_facility_ghg_attribution _v05_only = { 'nowcast_mut_vintage', @@ -297,7 +296,6 @@ def test_v0_5_9_pins_the_2026q2_rebuild() -> None: assert v059.nowcast_mut_vintage == 'v0.5.0_a166975' assert v059.bea_price_index_vintage == '2026Q2' assert v059.use_facility_ghg_attribution - assert not v059.use_transportation_ghg_allocation assert v059.cornerstone_ghg_fbs_filename == ( 'GHG_national_Cornerstone_nowcast_facilities_2024_v0.5.0_a166975.parquet' ) @@ -309,58 +307,60 @@ def test_v0_5_9_pins_the_2026q2_rebuild() -> None: assert v059.model_dump(exclude=_v059_only) == v05.model_dump(exclude=_v059_only) -def test_v0_5_9_transport_matches_v0_5_9_with_transportation_ghg() -> None: - """v0.5.9 transport is v0.5.9 plus the transportation GHG FBS.""" +def test_v0_5_9_transport_selects_the_year_cornerstone_fbs() -> None: + """Transport config is nowcast 2024 and pins the older transportation FBS.""" from bedrock.transform.allocation.derived import ( _select_cornerstone_ghg_fbs_base_name, ) - v059 = _load_usa_config_from_file_name('2025_usa_cornerstone_v0_5_9.yaml') transport = _load_usa_config_from_file_name( '2025_usa_cornerstone_v0_5_9_transport.yaml' ) - assert transport.use_transportation_ghg_allocation - assert transport.bea_price_index_vintage == '2026Q2' + assert transport.usa_detail_io_source == 'nowcast' + assert transport.usa_base_io_data_year == 2024 + assert transport.usa_ghg_data_year == 2024 assert transport.nowcast_mut_vintage == 'v0.5.0_a166975' + assert transport.bea_price_index_vintage == '2026Q2' assert transport.cornerstone_ghg_fbs_filename == ( 'GHG_national_Cornerstone_nowcast_facilities_transportation_2024_' 'v0.5.0_011f41f.parquet' ) - _transport_only = { - 'use_transportation_ghg_allocation', - 'cornerstone_ghg_fbs_filename', - } - assert transport.model_dump(exclude=_transport_only) == v059.model_dump( - exclude=_transport_only - ) set_global_usa_config('2025_usa_cornerstone_v0_5_9_transport.yaml') - assert _select_cornerstone_ghg_fbs_base_name() == ( - 'GHG_national_Cornerstone_nowcast_facilities_transportation_2024' - ) + assert _select_cornerstone_ghg_fbs_base_name() == 'GHG_national_Cornerstone_2024' reset_usa_config(should_reset_env_var=True) set_global_usa_config('2025_usa_cornerstone_v0_5_9.yaml') - assert ( - _select_cornerstone_ghg_fbs_base_name() - == 'GHG_national_Cornerstone_nowcast_facilities_2024' - ) + assert _select_cornerstone_ghg_fbs_base_name() == 'GHG_national_Cornerstone_2024' def test_v0_6_matches_v0_5_9_transport() -> None: """v0.6 is the canonical config. - It matches v0.5.9 transport except the transportation GHG FBS pin. + It matches v0.5.9 transport except the GHG FBS pin and + use_facility_ghg_attribution. The loader returns + GHG_national_Cornerstone_2024. """ + from bedrock.transform.allocation.derived import ( + _select_cornerstone_ghg_fbs_base_name, + ) + assert CANONICAL_USA_CONFIG == '2025_usa_cornerstone_v0_6' v06 = _load_usa_config_from_file_name('2025_usa_cornerstone_v0_6.yaml') transport = _load_usa_config_from_file_name( '2025_usa_cornerstone_v0_5_9_transport.yaml' ) + assert v06.usa_detail_io_source == 'nowcast' + assert v06.usa_base_io_data_year == 2024 + assert v06.nowcast_mut_vintage == 'v0.5.0_a166975' + assert not v06.use_facility_ghg_attribution assert v06.cornerstone_ghg_fbs_filename == ( 'GHG_national_Cornerstone_nowcast_facilities_transportation_2024_' 'v0.5.0_82e24cd.parquet' ) - pin = {'cornerstone_ghg_fbs_filename'} - assert v06.model_dump(exclude=pin) == transport.model_dump(exclude=pin) + excluded = {'cornerstone_ghg_fbs_filename', 'use_facility_ghg_attribution'} + assert v06.model_dump(exclude=excluded) == transport.model_dump(exclude=excluded) + set_global_usa_config('2025_usa_cornerstone_v0_6.yaml') + assert _select_cornerstone_ghg_fbs_base_name() == 'GHG_national_Cornerstone_2024' + reset_usa_config(should_reset_env_var=True) def test_v0_4_release_yaml_loads() -> None: @@ -383,8 +383,8 @@ def _resolved_field_diff(a: str, b: str) -> dict[str, tuple[object, object]]: def test_v0_6_waterfall_rungs_bracket_the_release_config() -> None: - """G5 matches v0.5.9. G5 to the v0.6 release is transportation allocation - and its GHG FBS pin. + """G5 matches v0.5.9. G5 to the v0.6 release is the GHG FBS pin + and use_facility_ghg_attribution. """ assert ( _resolved_field_diff( @@ -405,10 +405,10 @@ def test_v0_6_waterfall_rungs_bracket_the_release_config() -> None: 'v06_waterfall_g5_facilities', '2025_usa_cornerstone_v0_6' ) assert set(release) == { - 'use_transportation_ghg_allocation', + 'use_facility_ghg_attribution', 'cornerstone_ghg_fbs_filename', } - assert release['use_transportation_ghg_allocation'] == (False, True) + assert release['use_facility_ghg_attribution'] == (True, False) def test_electricity_reaggregation_config_parsing() -> None: diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_5_9_transport.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_5_9_transport.yaml index be8c0540..3d983079 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_5_9_transport.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_5_9_transport.yaml @@ -1,11 +1,10 @@ # Cornerstone 2025 model - v0.5.9 transportation. # -# v0.5.9 settings with transportation GHG allocation on. -# These settings are the v0.6 config (2025_usa_cornerstone_v0_6). +# Same nowcast 2024 settings as 2025_usa_cornerstone_v0_6. # nowcast_mut_vintage is v0.5.0_a166975 and bea_price_index_vintage is -# 2026Q2, the index that Use was built with. use_transportation_ghg_allocation -# selects GHG_national_Cornerstone_nowcast_facilities_transportation_2024. -# cornerstone_ghg_fbs_filename pins that stem to +# 2026Q2, the index that Use was built with. The GHG loader returns +# GHG_national_Cornerstone_2024. cornerstone_ghg_fbs_filename still pins the +# older parquet # GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_011f41f.parquet. ##### @@ -27,7 +26,6 @@ bea_price_index_vintage: '2026Q2' # Methodology selection ##### use_facility_ghg_attribution: True -use_transportation_ghg_allocation: True cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_011f41f.parquet apply_io_year_adjustments: False implement_waste_disaggregation: True diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_6.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_6.yaml index fb5ae9a6..18f48f9f 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_v0_6.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_v0_6.yaml @@ -3,9 +3,8 @@ # 2024 nowcast model. Detail MUT is the after-redefinition build named by # nowcast_mut_vintage: v0.5.0_a166975, the 2026Q2 price-index rebuild. # bea_price_index_vintage 2026Q2 is the index those tables were built with. -# Transportation GHG allocation selects -# GHG_national_Cornerstone_nowcast_facilities_transportation_2024. -# cornerstone_ghg_fbs_filename pins that stem to +# The GHG loader returns GHG_national_Cornerstone_2024. +# cornerstone_ghg_fbs_filename still pins the older parquet # GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_82e24cd.parquet. # Waste disaggregation, industry-average margins, and no IO year adjustments. @@ -27,8 +26,6 @@ bea_price_index_vintage: '2026Q2' ##### # Methodology selection ##### -use_facility_ghg_attribution: True -use_transportation_ghg_allocation: True cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_82e24cd.parquet # v0.5.0 is correct here because a model always uses a FBS from the previous version apply_io_year_adjustments: False implement_waste_disaggregation: True diff --git a/bedrock/utils/config/configs/v06_waterfall_g5_facilities.yaml b/bedrock/utils/config/configs/v06_waterfall_g5_facilities.yaml index 580e1c31..cf322e54 100644 --- a/bedrock/utils/config/configs/v06_waterfall_g5_facilities.yaml +++ b/bedrock/utils/config/configs/v06_waterfall_g5_facilities.yaml @@ -4,7 +4,8 @@ # GHG_national_Cornerstone_nowcast_facilities_2024_v0.5.0_a166975.parquet. # This rung does not use the transportation GHG FBS # (GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_82e24cd). -# use_transportation_ghg_allocation is off. 2025_usa_cornerstone_v0_6 pins that file. +# 2025_usa_cornerstone_v0_6 pins that file. The loader still returns +# GHG_national_Cornerstone_2024. # # Relative to v06_waterfall_g4_nowcast this rung changes the Use pin, the # price-index vintage, facility attribution, and the GHG FBS pin together. diff --git a/bedrock/utils/config/usa_config.py b/bedrock/utils/config/usa_config.py index ee6da0e5..c8270889 100644 --- a/bedrock/utils/config/usa_config.py +++ b/bedrock/utils/config/usa_config.py @@ -313,12 +313,6 @@ class USAConfig(BaseModel): # of the MECS/Use nowcast stem. Ignored when the detail source is # bea_published. use_facility_ghg_attribution: bool = False - # When True with facility attribution, load - # GHG_national_Cornerstone_nowcast_facilities_transportation_{year} - # (on-road gasoline and diesel via highway fuel shares). False keeps the - # facility stem. Electricity disaggregation loads the eGRID FBS and does - # not read this flag. - use_transportation_ghg_allocation: bool = False ##### # Diagnostics baseline (parquet snapshots vs USEEIO Excel on GCS) @@ -429,28 +423,6 @@ def _validate_ghg_flag_compatibility(self) -> USAConfig: 'implement_electricity_reaggregation requires ' 'implement_electricity_disaggregation' ) - if self.use_transportation_ghg_allocation: - if ( - self.usa_detail_io_source != 'nowcast' - or not self.use_facility_ghg_attribution - ): - raise ValueError( - 'use_transportation_ghg_allocation requires ' - "usa_detail_io_source 'nowcast' and " - 'use_facility_ghg_attribution' - ) - if self.usa_ghg_data_year != 2024: - raise ValueError( - 'use_transportation_ghg_allocation is defined for ' - 'usa_ghg_data_year 2024 only; ' - f'got {self.usa_ghg_data_year}' - ) - if self.implement_electricity_disaggregation: - raise ValueError( - 'use_transportation_ghg_allocation is not used when ' - 'implement_electricity_disaggregation is on; that path ' - 'loads the eGRID FBS' - ) if ( self.implement_electricity_reaggregation and self.implement_electricity_mixed_units diff --git a/bedrock/utils/validation/evaluate_feature_impact.md b/bedrock/utils/validation/evaluate_feature_impact.md index ce5eba8b..4743479f 100644 --- a/bedrock/utils/validation/evaluate_feature_impact.md +++ b/bedrock/utils/validation/evaluate_feature_impact.md @@ -126,8 +126,8 @@ Optional inputs: `pr_url`, `model_base_year`, `usa_ghg_data_year`, Leave year overrides empty when the YAML already sets the correct `model_base_year` / `usa_ghg_data_year`. Overriding a year a flag forbids -fails at validation (for example `use_transportation_ghg_allocation` with -`usa_ghg_data_year` other than 2024). +fails at validation (for example a nowcast config whose +`usa_ghg_data_year` does not equal `usa_base_io_data_year`). Watch: `gh run list --workflow generate_diagnostics.yml`. From ad91b3224a199a1638efebd9d867120f2afa8341 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 15:45:10 -0600 Subject: [PATCH 09/15] drop the include statements --- .../ghg/GHG_national_Cornerstone_2017.yaml | 1355 ++++++++++++++--- .../ghg/GHG_national_Cornerstone_2018.yaml | 1324 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2019.yaml | 1321 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2020.yaml | 1321 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2021.yaml | 1321 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2022.yaml | 1312 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2023.yaml | 1312 +++++++++++++--- .../ghg/GHG_national_Cornerstone_2024.yaml | 1317 +++++++++++++--- 8 files changed, 9063 insertions(+), 1520 deletions(-) diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml index 1d60ab40..1984a683 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2017.yaml @@ -1,191 +1,1166 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2017.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2017: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2017. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. +# Nested EPA attribution FBAs for 2017/2018 are only available on GCS +# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. +# When running generateFlowBySector(), set download_sources_ok=True. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2017 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2017 + +mecs_year: &mecs_year 2018 +coa_year: &coa_year 2017 +epa_ghgi_year: &epa_ghgi_year 2017 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2017 + inventory_dict: + GHGRP: 2017 + NEI: 2017 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2017 + inventory_dict: + GHGRP: 2017 + NEI: 2017 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2017 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2017: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2017: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_17: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2017.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2017: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2017.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2017 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2017: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2017: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + # EPA published no eGRID 2017, so 2017 is estimated from the two neighbouring + # eGRID years. They are NOT averaged in levels: 2017 was a trough for power + # sector emissions, not a point on the line between 2016 and 2018. The GHG + # inventory has electric power CO2 at 1808.9 MMT in 2016, 1732.0 in 2017 and + # 1753.4 in 2018 -- down 4.3% then back up 1.2% -- so a straight average puts + # 2017 2.8% too high and turns the 2017->2018 rise into a 1.5% fall. Almost + # all of that is natural gas (GHGI table 3-7: gas CO2 dips to 505.6 MMT in + # 2017 from 545.0 in 2016, then rebounds to 577.9 in 2018; coal is close to + # linear over the same three years). + # + # Instead each eGRID year is moved onto 2017 by the inventory's own ratio + # between the two years, and the two resulting estimates are averaged. eGRID + # supplies the plant-level composition, the inventory supplies the timing. + # The two estimates land at 1767.3 and 1769.0 MMT CO2 -- 0.10% apart, against + # an eGRID/GHGI level offset of 1.0203 in 2016 and 1.0214 in 2018, which is + # what makes the index credible here. Closes #914. + EPA_eGRID_electric: + FBS_datapull_fxn: !clean_function:flowbyclean average_flowby + index_source: + # Electric power sector CO2, the series this source replaced for 2018+. + # Only its 2017/2016 and 2017/2018 ratios are used, so the MMT CO2e unit + # and the boundary difference against eGRID both cancel. Table 3-7's + # all-gas total gives the same ratios to within 0.03%. + UMD_GHGIA_T_2_S1: + selection_fields: + ActivityProducedBy: Electric Power Sector + FlowName: CO2 + datasource_1: + EPA_eGRID_electric: + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: 2016 + year: 2016 + activity_to_sector_mapping: EPA_eGRID + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + datasource_2: + EPA_eGRID_electric: + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: 2018 + year: 2018 + activity_to_sector_mapping: EPA_eGRID + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + year: 2017 # target year: what the eGRID years are indexed onto + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2017 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2017 + nei_year: 2017 + annex_fba: 'UMD_GHGIA_T_A5_1_S7' + annex_year: 2017 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2017 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2017: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2017 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2017: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2017: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2017: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2017: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2017: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml index 3d38975c..65f8aa65 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2018.yaml @@ -1,191 +1,1135 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2018.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2018: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2018. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. +# Nested EPA attribution FBAs for 2017/2018 are only available on GCS +# (labeled v2.0.3); raw EPA GHGI releases do not go back before 2019. +# When running generateFlowBySector(), set download_sources_ok=True. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2018 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2018 + +mecs_year: &mecs_year 2018 +coa_year: &coa_year 2017 +epa_ghgi_year: &epa_ghgi_year 2018 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + # Between censuses, blend 2017 and 2022 linearly (#934). + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2018 + inventory_dict: + GHGRP: 2018 + NEI: 2018 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2018 + inventory_dict: + GHGRP: 2018 + NEI: 2018 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2018 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2018: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2018: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_17 (direct) and T_5_18 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_17: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2018.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2018: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2018.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2018 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2018: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2018: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2018 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2018 + nei_year: 2018 + annex_fba: 'UMD_GHGIA_T_A5_1_S6' + annex_year: 2018 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2018 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2018: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2018 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2018: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2018: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2018: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2018: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2018: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml index 80d88c41..b21544fa 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2019.yaml @@ -1,191 +1,1132 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2019.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2019: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2019. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2019 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2019 + +mecs_year: &mecs_year 2018 +coa_year: &coa_year 2017 +epa_ghgi_year: &epa_ghgi_year 2019 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + # Between censuses, blend 2017 and 2022 linearly (#934). + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2019 + inventory_dict: + GHGRP: 2019 + NEI: 2019 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2019 + inventory_dict: + GHGRP: 2019 + NEI: 2019 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2019 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2019: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2019: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2019.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2019: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2019.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2019 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2019: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2019: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2019 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2019 + nei_year: 2019 + annex_fba: 'UMD_GHGIA_T_A5_1_S5' + annex_year: 2019 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2019 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2019: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2019 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2019: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2019: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2019: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2019: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2019: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml index 62be424a..ac8d2ad3 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2020.yaml @@ -1,191 +1,1132 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2020.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2020: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2020. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2020 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2020 + +mecs_year: &mecs_year 2018 +coa_year: &coa_year 2017 +epa_ghgi_year: &epa_ghgi_year 2020 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + # Between censuses, blend 2017 and 2022 linearly (#934). + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2020 + inventory_dict: + GHGRP: 2020 + NEI: 2020 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2020 + inventory_dict: + GHGRP: 2020 + NEI: 2020 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2020 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2020: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2020: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2020.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2020: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2020.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2020 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2020: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2020: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2020 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2020 + nei_year: 2020 + annex_fba: 'UMD_GHGIA_T_A5_1_S4' + annex_year: 2020 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2020 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2020: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2020 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2020: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2020: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2020: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2020: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2020: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml index 98f516bc..cb278100 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2021.yaml @@ -1,191 +1,1132 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2021.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2021: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2021. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2021 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2021 + +mecs_year: &mecs_year 2022 +coa_year: &coa_year 2022 +epa_ghgi_year: &epa_ghgi_year 2021 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + # Between censuses, blend 2017 and 2022 linearly (#934). + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2021 + inventory_dict: + GHGRP: 2021 + NEI: 2021 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2021 + inventory_dict: + GHGRP: 2021 + NEI: 2021 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2021 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2021: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2021: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2021.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2021: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2021.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2021 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2021: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2021: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2021 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2021 + nei_year: 2021 + annex_fba: 'UMD_GHGIA_T_A5_1_S3' + annex_year: 2021 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2021 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2021: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2021 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2021: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2021: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2021: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2021: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2021: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml index 65c87bea..2345e477 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2022.yaml @@ -1,191 +1,1123 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2022.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2022: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2022. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2022 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2022 + +mecs_year: &mecs_year 2022 +coa_year: &coa_year 2022 +epa_ghgi_year: &epa_ghgi_year 2022 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2022 + inventory_dict: + GHGRP: 2022 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2022 + inventory_dict: + GHGRP: 2022 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2022 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2022: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2022: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2022.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2022: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2022.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2022 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2022: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2022: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2022 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2022 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S2' + annex_year: 2022 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2022 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2022: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2022 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25b + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25b: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2022: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2022: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2022: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2022: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2022: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml index 147ff7f3..67e16671 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2023.yaml @@ -1,191 +1,1123 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2023.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2023: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2023. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2023 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2023 + +mecs_year: &mecs_year 2022 +coa_year: &coa_year 2022 +epa_ghgi_year: &epa_ghgi_year 2023 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Pure facility combustion (prefer-GHGRP): FlowAmount is CO2e in kg. + # Used for lease/plant NG and still gas (no MECS/Use fallback). + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2023 + inventory_dict: + GHGRP: 2023 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS (Energy bcf/kg or Money USD) become NAICS shares, + # then: keep_prior->MECS, facility_vector->facility, + # facility_floor->max(shares); renormalize per fuel. Still gas stays on + # GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2023 + inventory_dict: + GHGRP: 2023 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2023 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2023: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2023: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2023.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2023: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2023.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2023 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2023: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2023: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2023 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2023 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S1' + annex_year: 2023 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' + # own petroleum only, not every facility's. + # The cached source carries refineries at industry spec, 32411; + # '324110' alone matched nothing and dropped all still gas. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2023 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2023: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2023 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2023: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2023: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2023: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2023: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2023: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + diff --git a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml index 60bd88b8..034ae9bb 100644 --- a/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml +++ b/bedrock/transform/ghg/GHG_national_Cornerstone_2024.yaml @@ -1,191 +1,1128 @@ -# Facilities GHG method. Truck, bus, and passenger-car rows use highway -# fuel shares (private industries already attributed with VIUS in the -# energy FBS). Uses the transportation sector crosswalk; otherwise -# inherits the facilities method. -# Modifies UMD GHGIA T_3_8 / T_3_9 / T_3_10, and T_3_11 industrial distillate - - -!include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml - _attribution_sources: !include:GHG_national_Cornerstone_nowcast_2024.yaml:_attribution_sources - Energy_highway_fuel_shares_national_2024: &highway_fuel_shares - data_format: FBS - geoscale: national - Nowcast: &nowcast +# Cornerstone GHG national method, inventory year 2024. +# Nowcast Use attribution, facility combustion, and on-road gasoline and +# diesel via highway fuel shares. Uses UMD GHGIA FBAs. Some nested EPA GHGI +# tables remain for soils / NEU allocation and fluorochemical MT detail. + +!include:Cornerstone_2025_target.yaml +year: &ghgi_year 2024 +target_schema_year: 2017 +geoscale: national + +ghgrp_sector_floor: 2024 + +mecs_year: &mecs_year 2022 +coa_year: &coa_year 2022 +epa_ghgi_year: &epa_ghgi_year 2023 + +sources_to_cache: + USDA_CoA_Cropland_NAICS: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - FARM OPERATIONS + - AG LAND, CROPLAND, HARVESTED + estimate_suppressed: !clean_function:flowbyclean estimate_suppressed_sectors_equal_attribution + + # Facility combustion in kg CO2e. Lease/plant natural gas and still gas + # have no MECS/Use fallback. + GHGRP_NEI_Facilities: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS facility_combustion_to_sector + year: 2024 + inventory_dict: + GHGRP: 2024 + NEI: 2022 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + # Facility sector-weight Flowables (Petroleum / Natural Gas / Coal). + # Lease/plant NG is added later from GHGRP subpart W as its own Flowable + # ("Natural Gas - lease and plant"). + keep_flowables: + - Petroleum + - Natural Gas + - Coal + # Attribution shares on SectorConsumedBy (Unit=share). One FBS with + # Natural Gas / Coal / Petroleum; each fuel's FlowAmount sums to 1. + # Facility CO2e and MECS become NAICS shares, then keep_prior->MECS, + # facility_vector->facility, facility_floor->max(shares); renormalize + # per fuel. Still gas stays on GHGRP_NEI (kg). + Hybrid_Facility_MECS: + data_format: FBS_outside_flowsa + FBS_datapull_fxn: !script_function:stewiFBS hybrid_facility_mecs_to_sector + year: 2024 + inventory_dict: + GHGRP: 2024 + NEI: 2022 + min_coverage: 0.8 + sector_prefixes: + - '21' + - '22' + - '31' + - '32' + - '33' + exclude_sectors: + - '221100' + mecs_method: Energy_manufacturing_national_nowcast_2024 + flowables: + Natural Gas: Energy + Coal: Energy + Petroleum: Money + keep_flowables: + - Natural Gas + - Coal + - Petroleum + +_attribution_sources: + # Nested EPA_GHGI_T_3_25 below is inventory, not UMD T_3_25 (petroleum-systems CH4). + Energy_manufacturing_national_nowcast_2024: &mecs_energy_alloc + data_format: FBS + geoscale: national + + Energy_highway_fuel_shares_national_2024: &highway_fuel_shares + data_format: FBS + geoscale: national + + Nowcast: &nowcast # NowcastMUT after-redef Use at inventory year + year: *ghgi_year + activity_to_sector_mapping: Cornerstone_2025 + exclusion_fields: + # Drop FD columns that should not take intermediate attribution + ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', + 'F06E00', 'F07E00', 'F10E00', 'F02R00'] + attribution_method: equal + +source_names: + UMD_GHGIA_T_2_S1: # U.S. GHG totals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: + - Abandoned Oil and Gas Wells #CH4 + - Abandoned Underground Coal Mines #CH4 + - Adipic Acid Production #N2O + - Aluminum Production #CO2 + - Ammonia Production #CO2 + - Anaerobic Digestion at Biogas Facilities #CH4 + - Caprolactam, Glyoxal, and Glyoxylic Acid Production #N2O + - Carbide Production and Consumption #CO2 + - Cement Production #CO2 + - Coal Mining #CH4, CO2 + - Composting #CH4, N2O + - Ferroalloy Production #CO2, CH4 + - Glass Production #CO2 + - Landfills #CH4 + - Lead Production #CO2 + - Incineration of Waste #N2O and CO2 + - Lime Production #CO2 + - Iron and Steel Production & Metallurgical Coke Production #CO2, CH4 + - Nitric Acid Production #N2O + - Phosphoric Acid Production #CO2 + - Rice Cultivation #CH4 + - Soda Ash Production #CO2 + - Titanium Dioxide Production #CO2 + - Wastewater Treatment #CH4, N2O + - Zinc Production #CO2 + FlowName: ["CO2", "CH4", "N2O"] # HFCs and other flows are pulled elsewhere + attribution_method: direct + electricity_transmission: + selection_fields: + PrimaryActivity: + - Electrical Equipment # SF6 + FlowName: SF6 + attribution_method: direct + + liming: # liming of agricultural soils + selection_fields: + PrimaryActivity: Liming #CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'327400': ''} # Lime and Gypsum Products + + urea: + selection_fields: + PrimaryActivity: + - Urea Consumption for Non-Agricultural Purposes # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + urea_fertilizer: + selection_fields: + PrimaryActivity: Urea Fertilization # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # Fertilizers + + carbonate_use: + selection_fields: + PrimaryActivity: Other Process Uses of Carbonates # CO2 + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325180': ''} # Other Basic Inorganic Chemicals + + nitrous_oxide_use: + selection_fields: + PrimaryActivity: N2O from Product Uses # N2O + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'325120': ''} # Industrial gases + + field_burning_n2O: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["N2O"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: &field_burning + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: + CH4: N2O # replacing flow name + attribution_method: direct + + field_burning_ch4: + selection_fields: + PrimaryActivity: + - Field Burning of Agricultural Residues + FlowName: ["CH4"] + attribution_method: proportional + attribution_source: + UMD_GHGIA_T_5_15: + <<: *field_burning + selection_fields: + PrimaryActivity: + - Chickpeas + - Cotton + - Maize + - Rice + - Soybeans + - Wheat + - Lentils + - Sugarcane + FlowName: ["CH4"] + + +## Fossil Fuels + UMD_GHGIA_T_3_28: &natgas #CH4 from Natural Gas Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Distribution + - Post-Meter + - Exploration + - Processing + - Production + - Transmission and Storage + attribution_method: direct + UMD_GHGIA_T_3_29: *natgas # CO2 from Natural Gas Systems mimics CH4 + UMD_GHGIA_T_3_30: *natgas # N2O from Natural Gas Systems mimics CH4, note 3-30 does not have "Post-Meter" + + UMD_GHGIA_T_3_25: &petroleum #CH4 from Petroleum Systems + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: +# - Crude Oil Transportation # not included in UMD + - Transportation + - Exploration + - Production + - Refineries +# - Crude Refining # not included in UMD + attribution_method: direct + UMD_GHGIA_T_3_26: *petroleum # CO2 from Petroleum Systems mimics CH4 + UMD_GHGIA_T_3_27: *petroleum # N2O from Petroleum Systems mimics CH4 + +## Agriculture + UMD_GHGIA_T_5_3: &animals #CH4 from Enteric Fermentation + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - American Bison + - Beef Cattle + - Dairy Cattle + - Goats + - Horses + - Mules and Asses + - Sheep + - Swine + - Poultry # note, not in 5-3, is included in 5-6 + attribution_method: direct + UMD_GHGIA_T_5_6: *animals # CH4 and N2O from manure management + + UMD_GHGIA_T_5_10: # UMD Table 5-10 totals; allocate via EPA T_5_18 (direct) and T_5_19 (indirect) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct: + selection_fields: + PrimaryActivity: Direct Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_18: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Organic Amendment Cropland + - Residue N Cropland + - Synthetic Fertilizer Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + cropland: + selection_fields: + PrimaryActivity: + - Mineralization and Asymbiotic Fixation Cropland + - Drained Organic Soils Cropland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland: + year: *coa_year + selection_fields: + Class: Land + FlowName: + - AREA HARVESTED + - AREA BEARING & NON-BEARING # Orchards + - AREA GROWN # Berry totals + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: AG LAND, CROPLAND, HARVESTED + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + indirect: + selection_fields: + PrimaryActivity: Indirect Agricultural Soil Management + attribution_method: proportional + attribution_source: + EPA_GHGI_T_5_19: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + fertilizer_use: + selection_fields: + PrimaryActivity: + - Volatilization & Atm. Deposition Cropland + - Surface Leaching & Run-Off Cropland + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + # Each crop's fertilizer purchases follow its revenue year to + # year; blend the census-year tables instead (#934). + year: *coa_year + clean_fba: !clean_function:flowbyclean interpolate_census_years + census_interpolation: + years: [2017, 2022] + target_year: *ghgi_year + normalize: true + selection_fields: + ActivityProducedBy: {'325310': ''} # fertilizer sectors + + pasture: + selection_fields: + PrimaryActivity: + - All activities Grassland + attribution_method: proportional + attribution_source: + USDA_CoA_Cropland_NAICS: + selection_fields: + Flowable: FARM OPERATIONS + + +### Mobile Sources + UMD_GHGIA_T_3_8: #CO2 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_mobile_combustion + clean_parameter: year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - exclusion_fields: - ActivityConsumedBy: ['F03000', 'F04000', 'F05000', 'F02E00', - 'F06E00', 'F07E00', 'F10E00', 'F02R00'] - attribution_method: equal - - source_names: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names - UMD_GHGIA_T_3_8: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_8:activity_sets - # Non-road / motorcycle / buses; cars / LDT / MHD via highway shares. - direct_gasoline: - selection_fields: - PrimaryActivity: - Buses Gasoline: Buses - Motorcycles Gasoline: Motorcycles - Recreational Boats Gasoline: Recreational Boats - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - petroleum_fuels_diesel_buses: - selection_fields: - PrimaryActivity: - Buses Diesel Fuel: Buses - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Buses' - - petroleum_fuels_diesel_automobiles: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel Fuel: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_diesel_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel Fuel: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline: Passenger Cars - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_light_duty_trucks: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - petroleum_fuels_gasoline_trucks: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Trucks' - - UMD_GHGIA_T_3_9: &mobile !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9 - activity_to_sector_mapping: UMD_GHGIA_transportation - activity_sets: !include:GHG_national_Cornerstone_nowcast_2024.yaml:source_names:UMD_GHGIA_T_3_9:activity_sets - direct_diesel: - selection_fields: - PrimaryActivity: - Passenger Cars Diesel On-Road: Passenger Cars - Households - Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses - attribution_method: direct - - petroleum_fuels_diesel: - selection_fields: - PrimaryActivity: - Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Trucks' - - light_duty_trucks_diesel: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Diesel On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Diesel; Automobiles' - - petroleum_fuels_gasoline: - selection_fields: - PrimaryActivity: - Passenger Cars Gasoline On-Road: Passenger Cars - Households - attribution_method: direct - - light_duty_trucks_gasoline: - selection_fields: - PrimaryActivity: - Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks - attribution_method: proportional - attribution_source: - Energy_highway_fuel_shares_national_2024: - <<: *highway_fuel_shares - selection_fields: - Flowable: 'Gasoline; Automobiles' - - UMD_GHGIA_T_3_10: *mobile # N2O from mobile combustion duplicates method for CH4 - - # Industrial distillate is almost all burned off-road by farms, - # construction and mining. Weight it by each group's physical fuel volume - # (EIA farm and off-highway sales, Economic Census mining diesel, MECS) - # rather than by refinery purchases, which also carry the on-road truck - # fuel attributed above. Motor gasoline keeps the facilities weighting. - UMD_GHGIA_T_3_11: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11 - activity_sets: !include:GHG_national_Cornerstone_nowcast_facilities_2024.yaml:source_names:UMD_GHGIA_T_3_11:activity_sets - petroleum_use: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Motor Gasoline - attribution_method: proportional - attribution_source: - Nowcast_Detail_Use_AfterRedef: - year: 2024 - activity_to_sector_mapping: Cornerstone_2025 - selection_fields: - ActivityProducedBy: {'324110': ''} - clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers - attribution_method: equal - - petroleum_distillate: - selection_fields: - PrimaryActivity: - - Petroleum Industrial - Distillate Fuel Oil - attribution_method: proportional - attribution_source: - Energy_industrial_distillate_national_2024: - data_format: FBS - geoscale: national + activity_sets: + direct_residual_fuel_oil: + selection_fields: + PrimaryActivity: + Ships & Boats Residual Fuel Oil: Ships and Boats + attribution_method: direct + + direct_lpg: + selection_fields: + PrimaryActivity: + Buses LPG: Buses + Medium- and Heavy-Duty Trucks LPG: Medium- and Heavy-Duty Trucks + Light-Duty Trucks LPG: Light-Duty Trucks - Households + Passenger Cars LPG: Passenger Cars - Households + attribution_method: direct + + direct_jet: + selection_fields: + PrimaryActivity: + General Aviation Aircraft Aviation Gasoline: General Aviation Aircraft + General Aviation Aircraft Jet Fuel: General Aviation Aircraft + Commercial Aircraft Jet Fuel: Commercial Aircraft + Military Aircraft Jet Fuel: Military Aircraft + attribution_method: direct + + direct_ng: + selection_fields: + PrimaryActivity: + Buses Natural Gas: Buses + Pipeline Natural Gas: Pipeline Natural Gas + Medium- and Heavy-Duty Trucks Natural Gas: Medium- and Heavy-Duty Trucks + attribution_method: direct + + lng_liquefaction: + selection_fields: + PrimaryActivity: + - Pipeline Natural Gas - LNG Liquefaction + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - LNG liquefaction + + direct_diesel: + selection_fields: + PrimaryActivity: + Rail Diesel Fuel: Rail + Recreational Boats Diesel Fuel: Recreational Boats + Ships and Non-Recreational Boats Diesel Fuel: Ships and Non-Recreational Boats + attribution_method: direct + + direct_gasoline: + selection_fields: + PrimaryActivity: + Buses Gasoline: Buses + Motorcycles Gasoline: Motorcycles + Recreational Boats Gasoline: Recreational Boats + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel Fuel: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + petroleum_fuels_diesel_buses: + selection_fields: + PrimaryActivity: + Buses Diesel Fuel: Buses - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Buses' + + petroleum_fuels_diesel_automobiles: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel Fuel: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_diesel_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel Fuel: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline: Passenger Cars + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_light_duty_trucks: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + petroleum_fuels_gasoline_trucks: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Gasoline: Medium- and Heavy-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Trucks' + + UMD_GHGIA_T_3_9: &mobile #CH4 from mobile combustion + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA_transportation + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + direct_gasoline: # empty in some years (<0.05 MMT CO2eq) + selection_fields: + PrimaryActivity: + Motorcycles Gasoline On-Road: Motorcycles + Medium- and Heavy-Duty Trucks and Buses Gasoline On-Road: Medium- and Heavy-Duty Trucks and Buses + attribution_method: direct + + direct_diesel: + selection_fields: + PrimaryActivity: + Passenger Cars Diesel On-Road: Passenger Cars - Households + Medium- and Heavy-Duty Buses Diesel On-Road: Medium- and Heavy-Duty Buses + attribution_method: direct + + direct_non_road: + selection_fields: + PrimaryActivity: + Rail Non-Road: Rail + Ships and Boats Non-Road: Ships and Boats + Aircraft Non-Road: General Aviation Aircraft + attribution_method: direct + + petroleum_fuels_diesel: + selection_fields: + PrimaryActivity: + Medium- and Heavy-Duty Trucks Diesel On-Road: Medium- and Heavy-Duty Trucks - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Trucks' + + light_duty_trucks_diesel: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Diesel On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Diesel; Automobiles' + + petroleum_fuels_gasoline: + selection_fields: + PrimaryActivity: + Passenger Cars Gasoline On-Road: Passenger Cars - Households + attribution_method: direct + + light_duty_trucks_gasoline: + selection_fields: + PrimaryActivity: + Light-Duty Trucks Gasoline On-Road: Light-Duty Trucks + attribution_method: proportional + attribution_source: + Energy_highway_fuel_shares_national_2024: + <<: *highway_fuel_shares + selection_fields: + Flowable: 'Gasoline; Automobiles' + + construction_and_mining: #this set is allocated by purchases of construction equipment + selection_fields: + PrimaryActivity: Construction/Mining Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333120': ''} # purchases of construction/mining equipment + + farm_non_road: #this set is allocated by purchases of farm machinery + selection_fields: + PrimaryActivity: Agricultural Equipment Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333111': ''} # purchases of farm machinery + + other_non_road: #this set is allocated by purchases of petroleum refining + selection_fields: + PrimaryActivity: Other Non-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + alt_fuel_on_road: #this set is allocated by purchases of natural gas + selection_fields: # empty in some years (<0.05 MMT CO2eq) + PrimaryActivity: + All activities Alternative Fuel On-Road: Alternative Fuel On-Road + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + UMD_GHGIA_T_3_10: *mobile #N2O from mobile combustion duplicates method for CH4 + +## Stationary Combustion + UMD_GHGIA_T_3_4: &umd_t_3_4 # stationary combustion - CO2 residential + commercial (other gases from 3-12) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_commercial_co2: + selection_fields: + FlowName: CO2 + PrimaryActivity: + - Coal Residential + - Natural Gas Residential + - Petroleum Residential + attribution_method: direct + + non_manufacturing_coal: + selection_fields: + PrimaryActivity: + - Coal Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'212100': ''} # purchases of coal + + non_manufacturing_natural_gas: + selection_fields: + PrimaryActivity: + - Natural Gas Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'221200': ''} # purchases of natural gas + + petroleum_commercial: + selection_fields: + PrimaryActivity: + - Petroleum Commercial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'324110': ''} # purchases of refinery products + + EPA_eGRID_electric: # stationary combustion - electricity (plant-level eGRID; replaces UMD T_2_S1 electric_power + T_3_7) + activity_to_sector_mapping: EPA_eGRID + FBS_datapull_fxn: !script_function:stewiFBS egrid_to_sector + inventory_dict: + eGRID: *ghgi_year + year: *ghgi_year + include_flow_names: + - Carbon dioxide + - Methane + - Nitrous oxide + + UMD_GHGIA_T_3_11: # Stationary combustion - industrial + year: 2024 + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:UMD_GHGIA prepare_facilities_industrial_combustion + clean_parameter: + year: 2024 + nei_year: 2022 + annex_fba: 'UMD_GHGIA_T_A5_1_S1' + annex_year: 2023 + exclude_sectors: + - '221100' + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + petroleum_still_gas: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Still Gas + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Petroleum + # Still gas is refinery fuel: weight on refineries' own + # petroleum only. The cached source carries refineries at + # industry spec 32411 and at 324110. + SectorProducedBy: ['32411', '324110'] + + petroleum_facility: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Petroleum Coke + - Petroleum Industrial - HGL + - Petroleum Industrial - Kerosene + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Petroleum + + petroleum_use: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Motor Gasoline + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2024 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'324110': ''} + clean_fba: !script_function:EIA_MECS keep_industrial_petroleum_consumers + attribution_method: equal + + petroleum_distillate: + selection_fields: + PrimaryActivity: + - Petroleum Industrial - Distillate Fuel Oil + attribution_method: proportional + attribution_source: + Energy_industrial_distillate_national_2024: + data_format: FBS + geoscale: national + + natural_gas_lease_plant: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Lease and Plant + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - lease and plant + + # Natural gas reformed into hydrogen, carved from manufacturing natural + # gas by the GHGRP subpart P amount and attributed to the reporting + # plants' sectors: industrial gases and refineries. + natural_gas_hydrogen: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Hydrogen Production + attribution_method: proportional + attribution_source: + GHGRP_NEI_Facilities: + selection_fields: + Flowable: Natural Gas - hydrogen production + + natural_gas_nonmanufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + year: 2024 + activity_to_sector_mapping: Cornerstone_2025 + selection_fields: + ActivityProducedBy: {'221200': ''} + attribution_method: equal + + ng_manufacturing: + selection_fields: + PrimaryActivity: + - Natural Gas Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Natural Gas + + coal: + selection_fields: + PrimaryActivity: + - Coal Industrial + - Coal Industrial - Manufacturing + attribution_method: proportional + attribution_source: + Hybrid_Facility_MECS: + selection_fields: + Flowable: Coal + + # Intentionally left out 'Wood Commercial' and 'Wood Industrial' + + UMD_GHGIA_T_3_12: # Stationary combustion - CH4 + N2O residential + commercial (CO2 from T_3_4) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + residential_non_co2_direct: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Wood Residential and Commercial # all assigned to residential based on EPA GHGI history + attribution_method: direct + + residential_commercial_non_co2: + selection_fields: + FlowName: [CH4, N2O] # exclude co2 + PrimaryActivity: + - Coal Residential and Commercial + - Natural Gas Residential and Commercial + - Petroleum Residential and Commercial + attribution_method: proportional + attribution_source: + # using co2 data to proportionally attribute to residential and commercial + UMD_GHGIA_T_3_4: *umd_t_3_4 + + +## Other sources + UMD_GHGIA_T_4_31: #CO2 for selected petrochemicals + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Acrylonitrile + - Carbon Black + - Ethylene + - Ethylene Dichloride + - Ethylene Oxide + - Methanol + attribution_method: direct + + UMD_GHGIA_T_3_14: # UMD Table 3-14 totals; allocate via EPA T_3_25 + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + emissions: + selection_fields: + PrimaryActivity: Emissions NEU Fossil Fuel Consumption + attribution_method: proportional + attribution_source: + EPA_GHGI_T_3_25: + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + activity_sets: + coal: + selection_fields: + PrimaryActivity: + - Industry Industrial Coking Coal + - Industry Industrial Other Coal + attribution_method: direct + + petroleum_neu_asphalt: + selection_fields: + PrimaryActivity: + 'Industry Asphalt & Road Oil': Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2024: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + # Allocated to asphalt sectors only + SectorConsumedBy: + - '324121' + - '324122' + + petroleum_neu_hgl: + selection_fields: + PrimaryActivity: + Industry HGL: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2024: + <<: *mecs_energy_alloc + selection_fields: + Flowable: HGL + Class: Other + + petroleum_neu: + selection_fields: + PrimaryActivity: + Industry Distillate Fuel Oil: Industry Petroleum Products Non-energy + Industry Lubricants: Industry Petroleum Products Non-energy + Industry Miscellaneous Products: Industry Petroleum Products Non-energy + 'Industry Naphtha (<401 F)': Industry Petroleum Products Non-energy + 'Industry Other Oil (>401 F)': Industry Petroleum Products Non-energy + Industry Petroleum Coke: Industry Petroleum Products Non-energy + Industry Special Naphtha: Industry Petroleum Products Non-energy + Industry Still Gas: Industry Petroleum Products Non-energy + Industry Waxes: Industry Petroleum Products Non-energy + Industry Natural Gasoline: Industry Petroleum Products Non-energy + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2024: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Petroleum + Class: Other + exclusion_fields: + # Skips petroleum products used for asphalt sectors + SectorConsumedBy: + - '324121' + - '324122' + + + natural_gas_neu: + selection_fields: + PrimaryActivity: Industry Natural Gas to Chemical Plants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2024: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Natural Gas + Class: Other + + transportation_lubricants: + selection_fields: + PrimaryActivity: Transportation Lubricants + attribution_method: proportional + attribution_source: + Energy_manufacturing_national_nowcast_2024: + <<: *mecs_energy_alloc + selection_fields: + Flowable: Transport + Class: Money + +## Other Emissions + UMD_GHGIA_T_4_33: # HFCs from HCFC-22 production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: HCFC-22 Production + attribution_method: direct + + UMD_GHGIA_T_4_35: # Fluorochemical production (in CO2e) + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + # TODO: Note that this is EPA GHGI data, not UMD GHGIA, as UMD does not publish this data + EPA_GHGI_T_4_64: # Fluorochemical production (MT) + year: *epa_ghgi_year + activity_to_sector_mapping: EPA_GHGI_Cornerstone + fedefl_mapping: GHGI_AR5_100 + selection_fields: + PrimaryActivity: Fluorochemical Production + exclusion_fields: + FlowName: ["Other PFCs", "Other HFCs"] + attribution_method: direct + + UMD_GHGIA_T_4_52: # HFCs, SF6, CO2 from magnesium production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + FlowName: [SF6, HFC-134a, CO2] # exclude FK 5-1-12a + PrimaryActivity: Magnesium Production + attribution_method: proportional + attribution_source: + # Flag: published BEA GO; could update to newer Cornerstone GO data when available + BEA_Detail_GrossOutput_IO: + year: *ghgi_year + geoscale: national + activity_to_sector_mapping: BEA_2017_Detail + attribution_method: equal + + UMD_GHGIA_T_4_57: # HFCs and other emissions from electronics manufacture + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + - Electronics Industry + - Semiconductors + - PV + - MEMS + attribution_method: direct + + UMD_GHGIA_T_4_62: # SF6 and PFCs from Other Product Use + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + attribution_method: direct + + UMD_GHGIA_T_4_60: # HFCs and PFCs from ODS Substitutes + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_activity_sets: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + flow_fba: UMD_GHGIA_T_4_59 + year: *ghgi_year + fedefl_mapping: UMD_GHGIA_AR5_100 + activity_sets: + households: + selection_fields: + PrimaryActivity: + - Domestic Refrigeration + - Residential Stationary Air Conditioning + attribution_method: direct + + refrigerants: + selection_fields: + PrimaryActivity: + - Commercial Refrigeration + - Industrial Process Refrigeration + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + air_conditioning: + selection_fields: + PrimaryActivity: + - Commercial Stationary Air Conditioning + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: {'333415': ''} # Air conditioning equipment + + foams: + selection_fields: + PrimaryActivity: + - Foams + attribution_method: proportional + attribution_source: + Nowcast_Detail_Use_AfterRedef: + <<: *nowcast + selection_fields: + ActivityProducedBy: + '326140': '' # Polystyrene foam + '326150': '' # Urethane and other foam + + UMD_GHGIA_T_A5_5_2: # Transportation HFCs + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + clean_fba_before_mapping: !script_function:EPA_GHGI split_HFCs_by_type + clean_parameter: + # Proportions of specific HFCs are assigned based on national total + flow_fba: UMD_GHGIA_T_4_59 + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: + Mobile AC - Passenger Cars: Passenger Cars - Households + Mobile AC - Light-Duty Trucks: Light-Duty Trucks - Households + Mobile AC - Heavy-Duty Vehicles: Heavy-Duty Vehicles + Comfort Cooling for Trains and Buses - School and Tour Buses: School and Tour Buses + Comfort Cooling for Trains and Buses - Transit Buses: Transit Buses + Comfort Cooling for Trains and Buses - Rail: Rail + Refrigerated Transport - Medium- and Heavy-Duty Trucks: Medium- and Heavy-Duty Trucks + Refrigerated Transport - Rail: Rail + Refrigerated Transport - Ships and Boats: Ships and Boats + attribution_method: direct + + + UMD_GHGIA_T_4_50: # PFCs from aluminum production + year: *ghgi_year + activity_to_sector_mapping: UMD_GHGIA + fedefl_mapping: UMD_GHGIA_AR5_100 + selection_fields: + PrimaryActivity: Aluminum Production + # CO2 from aluminum is attributed in UMD_GHGIA_T_2_S1 (direct activity set). + exclusion_fields: + FlowName: CO2 + attribution_method: direct + From f8872eb442c5ce9369ab9fe62e4763ecaffb772c Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 16:30:00 -0600 Subject: [PATCH 10/15] pin egrid parquet for testing --- .../transform/allocation/__tests__/test_egrid_fbs_method.py | 2 +- bedrock/transform/allocation/derived.py | 4 ++-- ...usa_cornerstone_full_model_electricity_disaggregation.yaml | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py b/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py index dd1aef3a..1de07fce 100644 --- a/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py +++ b/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py @@ -106,7 +106,7 @@ def test_load_egrid_fbs_selects_method_by_ghg_year( expected_method: str, monkeypatch: pytest.MonkeyPatch, ) -> None: - # Default USAConfig is bea_published, so stems are the published overlays. + # Default USAConfig is bea_published, so stems are the published eGRID methods. cfg = USAConfig( usa_ghg_data_year=year, # type: ignore[arg-type] implement_waste_disaggregation=True, diff --git a/bedrock/transform/allocation/derived.py b/bedrock/transform/allocation/derived.py index fde43132..e1a54bac 100644 --- a/bedrock/transform/allocation/derived.py +++ b/bedrock/transform/allocation/derived.py @@ -458,8 +458,8 @@ def load_E_from_flowsa() -> pd.DataFrame: ``derive_E_usa``. The FBS is the pre-built Cornerstone GHG parquet from GCS via - :func:`_select_cornerstone_ghg_fbs_base_name` (or ``*_egrid`` when - electricity disaggregation is on). + :func:`_select_cornerstone_ghg_fbs_base_name` (or + :func:`egrid_fbs_method_for_config` when electricity disaggregation is on). """ usa = get_usa_config() if usa.implement_electricity_disaggregation: diff --git a/bedrock/utils/config/configs/2025_usa_cornerstone_full_model_electricity_disaggregation.yaml b/bedrock/utils/config/configs/2025_usa_cornerstone_full_model_electricity_disaggregation.yaml index d6ceddf5..3267de37 100644 --- a/bedrock/utils/config/configs/2025_usa_cornerstone_full_model_electricity_disaggregation.yaml +++ b/bedrock/utils/config/configs/2025_usa_cornerstone_full_model_electricity_disaggregation.yaml @@ -1,4 +1,7 @@ # Fully implemented Cornerstone 2025 model + waste + electricity reallocation + disaggregation. +# Published BEA, GHG year 2024. Pin is the newest 2024 eGRID parquet on GCS. +usa_ghg_data_year: 2024 +cornerstone_ghg_fbs_filename: GHG_national_Cornerstone_2024_egrid_v0.3.0_672c37c.parquet use_E_data_year_for_x_in_B: True implement_waste_disaggregation: True implement_electricity_reallocation: True From 89a34397bafcab9e076fb53fdb5061b620f3c5f7 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Tue, 20 Oct 2026 20:38:23 -0400 Subject: [PATCH 11/15] update GHG method for integration test based on new FBS name --- bedrock/utils/snapshots/cornerstone_ghg_fbs_2024_pin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedrock/utils/snapshots/cornerstone_ghg_fbs_2024_pin.json b/bedrock/utils/snapshots/cornerstone_ghg_fbs_2024_pin.json index 7b6f90f9..b705ee4c 100644 --- a/bedrock/utils/snapshots/cornerstone_ghg_fbs_2024_pin.json +++ b/bedrock/utils/snapshots/cornerstone_ghg_fbs_2024_pin.json @@ -1,5 +1,5 @@ { - "method": "GHG_national_Cornerstone_nowcast_facilities_transportation_2024", + "method": "GHG_national_Cornerstone_2024", "gcs_sub_bucket": "transform/output_data", "filename": "GHG_national_Cornerstone_nowcast_facilities_transportation_2024_v0.5.0_82e24cd.parquet", "sha256": "f88b3fe92840c3deccefa1a12cf401b18bfb875012874420a9180a218f8a9177" From 22c40db08ecf0358eaca438e98fd373408468069 Mon Sep 17 00:00:00 2001 From: catherinebirney <60186515+catherinebirney@users.noreply.github.com> Date: Tue, 20 Oct 2026 19:03:54 -0600 Subject: [PATCH 12/15] delete outdated test --- .../__tests__/test_energy_cornerstone.py | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/bedrock/transform/energy/__tests__/test_energy_cornerstone.py b/bedrock/transform/energy/__tests__/test_energy_cornerstone.py index 4720c242..fbcd5909 100644 --- a/bedrock/transform/energy/__tests__/test_energy_cornerstone.py +++ b/bedrock/transform/energy/__tests__/test_energy_cornerstone.py @@ -366,54 +366,6 @@ def test_keep_chemical_manufacturing_resets_index() -> None: assert list(out['ActivityConsumedBy']) == ['325110', '325180'] -@pytest.mark.parametrize( - ('method', 'energy'), - [ - ('GHG_national_Cornerstone_2018', 'Energy_manufacturing_national_2018'), - ('GHG_national_Cornerstone_2024', 'Energy_manufacturing_national_2022'), - ], -) -def test_ghg_nests_point_at_energy_cornerstone(method: str, energy: str) -> None: - cfg = load_yaml_dict(method, 'FBS') - t311 = cfg['source_names']['UMD_GHGIA_T_3_11']['activity_sets'] - assert energy in t311['petroleum_industrial']['attribution_source'] - assert energy in t311['ng_manufacturing']['attribution_source'] - assert energy in t311['coal_manufacturing']['attribution_source'] - assert t311['petroleum_industrial']['attribution_source'][energy][ - 'selection_fields' - ] == {'Flowable': 'Petroleum', 'Class': 'Money'} - assert t311['ng_manufacturing']['attribution_source'][energy][ - 'selection_fields' - ] == {'Flowable': 'Natural Gas', 'Class': 'Energy'} - assert t311['coal_manufacturing']['attribution_source'][energy][ - 'selection_fields' - ] == {'Flowable': 'Coal', 'Class': 'Energy'} - nested = cfg['source_names']['UMD_GHGIA_T_3_14']['activity_sets']['emissions'][ - 'attribution_source' - ] - epa_neu = nested.get('EPA_GHGI_T_3_25') or nested['EPA_GHGI_T_3_25b'] - neu = epa_neu['activity_sets'] - asphalt = neu['petroleum_neu_asphalt']['attribution_source'][energy] - assert asphalt['selection_fields'] == { - 'Flowable': 'Petroleum', - 'Class': 'Other', - 'SectorConsumedBy': ['324121', '324122'], - } - assert neu['petroleum_neu_hgl']['attribution_source'][energy][ - 'selection_fields' - ] == {'Flowable': 'HGL', 'Class': 'Other'} - remaining = neu['petroleum_neu']['attribution_source'][energy] - assert remaining['selection_fields'] == {'Flowable': 'Petroleum', 'Class': 'Other'} - assert remaining['exclusion_fields']['SectorConsumedBy'] == ['324121', '324122'] - assert neu['natural_gas_neu']['attribution_source'][energy]['selection_fields'] == { - 'Flowable': 'Natural Gas', - 'Class': 'Other', - } - assert neu['transportation_lubricants']['attribution_source'][energy][ - 'selection_fields' - ] == {'Flowable': 'Transport', 'Class': 'Money'} - - def _normalized_sector_shares( df: pd.DataFrame, sector_col: str = 'SectorConsumedBy' ) -> pd.Series[float]: From 801bd080e045e0667b3a6836bcc5d254344939b9 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Wed, 21 Oct 2026 09:49:30 -0400 Subject: [PATCH 13/15] fix(fbs-load): honor cross-stem cornerstone GHG FBS pins Pinned cornerstone_ghg_fbs_filename loads that exact parquet even when its stem differs from the selected method, so release and waterfall configs keep historical nowcast/facilities/NFT objects after YAML stems consolidate to GHG_national_Cornerstone_{year}. --- .../test_cornerstone_ghg_fbs_filename.py | 21 +++++++++--- bedrock/transform/allocation/derived.py | 33 +++++++++---------- bedrock/utils/config/usa_config.py | 3 +- 3 files changed, 33 insertions(+), 24 deletions(-) diff --git a/bedrock/transform/allocation/__tests__/test_cornerstone_ghg_fbs_filename.py b/bedrock/transform/allocation/__tests__/test_cornerstone_ghg_fbs_filename.py index 153630de..58a65c3c 100644 --- a/bedrock/transform/allocation/__tests__/test_cornerstone_ghg_fbs_filename.py +++ b/bedrock/transform/allocation/__tests__/test_cornerstone_ghg_fbs_filename.py @@ -112,13 +112,24 @@ def _download(name: str, _sub: str, pth: str) -> None: assert loaded['marker'].tolist() == [newer] -def test_pin_for_a_different_stem_raises(monkeypatch: pytest.MonkeyPatch) -> None: +def test_pin_wins_when_stem_differs_from_selected_base_name( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + """Historical pins may use a retired stem while selection is year-only.""" name = 'GHG_national_Cornerstone_nowcast_facilities_2024_v0.3.0_3a1dddc.parquet' + _frame('pinned').to_parquet(tmp_path / name) monkeypatch.setattr(derived, 'get_usa_config', lambda: _config(name)) - with pytest.raises(ValueError, match='does not match'): - derived._load_cornerstone_ghg_fbs_from_gcs( - base_name='GHG_national_Cornerstone_nowcast_facilities_2023' - ) + monkeypatch.setattr('bedrock.utils.config.settings.FBS_DIR', tmp_path) + + def _no_download(*_a: object, **_k: object) -> None: + raise AssertionError('pinned file is already local') + + monkeypatch.setattr('bedrock.utils.io.gcp.download_gcs_file', _no_download) + + loaded = derived._load_cornerstone_ghg_fbs_from_gcs( + base_name='GHG_national_Cornerstone_2024' + ) + assert loaded['marker'].tolist() == ['pinned'] def test_pin_without_a_git_hash_raises(monkeypatch: pytest.MonkeyPatch) -> None: diff --git a/bedrock/transform/allocation/derived.py b/bedrock/transform/allocation/derived.py index e1a54bac..f467e6b4 100644 --- a/bedrock/transform/allocation/derived.py +++ b/bedrock/transform/allocation/derived.py @@ -340,11 +340,13 @@ def _load_egrid_fbs_for_electricity_disagg() -> pd.DataFrame: ) -def _exact_cornerstone_ghg_fbs_name(resolved_base_name: str) -> str | None: - """Pinned parquet name for this stem, or ``None`` when the config omits it. +def _exact_cornerstone_ghg_fbs_name() -> str | None: + """Pinned parquet filename, or ``None`` when the config omits it. - The pin is the full filename. It is loaded only when its stem is the stem - being loaded. + The pin is the full filename (version + git hash required). When set, that + exact object is loaded even if its stem differs from the selected method + stem, so release and waterfall configs can keep historical parquet pins + after method YAML stems consolidate. """ import os # noqa: PLC0415 @@ -354,17 +356,12 @@ def _exact_cornerstone_ghg_fbs_name(resolved_base_name: str) -> str | None: if not raw: return None filename = os.path.basename(raw) - stem, extension, version, git_hash = parse_methodname(filename) + _, extension, version, git_hash = parse_methodname(filename) if extension != '.parquet' or version is None or git_hash is None: raise ValueError( 'cornerstone_ghg_fbs_filename must be a parquet name with a ' f'version and git hash, got {raw!r}' ) - if stem != resolved_base_name: - raise ValueError( - f'cornerstone_ghg_fbs_filename {filename!r} does not match the ' - f'selected FBS stem {resolved_base_name!r}' - ) return filename @@ -403,10 +400,10 @@ def _load_cornerstone_ghg_fbs_from_gcs( ``base_name`` is ``GHG_national_Cornerstone_`` (or a method-specific name such as ``GHG_national_Cornerstone_2024``) are loaded directly. - With ``USAConfig.cornerstone_ghg_fbs_filename`` set to a parquet of this - stem, that file is required: the local FBS directory first, then that - exact object on GCS. Otherwise the most recently uploaded parquet whose - ``base_name`` matches is the one loaded. + With ``USAConfig.cornerstone_ghg_fbs_filename`` set, that exact file is + required (local FBS directory first, then that GCS object), including when + its stem differs from ``base_name`` / year. Otherwise the most recently + uploaded parquet whose ``base_name`` matches is the one loaded. """ import os # noqa: PLC0415 @@ -416,6 +413,10 @@ def _load_cornerstone_ghg_fbs_from_gcs( list_bucket_files, ) + pinned = _exact_cornerstone_ghg_fbs_name() + if pinned is not None: + return _read_exact_fbs_parquet(pinned) + if base_name is None: if year is None: raise ValueError('Either year or base_name must be provided') @@ -423,10 +424,6 @@ def _load_cornerstone_ghg_fbs_from_gcs( else: resolved_base_name = base_name - pinned = _exact_cornerstone_ghg_fbs_name(resolved_base_name) - if pinned is not None: - return _read_exact_fbs_parquet(pinned) - sub_bucket = 'transform/output_data' bucket_df = list_bucket_files(sub_bucket) matches = bucket_df[ diff --git a/bedrock/utils/config/usa_config.py b/bedrock/utils/config/usa_config.py index c8270889..afedce51 100644 --- a/bedrock/utils/config/usa_config.py +++ b/bedrock/utils/config/usa_config.py @@ -72,7 +72,8 @@ class USAConfig(BaseModel): 'GHG_national_Cornerstone_nowcast_facilities_2024_v0.3.0_3a1dddc' '.parquet). When set, the GHG loader reads that file from the ' 'local FBS directory and, if it is absent, downloads that object ' - 'from gs://cornerstone-default/transform/output_data/. A newer ' + 'from gs://cornerstone-default/transform/output_data/, even when ' + 'the filename stem differs from the selected method stem. A newer ' 'upload of the same stem is not a substitute. When omitted, the ' 'loader uses the newest parquet for the stem the config selects.' ), From 5cd421d8d7cf512addf47984f65e55c7a09cc391 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Wed, 21 Oct 2026 10:11:26 -0400 Subject: [PATCH 14/15] refactor(fbs): drop eGRID method map; allow-list elec IO/year on USAConfig Year Cornerstone GHG methods already embed eGRID, so electricity disaggregation loads GHG_national_Cornerstone_{year} like every other path. Keep the supported (IO source, year) pairs on USAConfig. --- .../year_alignment/year_alignment_bly_e.py | 5 +- .../__tests__/test_egrid_fbs_method.py | 209 ------------------ bedrock/transform/allocation/derived.py | 117 ++-------- .../utils/config/__tests__/test_usa_config.py | 60 +++++ bedrock/utils/config/usa_config.py | 23 ++ 5 files changed, 107 insertions(+), 307 deletions(-) delete mode 100644 bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py diff --git a/bedrock/analysis/electricity/current/diagnostics/year_alignment/year_alignment_bly_e.py b/bedrock/analysis/electricity/current/diagnostics/year_alignment/year_alignment_bly_e.py index f014a7b3..ec126c34 100644 --- a/bedrock/analysis/electricity/current/diagnostics/year_alignment/year_alignment_bly_e.py +++ b/bedrock/analysis/electricity/current/diagnostics/year_alignment/year_alignment_bly_e.py @@ -452,8 +452,9 @@ def render_report(baseline: dict[str, Any], y2017: dict[str, Any]) -> str: "", "1. `usa_ghg_data_year` Literal excludes 2017 (breaks " "`reconciling_data_years/model1.yaml`)", - "2. Electricity-disagg eGRID FBS is only defined for 2023/2024 " - "(`egrid_fbs_method_for_year`); 2017 has no eGRID-backed FBS", + "2. Electricity disaggregation only allows " + "(bea_published, 2023|2024) and (nowcast, 2024) on USAConfig; " + "2017 is outside that allow-list", "3. USEEIO A-scale (`scale_a_matrix_with_useeio_method=True`) returns 2017 " "base A and never calls `reanchor_electricity_aq_after_year_scaling`", "", diff --git a/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py b/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py deleted file mode 100644 index 1de07fce..00000000 --- a/bedrock/transform/allocation/__tests__/test_egrid_fbs_method.py +++ /dev/null @@ -1,209 +0,0 @@ -"""Unit tests for year-keyed electricity-disagg eGRID FBS selection.""" - -from __future__ import annotations - -from collections.abc import Generator -from unittest.mock import MagicMock - -import pandas as pd -import pytest - -from bedrock.transform.allocation import derived as allocation_derived -from bedrock.transform.allocation.derived import ( - egrid_fbs_method_for_config, - egrid_fbs_method_for_year, -) -from bedrock.utils.config.usa_config import USAConfig, reset_usa_config - - -@pytest.fixture(autouse=True) -def _reset_usa_config() -> Generator[None, None, None]: - reset_usa_config(should_reset_env_var=True) - yield - reset_usa_config(should_reset_env_var=True) - - -@pytest.mark.parametrize( - ('year', 'expected'), - [ - (2023, 'GHG_national_Cornerstone_2023_egrid'), - (2024, 'GHG_national_Cornerstone_2024_egrid'), - ], -) -def test_egrid_fbs_method_for_year(year: int, expected: str) -> None: - assert egrid_fbs_method_for_year(year) == expected - - -def test_egrid_fbs_method_for_year_unsupported() -> None: - with pytest.raises(ValueError, match='unsupported'): - egrid_fbs_method_for_year(2022) - - -@pytest.mark.parametrize( - ('usa_detail_io_source', 'year', 'expected'), - [ - ('bea_published', 2023, 'GHG_national_Cornerstone_2023_egrid'), - ('bea_published', 2024, 'GHG_national_Cornerstone_2024_egrid'), - ('nowcast', 2024, 'GHG_national_Cornerstone_nowcast_2024'), - ], -) -def test_egrid_fbs_method_for_config( - usa_detail_io_source: str, - year: int, - expected: str, - monkeypatch: pytest.MonkeyPatch, -) -> None: - if usa_detail_io_source == 'nowcast': - cfg = USAConfig( - usa_detail_io_source='nowcast', - usa_base_io_data_year=2024, - model_base_year=2024, - usa_ghg_data_year=2024, - apply_io_year_adjustments=False, - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - else: - cfg = USAConfig( - usa_detail_io_source='bea_published', - usa_ghg_data_year=year, # type: ignore[arg-type] - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - monkeypatch.setattr(allocation_derived, 'get_usa_config', lambda: cfg) - assert egrid_fbs_method_for_config() == expected - - -def test_egrid_fbs_method_for_config_unsupported( - monkeypatch: pytest.MonkeyPatch, -) -> None: - cfg = USAConfig( - usa_detail_io_source='nowcast', - usa_base_io_data_year=2023, - model_base_year=2023, - usa_ghg_data_year=2023, - apply_io_year_adjustments=False, - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - monkeypatch.setattr(allocation_derived, 'get_usa_config', lambda: cfg) - with pytest.raises(ValueError, match='unsupported'): - egrid_fbs_method_for_config() - - -@pytest.mark.parametrize( - ('year', 'expected_method'), - [ - (2023, 'GHG_national_Cornerstone_2023_egrid'), - (2024, 'GHG_national_Cornerstone_2024_egrid'), - ], -) -def test_load_egrid_fbs_selects_method_by_ghg_year( - year: int, - expected_method: str, - monkeypatch: pytest.MonkeyPatch, -) -> None: - # Default USAConfig is bea_published, so stems are the published eGRID methods. - cfg = USAConfig( - usa_ghg_data_year=year, # type: ignore[arg-type] - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - monkeypatch.setattr(allocation_derived, 'get_usa_config', lambda: cfg) - - sentinel = pd.DataFrame({'ok': [1]}) - gcs_calls: list[str] = [] - - def fake_gcs( - *, base_name: str | None = None, year: int | None = None - ) -> pd.DataFrame: - assert base_name is not None - gcs_calls.append(base_name) - return sentinel - - monkeypatch.setattr( - allocation_derived, - '_load_cornerstone_ghg_fbs_from_gcs', - fake_gcs, - ) - flowsa = MagicMock() - monkeypatch.setattr(allocation_derived, 'getFlowBySector', flowsa) - - out = allocation_derived._load_egrid_fbs_for_electricity_disagg() - assert out is sentinel - assert gcs_calls == [expected_method] - flowsa.assert_not_called() - - -def test_load_egrid_fbs_selects_nowcast_method( - monkeypatch: pytest.MonkeyPatch, -) -> None: - cfg = USAConfig( - usa_detail_io_source='nowcast', - usa_base_io_data_year=2024, - model_base_year=2024, - usa_ghg_data_year=2024, - apply_io_year_adjustments=False, - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - monkeypatch.setattr(allocation_derived, 'get_usa_config', lambda: cfg) - - sentinel = pd.DataFrame({'ok': [1]}) - gcs_calls: list[str] = [] - - def fake_gcs( - *, base_name: str | None = None, year: int | None = None - ) -> pd.DataFrame: - assert base_name is not None - gcs_calls.append(base_name) - return sentinel - - monkeypatch.setattr( - allocation_derived, - '_load_cornerstone_ghg_fbs_from_gcs', - fake_gcs, - ) - flowsa = MagicMock() - monkeypatch.setattr(allocation_derived, 'getFlowBySector', flowsa) - - out = allocation_derived._load_egrid_fbs_for_electricity_disagg() - assert out is sentinel - assert gcs_calls == ['GHG_national_Cornerstone_nowcast_2024'] - flowsa.assert_not_called() - - -def test_load_egrid_fbs_falls_back_to_flowsa( - monkeypatch: pytest.MonkeyPatch, -) -> None: - cfg = USAConfig( - usa_ghg_data_year=2024, - implement_waste_disaggregation=True, - implement_electricity_reallocation=True, - implement_electricity_disaggregation=True, - ) - monkeypatch.setattr(allocation_derived, 'get_usa_config', lambda: cfg) - - def raise_missing(**_kwargs: object) -> pd.DataFrame: - raise FileNotFoundError('missing') - - sentinel = pd.DataFrame({'ok': [1]}) - flowsa = MagicMock(return_value=sentinel) - monkeypatch.setattr( - allocation_derived, - '_load_cornerstone_ghg_fbs_from_gcs', - raise_missing, - ) - monkeypatch.setattr(allocation_derived, 'getFlowBySector', flowsa) - - out = allocation_derived._load_egrid_fbs_for_electricity_disagg() - assert out is sentinel - flowsa.assert_called_once_with( - methodname='GHG_national_Cornerstone_2024_egrid', - download_FBS_if_missing=True, - ) diff --git a/bedrock/transform/allocation/derived.py b/bedrock/transform/allocation/derived.py index f467e6b4..823c138a 100644 --- a/bedrock/transform/allocation/derived.py +++ b/bedrock/transform/allocation/derived.py @@ -4,7 +4,7 @@ import pandas as pd -from bedrock.transform.flowbysector import FlowBySector, getFlowBySector +from bedrock.transform.flowbysector import FlowBySector from bedrock.transform.iot.derived_gross_industry_output import derive_gross_output from bedrock.utils.config.common import load_crosswalk from bedrock.utils.config.usa_config import get_usa_config @@ -257,89 +257,19 @@ def map_fbs_sectors_to_model_schema(fbs: pd.DataFrame) -> pd.DataFrame: return pd.DataFrame(FlowBySector(fbs2).aggregate_flowby()) -# (usa_detail_io_source, usa_ghg_data_year) → eGRID-backed Cornerstone GHG FBS stem. -_EGRID_FBS_METHOD_BY_SOURCE_YEAR: dict[tuple[str, int], str] = { - ('bea_published', 2023): 'GHG_national_Cornerstone_2023_egrid', - ('bea_published', 2024): 'GHG_national_Cornerstone_2024_egrid', - ('nowcast', 2024): 'GHG_national_Cornerstone_nowcast_2024', -} - - -def egrid_fbs_method_for_config() -> str: - """Return the eGRID-backed Cornerstone GHG FBS method for the active config. - - Branches on ``usa_detail_io_source`` and ``usa_ghg_data_year`` so electricity - disaggregation composes with nowcast Use attribution instead of always - selecting the published ``*_egrid`` stem. - """ - usa = get_usa_config() - key = (usa.usa_detail_io_source, usa.usa_ghg_data_year) - try: - return _EGRID_FBS_METHOD_BY_SOURCE_YEAR[key] - except KeyError as exc: - supported = ', '.join( - f'{src}/{yr}' for src, yr in sorted(_EGRID_FBS_METHOD_BY_SOURCE_YEAR) - ) - raise ValueError( - f'usa_detail_io_source={usa.usa_detail_io_source!r}, ' - f'usa_ghg_data_year={usa.usa_ghg_data_year} is unsupported for the ' - f'electricity-disaggregation eGRID FBS; supported: {supported}' - ) from exc - - -def egrid_fbs_method_for_year(year: int) -> str: - """Published-BEA alias: eGRID FBS stem for *year* (``bea_published`` only).""" - key = ('bea_published', year) - try: - return _EGRID_FBS_METHOD_BY_SOURCE_YEAR[key] - except KeyError as exc: - published_years = sorted( - yr for src, yr in _EGRID_FBS_METHOD_BY_SOURCE_YEAR if src == 'bea_published' - ) - supported = ', '.join(str(y) for y in published_years) - raise ValueError( - f'usa_ghg_data_year={year} is unsupported for the electricity-' - f'disaggregation eGRID FBS; supported years: {supported}' - ) from exc - - def _select_cornerstone_ghg_fbs_base_name() -> str: """Resolve Cornerstone GHG FBS ``base_name`` from the active USAConfig. - ``usa_ghg_data_year`` selects the inventory-year method stem. - Returns FBS methods based on year (``GHG_national_Cornerstone_{year}``). - A published config may still pin the older versions parquet - by filename. - - Electricity-disaggregation configs use :func:`egrid_fbs_method_for_config` - instead of this helper. + ``usa_ghg_data_year`` selects the inventory-year method stem + (``GHG_national_Cornerstone_{year}``). Year methods embed plant-level + eGRID for electric power. A config may still pin an older parquet by + filename via ``cornerstone_ghg_fbs_filename``. """ usa = get_usa_config() year = usa.usa_ghg_data_year return f'GHG_national_Cornerstone_{year}' -def _load_egrid_fbs_for_electricity_disagg() -> pd.DataFrame: - """Load the eGRID-based national GHG FBS for electricity disaggregation. - - Selects the method stem via :func:`egrid_fbs_method_for_config` so nowcast - and published electricity configs stay year- and IO-source-matched. - """ - method = egrid_fbs_method_for_config() - try: - return _load_cornerstone_ghg_fbs_from_gcs(base_name=method) - except FileNotFoundError: - logger.info( - 'eGRID FBS parquet not in transform/output_data; ' - 'loading via getFlowBySector (%s)', - method, - ) - return getFlowBySector( - methodname=method, - download_FBS_if_missing=True, - ) - - def _exact_cornerstone_ghg_fbs_name() -> str | None: """Pinned parquet filename, or ``None`` when the config omits it. @@ -392,13 +322,14 @@ def _load_cornerstone_ghg_fbs_from_gcs( ) -> pd.DataFrame: """Download a pre-built Cornerstone GHG FBS parquet from GCS. - Bypasses ``getFlowBySector`` for the time-series case. The flowsa - regen path goes through `EPA_GHGI` loaders that are hard-capped at - `{2022, 2023}` (`bedrock/extract/allocation/epa.py:_get_epa_data_year`), - so years like 2019–2021 (and the 2024 UMD FBS) fail there. The pre-built - FBS parquets in ``gs://cornerstone-default/transform/output_data/`` whose - ``base_name`` is ``GHG_national_Cornerstone_`` (or a method-specific - name such as ``GHG_national_Cornerstone_2024``) are loaded directly. + Bypasses ``getFlowBySector`` for the time-series case. Nested + ``EPA_GHGI`` loaders only allow ``usa_ghg_data_year`` in ``{2022, 2023}`` + (``epa.py:_get_epa_data_year``), so regenerating year-2024 (and other + non-2022/2023) Cornerstone FBS via ``getFlowBySector`` can hit those + sources and fail. The pre-built FBS parquets in + ``gs://cornerstone-default/transform/output_data/`` whose ``base_name`` + is ``GHG_national_Cornerstone_`` (or a method-specific name such as + ``GHG_national_Cornerstone_2024``) are loaded directly. With ``USAConfig.cornerstone_ghg_fbs_filename`` set, that exact file is required (local FBS directory first, then that GCS object), including when @@ -455,21 +386,15 @@ def load_E_from_flowsa() -> pd.DataFrame: ``derive_E_usa``. The FBS is the pre-built Cornerstone GHG parquet from GCS via - :func:`_select_cornerstone_ghg_fbs_base_name` (or - :func:`egrid_fbs_method_for_config` when electricity disaggregation is on). + :func:`_select_cornerstone_ghg_fbs_base_name` (year method; eGRID is + embedded when present). Prefer that over flowsa regen: nested + ``EPA_GHGI`` loaders only allow ``usa_ghg_data_year`` in ``{2022, 2023}`` + (``epa.py:_get_epa_data_year``), so regenerating year-2024 FBS via + ``getFlowBySector`` can hit those sources and fail. """ - usa = get_usa_config() - if usa.implement_electricity_disaggregation: - fbs = _load_egrid_fbs_for_electricity_disagg() - else: - # Bypass flowsa regen: the EPA loader behind `getFlowBySector` is - # hard-capped at {2022, 2023}, so other years (incl. the 2024 UMD - # FBS) fail there. Load the pre-built FBS parquet from GCS at - # `transform/output_data/` directly so the year-Y diagnostics get - # year-Y GHG data. - fbs = _load_cornerstone_ghg_fbs_from_gcs( - base_name=_select_cornerstone_ghg_fbs_base_name() - ) + fbs = _load_cornerstone_ghg_fbs_from_gcs( + base_name=_select_cornerstone_ghg_fbs_base_name() + ) fbs = map_fbs_sectors_to_model_schema(fbs) fbs = resplit_waste_use_emissions(fbs) diff --git a/bedrock/utils/config/__tests__/test_usa_config.py b/bedrock/utils/config/__tests__/test_usa_config.py index b20e4a7f..25fda0ed 100644 --- a/bedrock/utils/config/__tests__/test_usa_config.py +++ b/bedrock/utils/config/__tests__/test_usa_config.py @@ -164,6 +164,66 @@ def test_electricity_disaggregation_requires_reallocation_and_waste() -> None: ) +def test_electricity_disaggregation_rejects_unsupported_io_year() -> None: + with pytest.raises( + ValueError, + match=r'implement_electricity_disaggregation requires ' + r'\(usa_detail_io_source, usa_ghg_data_year\)', + ): + USAConfig.model_validate( + { + 'usa_detail_io_source': 'nowcast', + 'usa_base_io_data_year': 2023, + 'model_base_year': 2023, + 'usa_ghg_data_year': 2023, + 'apply_io_year_adjustments': False, + 'implement_waste_disaggregation': True, + 'implement_electricity_reallocation': True, + 'implement_electricity_disaggregation': True, + }, + strict=True, + ) + + +@pytest.mark.parametrize( + ('usa_detail_io_source', 'year', 'extra'), + [ + ('bea_published', 2023, {}), + ('bea_published', 2024, {}), + ( + 'nowcast', + 2024, + { + 'usa_base_io_data_year': 2024, + 'model_base_year': 2024, + 'apply_io_year_adjustments': False, + }, + ), + ], +) +def test_electricity_disaggregation_allows_supported_io_year( + usa_detail_io_source: str, + year: int, + extra: dict[str, object], +) -> None: + cfg = USAConfig.model_validate( + { + 'usa_detail_io_source': usa_detail_io_source, + 'usa_ghg_data_year': year, + 'implement_waste_disaggregation': True, + 'implement_electricity_reallocation': True, + 'implement_electricity_disaggregation': True, + **extra, + }, + strict=True, + ) + assert cfg.implement_electricity_disaggregation is True + assert (cfg.usa_detail_io_source, cfg.usa_ghg_data_year) == ( + usa_detail_io_source, + year, + ) + + def test_electricity_disagg_requires_waste() -> None: with pytest.raises( ValueError, diff --git a/bedrock/utils/config/usa_config.py b/bedrock/utils/config/usa_config.py index afedce51..4e8df928 100644 --- a/bedrock/utils/config/usa_config.py +++ b/bedrock/utils/config/usa_config.py @@ -27,6 +27,16 @@ ) NowcastDetailIoYear = ta.Literal[2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024] +# (usa_detail_io_source, usa_ghg_data_year) pairs allowed when +# implement_electricity_disaggregation is on. Year GHG methods embed eGRID. +ELECTRICITY_DISAGG_SUPPORTED_IO_YEAR: frozenset[tuple[str, int]] = frozenset( + { + ('bea_published', 2023), + ('bea_published', 2024), + ('nowcast', 2024), + } +) + DIAGNOSTICS_CLI_OVERRIDE_KEYS: frozenset[str] = frozenset( { 'diagnostics_baseline_source', @@ -432,6 +442,19 @@ def _validate_ghg_flag_compatibility(self) -> USAConfig: 'implement_electricity_reaggregation is mutually exclusive with ' 'implement_electricity_mixed_units' ) + if self.implement_electricity_disaggregation: + key = (self.usa_detail_io_source, self.usa_ghg_data_year) + if key not in ELECTRICITY_DISAGG_SUPPORTED_IO_YEAR: + supported = ', '.join( + f'{src}/{yr}' + for src, yr in sorted(ELECTRICITY_DISAGG_SUPPORTED_IO_YEAR) + ) + raise ValueError( + 'implement_electricity_disaggregation requires ' + f'(usa_detail_io_source, usa_ghg_data_year) in {{{supported}}}; ' + f'got usa_detail_io_source={self.usa_detail_io_source!r}, ' + f'usa_ghg_data_year={self.usa_ghg_data_year}' + ) return self @model_validator(mode='after') From a8b4066098e4a1f8e44c93bbdeb310c050f7b197 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Wed, 21 Oct 2026 10:22:54 -0400 Subject: [PATCH 15/15] fix CI --- bedrock/transform/allocation/derived.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bedrock/transform/allocation/derived.py b/bedrock/transform/allocation/derived.py index 823c138a..283ea3b4 100644 --- a/bedrock/transform/allocation/derived.py +++ b/bedrock/transform/allocation/derived.py @@ -392,6 +392,7 @@ def load_E_from_flowsa() -> pd.DataFrame: (``epa.py:_get_epa_data_year``), so regenerating year-2024 FBS via ``getFlowBySector`` can hit those sources and fail. """ + usa = get_usa_config() fbs = _load_cornerstone_ghg_fbs_from_gcs( base_name=_select_cornerstone_ghg_fbs_base_name() )