Skip to content

Commit

Permalink
Update keywords for all archives
Browse files Browse the repository at this point in the history
  • Loading branch information
e-belfer committed Sep 11, 2023
1 parent 86ece0c commit 513369f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
28 changes: 28 additions & 0 deletions src/pudl/metadata/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,34 @@
"government",
"federal",
],
"msha": [
"msha",
"mshamines",
"mine safety and health administration",
"mines",
"mining",
"coal",
"metal",
],
"phmsa": [
"phmsa",
"phmsagas",
"pipelines and hazardous materials safety administration",
"pipelines",
"natural gas",
"transmission",
"distribution",
"gathering",
"liquified natural gas",
"lng",
"underground natural gas storage",
],
"eia_water": [
"eia thermoelectric cooling water",
"eia waterthermoelectric",
"cooling water",
"water usage",
],
}

XBRL_TABLES = [
Expand Down
19 changes: 17 additions & 2 deletions src/pudl/metadata/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
[
"eia176",
"form 176",
"natural gas",
]
+ KEYWORDS["eia"]
+ KEYWORDS["us_govt"]
+ KEYWORDS["fuels"]
+ KEYWORDS["environment"]
)
),
"license_raw": LICENSES["us-govt"],
Expand Down Expand Up @@ -262,6 +261,9 @@
"Monthly cooling water usage by generator and boiler. Data "
"collected in conjunction with the EIA-860 and EIA-923."
),
"keywords": sorted(
set(KEYWORDS["eia"] + KEYWORDS["us_govt"] + KEYWORDS["eia_water"])
),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand Down Expand Up @@ -523,6 +525,17 @@
"as well as transaction information for short-term and long-term "
"market-based power sales and cost-based power sales."
),
"keywords": sorted(
set(
[
"ferceqr",
"electric quarterly report",
]
+ KEYWORDS["ferc"]
+ KEYWORDS["us_govt"]
+ KEYWORDS["electricity"]
)
),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand All @@ -535,6 +548,7 @@
"mine (Active, Abandoned, NonProducing, etc.), the current owner and "
"operating company, commodity codes and physical attributes of the mine."
),
"keywords": sorted(set(KEYWORDS["msha"] + KEYWORDS["us_govt"])),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand All @@ -548,6 +562,7 @@
"pipeline mileage, facilities, commodities transported, miles by material, "
"and installation dates."
),
"keywords": sorted(set(KEYWORDS["phmsa"] + KEYWORDS["us_govt"])),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand Down

0 comments on commit 513369f

Please sign in to comment.