🌎 environment¶
U.S. environmental data spanning air quality (EPA AQS monitored concentrations and AQI), toxics and greenhouse-gas emissions (EPA TRI and GHGRP by facility), surface water (USGS streamflow and monitoring sites), public drinking-water systems (EPA SDWIS), and the EPA facility registry with compliance and enforcement history (ECHO/FRS). Each row is a place-and-period observation or a facility record joinable to geo (states/counties), sec (regulated companies), econ, and weather. Together they describe environmental quality, pollution sources, and regulatory status across the United States.
17 datasets · 177 columns
air_quality_annual · table¶
EPA AirData annual-summary air quality by monitor and pollutant (annual mean, peak values, observation/valid-day counts) for PM2.5, Ozone, SO2, NO2, and CO. Keyless national bulk file annual_conc_by_monitor_
| Column | Type | Null | Description |
|---|---|---|---|
state_ |
string | no | 2-digit state FIPS code (e.g. '06' for California) |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
parameter_ |
string | yes | Pollutant code (88101, 44201, etc.) |
parameter_ |
string | yes | Pollutant name (e.g. 'PM2.5 - Local Conditions') |
year |
integer | no | Calendar year |
arithmetic_ |
double | yes | Annual mean concentration |
first_ |
double | yes | Highest recorded value |
observation_ |
integer | yes | Number of observations |
valid_ |
integer | yes | Days with valid data |
aqi |
integer | yes | Air Quality Index |
air_quality_daily · table¶
EPA AirData daily-summary air quality by monitoring site. One row per site per day per pollutant standard (mean, peak, AQI where applicable). Keyless national bulk files daily__
| Column | Type | Null | Description |
|---|---|---|---|
state_ |
string | no | 2-digit state FIPS code (e.g. '06' for California) |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
site_ |
string | yes | Monitoring site number |
parameter_ |
string | yes | Pollutant code (88101, 44201, etc.) |
parameter_ |
string | yes | Pollutant name |
year |
integer | no | Calendar year |
date |
string | no | Sample date (YYYY-MM-DD) |
sample_ |
string | yes | Sample duration (e.g. '24-HR BLK AVG', '1 HOUR') |
pollutant_ |
string | yes | Pollutant standard used for AQI calculation |
arithmetic_ |
double | yes | Daily mean concentration |
first_ |
double | yes | Highest recorded value for the day |
aqi |
integer | yes | Air Quality Index (null for non-daily-standard measurements) |
observation_ |
integer | yes | Number of observations |
latitude |
double | yes | Site latitude |
longitude |
double | yes | Site longitude |
aqs_monitors · table¶
EPA AQS monitor metadata — one row per (site, parameter, POC) with location, monitor type, networks, and operating span. Keyless reference file aqs_monitors.zip. Snapshot; joins air_quality_daily by site and geo by county_fips.
| Column | Type | Null | Description |
|---|---|---|---|
state_ |
string | yes | 2-digit state FIPS code (e.g. '06' for California) |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
site_ |
string | yes | Monitoring site number |
parameter_ |
string | yes | Pollutant/parameter code |
parameter_ |
string | yes | Parameter name |
latitude |
double | yes | Monitor latitude |
longitude |
double | yes | Monitor longitude |
monitor_ |
string | yes | Monitor type (e.g. SLAMS, SPM) |
networks |
string | yes | Monitoring networks |
first_ |
integer | yes | First year of data |
last_ |
string | yes | Last sample date |
local_ |
string | yes | Local site name |
city_ |
string | yes | City name |
cbsa_ |
string | yes | Core-Based Statistical Area name |
tri_releases · table¶
EPA Toxics Release Inventory — one row per facility × chemical × reporting form for the year, with on-site/off-site release and transfer amounts. Per-year national bulk CSV (efservice mv_tri_basic_download). Delta by year. Joins geo via state (abbr) + county name; frs_id links epa_facilities.
| Column | Type | Null | Description |
|---|---|---|---|
tri_ |
string | yes | TRI facility id |
frs_ |
string | yes | FRS registry id (FK to epa_facilities.registry_id) |
facility_ |
string | yes | Facility name |
city |
string | yes | City |
county |
string | yes | County name |
state_ |
string | yes | State (USPS abbr) |
zip |
string | yes | ZIP code |
latitude |
double | yes | Facility latitude |
longitude |
double | yes | Facility longitude |
primary_ |
string | yes | Primary NAICS code |
chemical |
string | yes | Chemical name |
cas_ |
string | yes | CAS registry number |
unit_ |
string | yes | Unit of measure for release amounts |
fugitive_ |
double | yes | Fugitive air release |
stack_ |
double | yes | Stack air release |
water_ |
double | yes | Surface-water discharge |
on_ |
double | yes | Total on-site releases |
off_ |
double | yes | Total off-site releases |
total_ |
double | yes | Total releases (on-site + off-site) |
ghg_facilities · table¶
EPA GHGRP facility dimension — one row per reporting facility per year with location, NAICS, parent company, and reported industry types. Envirofacts efservice full-year CSV. Delta by year. Join ghg_emissions on (facility_id, year); frs_id links epa_facilities.
| Column | Type | Null | Description |
|---|---|---|---|
facility_ |
string | no | GHGRP facility id |
facility_ |
string | yes | Facility name |
latitude |
double | yes | Facility latitude |
longitude |
double | yes | Facility longitude |
city |
string | yes | City |
state_ |
string | yes | State (USPS abbr) |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
county |
string | yes | County name |
zip |
string | yes | ZIP code |
naics_ |
string | yes | NAICS code |
frs_ |
string | yes | FRS registry id (FK to epa_facilities.registry_id) |
parent_ |
string | yes | Parent company |
reported_ |
string | yes | Reported industry types |
facility_ |
string | yes | Facility types (e.g. 'Direct Emitter') |
ghg_emissions · table¶
EPA GHGRP emissions facts — CO2-equivalent emissions keyed by facility × year × sector × subsector × gas. Envirofacts efservice full-year CSV. Delta by year. Per-facility annual total = SUM(co2e_emission) over the facility-year; join ghg_facilities on (facility_id, year) for geography.
| Column | Type | Null | Description |
|---|---|---|---|
facility_ |
string | no | GHGRP facility id (FK to ghg_facilities.facility_id) |
sector_ |
integer | yes | GHGRP sector id |
subsector_ |
integer | yes | GHGRP subsector id |
gas_ |
integer | yes | Gas id (1=CO2, 2=CH4, 3=N2O, ...) |
co2e_ |
double | yes | Emissions in metric tons CO2-equivalent |
water_sites · table¶
USGS NWIS surface-water monitoring sites — one row per active stream site with location, HUC, and drainage area. Fetched per state from the NWIS site service (RDB, expanded output). Snapshot. site_no joins streamflow; state_fips/county_fips join geo.
| Column | Type | Null | Description |
|---|---|---|---|
site_ |
string | no | USGS site number (PK) |
agency_ |
string | yes | Reporting agency code |
station_ |
string | yes | Station name |
site_ |
string | yes | Site type code (ST = stream) |
latitude |
double | yes | Decimal latitude |
longitude |
double | yes | Decimal longitude |
state_ |
string | yes | 2-digit state FIPS code (e.g. '06' for California) |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
huc_ |
string | yes | Hydrologic unit code |
drainage_ |
double | yes | Drainage area (square miles) |
streamflow · table¶
USGS NWIS daily streamflow — one row per (site, date) with discharge (cfs) and gage height (ft). Fetched per (state, year) from the NWIS daily-values service (RDB; concatenated per-site blocks with dynamically-named value columns, normalized by the transformer). Delta by year; current year is re-fetched. site_no joins water_sites.
| Column | Type | Null | Description |
|---|---|---|---|
site_ |
string | no | USGS site number (FK to water_sites.site_no) |
obs_ |
date | no | Observation date |
discharge_ |
double | yes | Daily mean discharge (cubic feet per second) |
discharge_ |
string | yes | Discharge qualifier (A=approved, P=provisional, e=estimated) |
gage_ |
double | yes | Daily mean gage height (feet) |
gage_ |
string | yes | Gage-height qualifier |
drinking_water · table¶
EPA SDWIS public water systems — one row per active public water system (PWS) with type, population served, ownership, and source-water type. Envirofacts efservice full-state CSV (active systems only). Snapshot. pwsid joins drinking_water_violations; state_code joins geo.states.
| Column | Type | Null | Description |
|---|---|---|---|
pwsid |
string | no | Public Water System id (PK) |
pws_ |
string | yes | Public water system name |
pws_ |
string | yes | PWS type (CWS, NTNCWS, TNCWS) |
primacy_ |
string | yes | Primacy agency code |
epa_ |
string | yes | EPA region |
population_ |
long | yes | Population served |
service_ |
long | yes | Service connections |
owner_ |
string | yes | Owner type code |
gw_ |
string | yes | Ground-water / surface-water code |
primary_ |
string | yes | Primary source-water type |
city_ |
string | yes | City |
zip_ |
string | yes | ZIP code |
state_ |
string | yes | State (USPS abbr) |
epa_facilities · table¶
EPA ECHO Exporter — one row per regulated facility (~1.5M) with registry identity, location, and a rolled-up compliance/enforcement summary (inspections, violations, penalties, per-statute compliance status). Keyless weekly-snapshot bulk zip. registry_id links TRI/GHGRP frs_id; the facility_compliance view projects the compliance subset.
| Column | Type | Null | Description |
|---|---|---|---|
registry_ |
string | no | FRS registry id (PK) |
facility_ |
string | yes | Facility name |
street |
string | yes | Street address |
city |
string | yes | City |
state_ |
string | yes | State (USPS abbr) |
zip |
string | yes | ZIP code |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
latitude |
double | yes | Facility latitude |
longitude |
double | yes | Facility longitude |
naics_ |
string | yes | NAICS codes (space-separated) |
sic_ |
string | yes | SIC codes (space-separated) |
compliance_ |
string | yes | Overall compliance status |
snc_ |
string | yes | Significant non-compliance flag |
inspection_ |
integer | yes | Inspections/evaluations count |
date_ |
string | yes | Date of last inspection |
formal_ |
integer | yes | Formal enforcement actions count |
total_ |
double | yes | Total penalties (USD) |
caa_ |
string | yes | Clean Air Act compliance status |
cwa_ |
string | yes | Clean Water Act compliance status |
rcra_ |
string | yes | RCRA compliance status |
sdwa_ |
string | yes | Safe Drinking Water Act compliance status |
drinking_water_violations · table¶
EPA SDWIS drinking-water violations — one row per violation per public water system (health-based & monitoring violations: contaminants, lead/ copper, treatment). Envirofacts efservice full-state CSV, filtered by primacy_agency_code (the state column; the literal state column silently no-ops). Snapshot. pwsid joins drinking_water.
| Column | Type | Null | Description |
|---|---|---|---|
pwsid |
string | no | Public Water System id (FK to drinking_water.pwsid) |
violation_ |
string | no | Violation id (PK component) |
violation_ |
string | yes | Violation type code |
violation_ |
string | yes | Violation category (MR=monitoring, MCL, TT, ...) |
is_ |
string | yes | Health-based violation indicator (Y/N) |
contaminant_ |
string | yes | Contaminant code |
compliance_ |
string | yes | Compliance/return-to-compliance status |
is_ |
string | yes | Major violation indicator (Y/N) |
viol_ |
double | yes | Violation measurement value |
unit_ |
string | yes | Unit of measure |
compl_ |
string | yes | Compliance period begin date |
compl_ |
string | yes | Compliance period end date |
rule_ |
string | yes | Regulatory rule code |
pws_ |
string | yes | PWS type (CWS, NTNCWS, TNCWS) |
superfund_sites · table¶
EPA SEMS Superfund sites — one row per site with National Priorities List status and location. Envirofacts efservice full table (national, ~55K). Snapshot. npl_status_code 'F' = Final NPL. Joins geo via fips_code (county) / state; lat/lon populated for NPL sites.
| Column | Type | Null | Description |
|---|---|---|---|
site_ |
string | no | SEMS site id (PK) |
epa_ |
string | yes | EPA site id (e.g. CTD000604546) |
site_ |
string | yes | Site name |
npl_ |
string | yes | NPL status code (F=Final NPL, N=not on NPL) |
npl_ |
string | yes | NPL status description |
street |
string | yes | Street address |
city |
string | yes | City |
state_ |
string | yes | State (USPS abbr) |
county_ |
string | yes | County name |
county_ |
string | yes | 5-digit county FIPS code (FK to geo.counties) |
latitude |
double | yes | Site latitude |
longitude |
double | yes | Site longitude |
federal_ |
string | yes | Federal facility indicator |
rcra_facilities · table¶
EPA RCRAInfo hazardous-waste handlers — one row per current handler (generators, transporters, treatment/storage/disposal). Envirofacts efservice full-state CSV filtered to current_record='Y' (the table is multi-cycle history). Snapshot. Joins geo via location_state + county_code.
| Column | Type | Null | Description |
|---|---|---|---|
handler_ |
string | no | EPA RCRA handler id (PK) |
handler_ |
string | yes | Handler name |
location_ |
string | yes | City |
state_ |
string | yes | State (USPS abbr) |
location_ |
string | yes | ZIP code |
county_ |
string | yes | County code |
fed_ |
string | yes | Federal hazardous-waste generator status (1/2/3/N) |
transporter |
string | yes | Transporter activity flag |
tsd_ |
string | yes | Treatment/storage/disposal activity flag |
recycler_ |
string | yes | Recycler activity flag |
latitude |
double | yes | Handler latitude |
longitude |
double | yes | Handler longitude |
water_quality_samples · table¶
USGS/EPA Water Quality Portal — measured water-quality sample results (nitrate, metals, bacteria, pH, etc.) at monitoring locations. Fetched per (state FIPS, year) from the Result service. Delta by year; large/slow, so DQ samples via dqRowLimit. monitoring_location_id joins USGS/STORET sites.
| Column | Type | Null | Description |
|---|---|---|---|
organization_ |
string | yes | Reporting organization id |
monitoring_ |
string | yes | Monitoring location id |
activity_ |
string | yes | Sampling activity id |
activity_ |
string | yes | Sample date (YYYY-MM-DD) |
activity_ |
string | yes | Sample medium (Water, ...) |
characteristic_ |
string | yes | Measured characteristic (e.g. Nitrate, pH, Lead) |
sample_ |
string | yes | Sample fraction (Total, Dissolved, ...) |
result_ |
double | yes | Measured result value |
result_ |
string | yes | Result unit of measure |
usgs_ |
string | yes | USGS parameter code |
result_ |
string | yes | Result status (Accepted, Preliminary, ...) |
ghg_facility_annual · view¶
Per-facility annual greenhouse-gas emissions (total metric tons CO2e) with geography, joining the emissions facts to the facility dimension.
View — columns are resolved by the query engine at runtime.
facility_compliance · view¶
Compliance/enforcement projection of epa_facilities — identity plus the inspection, penalty, and per-statute compliance-status columns.
View — columns are resolved by the query engine at runtime.
air_quality_annual_by_county · view¶
County-year average of the annual mean concentration and peak AQI by pollutant — the headline air-quality rollup, joinable to geo.counties.
View — columns are resolved by the query engine at runtime.