Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
8412318
add umd_ghgia fba yaml
catherinebirney May 5, 2026
74e51d2
Merge branch 'main' into cb_ghg_2024
catherinebirney May 7, 2026
098df35
add additional tables to umd yaml
catherinebirney May 7, 2026
74a4691
Merge branch 'main' into cb_ghg_2024
catherinebirney May 11, 2026
6100f09
Merge branch 'main' into cb_ghg_2024
catherinebirney May 12, 2026
45def62
add 2024 ghg fbs - in progress
catherinebirney May 12, 2026
45d6670
add umd ghgia mapping
catherinebirney May 12, 2026
34686ef
add years to umd yaml
catherinebirney May 12, 2026
898c2b4
update header
catherinebirney May 12, 2026
f25b0bc
update header
catherinebirney May 12, 2026
fdf9d5c
format
catherinebirney May 12, 2026
a6ad00f
add init
catherinebirney May 12, 2026
a691fcc
update table list
catherinebirney May 12, 2026
aa02ccb
comment out files not loading correctly
catherinebirney May 12, 2026
431e1a7
updates to umd fba generation py
catherinebirney May 12, 2026
14d9c70
set fba col defaults
catherinebirney May 14, 2026
0791296
update footnote replacments
catherinebirney May 14, 2026
62be357
footnotes
catherinebirney May 14, 2026
89d4ee6
retain suppressed data (rows are dropped in flowby.py)
catherinebirney May 14, 2026
5dac570
updates so chap 3 tables import correctly
catherinebirney May 14, 2026
09e29c3
updates for chap 3 umd fbas
catherinebirney May 18, 2026
7f5bf4a
chap 3 umd fbas generate correctly
catherinebirney May 18, 2026
1cd2842
Merge branch 'main' into cb_ghg_2024
catherinebirney May 18, 2026
4a75f87
update ghgi year to align with mecs year
catherinebirney May 18, 2026
70423ba
format/lint
catherinebirney May 18, 2026
32d1fa1
drop repeated text replacement
catherinebirney May 18, 2026
abba584
Merge branch 'main' into cb_ghg_2024
catherinebirney May 20, 2026
b5f4095
ch 4 generates correctly, ch 5 mostly
catherinebirney May 20, 2026
8adeee0
comment in all tables
catherinebirney May 20, 2026
3882a12
umd 2-1 footnote char strip
catherinebirney May 26, 2026
10e2f82
add year to final column if missing
catherinebirney May 26, 2026
1e762d5
manage table 5-15 activities
catherinebirney May 26, 2026
7a78173
add table 2-s1 to FBA generation
catherinebirney May 26, 2026
9a2d764
add return df statement
catherinebirney May 26, 2026
65027c7
add table 2-s1 to 2024 fbs method
catherinebirney May 26, 2026
3ab3a41
add 2024 fba load ability
catherinebirney May 26, 2026
08ecd26
rename 2024 fbs, add 2023
catherinebirney May 26, 2026
8a1b3df
rename 2024 fbs
catherinebirney May 26, 2026
f5ec12e
Merge branch 'main' into cb_ghg_2024
catherinebirney May 26, 2026
5136998
typecheck error
catherinebirney May 26, 2026
4a216bd
update magnesium activity name
catherinebirney May 26, 2026
90ad6c5
drop addressed todos
catherinebirney May 26, 2026
13369c1
Merge branch 'main' into cb_ghg_2024
catherinebirney Jun 2, 2026
30f937d
add umd table 3-7
catherinebirney Jun 3, 2026
3b96b44
update umd ghg fbs to cache cropland naics
catherinebirney Jun 3, 2026
71148c1
use epa ghgi data where umd data does not exist
catherinebirney Jun 3, 2026
2608b0f
add new "residential and commercial" mappings
catherinebirney Jun 3, 2026
48578fc
updates to stationary combustion
catherinebirney Jun 3, 2026
d605830
updates to stationary combustion method
catherinebirney Jun 3, 2026
ee94856
add umd to source catalog
catherinebirney Jun 3, 2026
7907235
new multi_chem_names_activity_header for umd data
catherinebirney Jun 3, 2026
0400ce7
update terminology from fuel oil to petroleum
catherinebirney Jun 3, 2026
bf5abcc
keep epa 3-8 term as fuel oil
catherinebirney Jun 4, 2026
6b15720
terminology updates
catherinebirney Jun 4, 2026
ed81cd5
update approach for N2O Emissions from Agricultural Soils
catherinebirney Jun 4, 2026
9f66364
update approach for Non-Energy Use
catherinebirney Jun 4, 2026
e5d5fed
update umd fuel types
catherinebirney Jun 4, 2026
b45f0c7
update 2024 UMD
catherinebirney Jun 4, 2026
14cab3e
updates 2024 UMD terms
catherinebirney Jun 10, 2026
59b5a9c
ghgia footnote replacement
catherinebirney Jun 10, 2026
b266cc6
drop 4_59
catherinebirney Jun 10, 2026
a5cabca
drop todo
catherinebirney Jun 11, 2026
30aa8e1
update stationary combustion method
catherinebirney Jun 12, 2026
ef6c1f2
footnote
catherinebirney Jun 12, 2026
1028f12
source_activity_1 handling
catherinebirney Jun 12, 2026
1020190
use umd annex tables
catherinebirney Jun 15, 2026
75c22e7
generate umd annnex FBAs
catherinebirney Jun 15, 2026
002ca51
updates for reading annex
catherinebirney Jun 15, 2026
80e31ed
updates for annex fbas
catherinebirney Jun 15, 2026
7ab7d20
address double counting in stationary combustion
catherinebirney Jun 16, 2026
3ac3e61
update 2024 umd ghg fbs to match 2023
catherinebirney Jun 16, 2026
4d9f1e1
rename v0.3 release so generates
catherinebirney Jun 16, 2026
8c2ff21
Merge remote-tracking branch 'origin/main' into cb_ghg_2024
catherinebirney Jun 16, 2026
665fef0
lint
catherinebirney Jun 16, 2026
217cd78
typecheck
catherinebirney Jun 16, 2026
f797234
naming schema for umd ghgia fbs
catherinebirney Jun 16, 2026
cb108ad
add config for umd ghgia approach
catherinebirney Jun 16, 2026
962df48
Merge branch 'main' into cb_ghg_2024
catherinebirney Jun 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,067 changes: 1,067 additions & 0 deletions bedrock/extract/umd/UMD_GHGIA.py

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions bedrock/extract/umd/UMD_GHGIA.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
# University of Maryland CGS GHGIA (one FBA parquet per table). Raw CSVs on GCS at
# ``gs://cornerstone-default/extract/input-data/UMD_GHGIA/2024/…``
author: 'University of Maryland'
source_name: 'Greenhouse Gas Inventory and Analysis'
source_url: https://ghgi.cgs.umd.edu/data.html
bib_id: UMD_GHGIA
format: csv
url:
base_url: https://ghgi.cgs.umd.edu/data.html

parse_response_fxn: !script_function:UMD_GHGIA umd_ghgia_parse
gcs_fxn: !script_function:UMD_GHGIA umd_ghgia_load
extract_data_from_raw_sources: False # Not available
years:
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- 2024

# Special table lists — based on EPA_GHGI.yaml parameter names
# Flows as group headers
multi_chem_names: ["2-S1", "4-31", "5-6", "5-15"]
multi_chem_names_activity_header: ["3-7", "3-11", "3-12"]
# Flat activities: append partial table name to activity
flat_activity_header: ["5-10", "3-14"]
# Handle tables with 1 parent level category
source_activity_1: ["3-4"] # fuel listed first, sector nested. Append fuel after sector
source_activity_1_fuel: ["3-8", "3-9", "3-10"] # fuel listed first, vehicle nested. Append vehicle after fuel.
# Tables with sub categories
source_activity_2: ["3-25", "3-26", "3-27", "3-28", "3-29", "3-30", "A5-5-2"] # no nesting, cell A2 is blank, different from epa ghgi
rows_as_flows: ["4-33", "4-35", "4-50", "4-52", "4-59"]

# Optional table overrides
Tables:
"Chapter 2 - Trends":
"2-S1":
unit: MMT CO2e
desc: "Table 2-S1: Supplemental Data for Trends in Greenhouse Gas Emissions and Sinks by Gas (MMT CO2 Eq.)"
data_reliability: 4
"Chapter 3 - Energy":
"3-4":
unit: MMT CO2e
flow: CO2
desc: "Table 3-4: CO2 Emissions from Fossil Fuel Combustion by Fuel Type and Sector (MMT CO2 Eq.)"
data_reliability: 4
"3-7":
desc: "Table 3-7: GHG Emissions from Fossil Fuel Combustion in the Electric Power Sector (MMT CO2 Eq.)"
data_reliability: 4
"3-8": # imports correctly
flow: CO2
desc: "Table 3-8: CO2 Emissions from Fossil Fuel Combustion in Transportation End-Use Sector (MMT CO2 Eq.)"
data_reliability: 4
"3-9": # imports correctly
flow: CH4
desc: "Table 3-9: CH4 Emissions from Mobile Combustion (MMT CO2 Eq)"
data_reliability: 4
"3-10": # imports correctly
flow: N2O
desc: "Table 3-10: N2O Emissions from Mobile Combustion (MMT CO2 Eq.)"
data_reliability: 4
"3-11":
desc: "Table 3-11: GHG Emissions from Fossil Fuel Combustion in the Industrial Sector (MMT CO2 Eq.)"
data_reliability: 4
"3-12":
desc: "Table 3-12: GHG Emissions from Fossil Fuel Combustion in the Residential and Commercial Sectors (MMT CO2 Eq.)"
data_reliability: 4
"3-14":
flow: CO2
desc: "Table 3-14: CO2 Emissions from NEU Fossil Fuel Consumption (MMT CO2 Eq. and Percent Carbon)"
data_reliability: 4
"3-25":
"flow": "CH4"
"desc": "Table 3-25: CH4 Emissions from Petroleum Systems (MMT CO2 Eq.)"
"data_reliability": 4
"3-26":
flow: CO2
desc: "Table 3-26: CO2 Emissions from Petroleum Systems (MMT)"
data_reliability: 2
"3-27":
flow: N2O
desc: "Table 3-27: N2O Emissions from Petroleum Systems (MMT CO2 Eq.)"
data_reliability: 4
"3-28":
flow: CH4
desc: "Table 3-28: CH4 Emissions from Natural Gas Systems (MMT CO2 Eq.)"
data_reliability: 4
"3-29":
flow: CO2
desc: "Table 3-29: CO2 Emissions from Natural Gas Systems (MMT)"
data_reliability: 4
"3-30":
flow: N2O
desc: "Table 3-30: N2O Emissions from Natural Gas Systems (MMT CO2 Eq.)"
data_reliability: 4

"Chapter 4 - IPPU":
"4-31":
flow: CO2e
desc: "Table 4-31: Emissions from Petrochemical Production (MMT CO2 Eq.)"
data_reliability: 4
"4-33":
flow: HFC-23
activity: HCFC-22 Production
desc: "Table 4-33: Emissions from HCFC-22 Production (MMT CO2 Eq.)"
data_reliability: 4
"4-35":
activity: Fluorochemical Production
desc: "Table 4-35: Emissions of HFCs, PFCs, SF6, and NF3 from Production of Fluorochemicals Other Than HCFC-22 (MMT CO2 Eq.)"
data_reliability: 4
"4-50":
activity: Aluminum Production
desc: "Table 4-50: Emissions from Aluminum Production (MMT CO2 Eq.)"
data_reliability: 4
"4-52":
flow: CO2e
activity: Magnesium Production
desc: "Table 4-52: Emissions from Magnesium Production (MMT CO2 Eq.)"
data_reliability: 4
"4-57":
flow: CO2e
desc: "Table 4-57: Emissions from Electronics Industry (MMT CO2 Eq.)"
data_reliability: 4
"4-59":
flow: CO2e
activity: ODS Substitute
desc: "Table 4-59: Emissions of HFCs, PFCs, and CO2 from ODS Substitutes (MMT CO2 Eq.)"
data_reliability: 4
"4-60":
flow: HFCs and PFCs
desc: "Table 4-60: Emissions from ODS Substitutes by Sector (MMT CO2 Eq.)"
data_reliability: 4
"4-62":
desc: "Table 4-62: Emissions from Other Product Use (MMT CO2 Eq.)"
data_reliability: 4

"Chapter 5 - Agriculture":
"5-3":
flow: CH4
desc: "Table 5-3: CH4 Emissions from Enteric Fermentation (MMT CO2 Eq.)"
data_reliability: 4
"5-6":
flow: CO2e
desc: "Table 5-6: CH4 and N2O Emissions from Manure Management (MMT CO2 Eq.)"
data_reliability: 4
"5-10":
flow: N2O
desc: "Table 5-10: N2O Emissions from Agricultural Soil Management (MMT CO2 Eq.)"
data_reliability: 4
"5-15":
flow: CO2e
desc: "Table 5-15: CH4 and N2O Emissions from Field Burning of Agricultural Residues (MMT CO2 Eq.)"
data_reliability: 4

Annex:
"Annex 5":
"A5-1-S2": # Separate emissions table for each year - 2022
"class": "Energy"
"unit": "TBtu"
"emission_compartment": "air"
"emission": "CO2"
"emission_unit": "MMT CO2e"
"emission_class": "Chemicals"
"desc": "Table A5.1-S2: 2022 Energy Consumption Data and CO2 Emissions from Fossil Fuel Combustion by Fuel Type"

"A5-5-2":
"class": "Chemicals"
"unit": "MMT CO2e"
"compartment": "air"
"flow": "HFCs"
"desc": "Table A5.5-2: HFC Emissions from Transportation Sources (MMT CO2 Eq.)"
1 change: 1 addition & 0 deletions bedrock/extract/umd/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""University of Maryland GHGIA (GHGIA) extract — FBA and GCS path helpers."""
Loading
Loading