aq_summary_t = aq.from(transpose(aq_summary))
aq_sources = aq_summary_t
.dedupe("sector_name")
.array("sector_name")
.sort()
aq_vars = new Map([
["Nitrogen Oxides", "NOx"],
["Carbon Monoxide", "CO"],
["Sulphur Dioxide", "SO2"],
["Ammonia", "NH3"],
["Particulate Matter (PM₁₀)", "PM10"],
["Fine Particulate Matter (PM₂.₅)", "PM2.5"],
["Volatile Organic Compounds", "VOC"],
["Lead", "Pb"]
])
aq_years = aq_summary_t.dedupe("emission_year").array("emission_year")
aq_summary_filtered = aq_summary_t.filter(aq.escape((d) => d.short_poll_name === aqVarChoice && aqSectorChoice.includes(d.sector_name)))
aq_summary_filtered_year = aq_summary_t.filter(aq.escape((d) => d.short_poll_name === aqVarChoice && d.emission_year == aqFocusYear))The charts below show information related to air quality emissions from Wales. Eight key pollutants are visualised, including gaseous species, particulate matter, volatile organic compounds, and metals. The data on this page can be downloaded from the National Atmospheric Emissions Inventory.
newPlot.plot({
marginLeft: 60,
marginTop: 40,
marginBottom: 40,
style: {
fontSize: 15,
},
width,
color: {
legend: true,
domain: aq_sources,
label: "Sector"
},
x: {
tickFormat: "",
interval: 1,
label: "Emission Year"
},
y: {
label: aqPercentAxis ? "% Contribution" : "Emissions (kilotonne)",
grid: true,
percent: aqPercentAxis
},
marks: [
newPlot.barY(
aq_summary_filtered.filter(aq.escape((d) => d.emission_year === aqFocusYear)),
newPlot.groupX(
{
y1: (D) => d3.sum(D, (d) => d > 0 ? d : 0),
y2: (D) => d3.sum(D, (d) => d < 0 ? d : 0)
},
{x: "emission_year", y: aqPercentAxis ? "p" : "emission", stroke: "black", strokeWidth: 5})
),
newPlot.barY(
aq_summary_filtered, {
x: "emission_year",
y: aqPercentAxis ? "p" : "emission",
fill: "sector_name",
tip: { format: { color: "d", x: "d" } }
}
)
]
})newPlot.plot({
width,
height: 200,
marginLeft: 60,
marginTop: 30,
marginBottom: 40,
style: {
fontSize: 15
},
y: {
label: "Contribution to total (%) in " + aqFocusYear
},
fx: {
label: "NFR Code"
},
color: {
type: "categorical",
domain: aq_summary_filtered_year.dedupe("sector_code").array("sector_code").sort(),
scheme: "Observable10",
legend: false
},
marks: [
newPlot.waffleY(
{ length: 1 },
{ y: 100, fillOpacity: 0.5, multiple: 10, fill: "#e2e2e2" }
),
newPlot.waffleY(
aq_summary_filtered_year,
{
fx: "sector_code",
y: (d) => d.p * 100,
fill: "sector_code",
tip: {
format: {
fill: false
}
},
round: false,
multiple: 10
}
)
]
})The bar chart shows emissions of eight different pollutants, which can be selected at the top of this page. Sources can be selected and deselected using the checkboxes. By default, the y-axis shows the total emissions in kilotonnes, but selecting “percentage axis” shows the relative sector proportions instead.
viewof aqSectorChoice = Inputs.checkbox(
aq_sources,
{label: "Sources", value: aq_sources}
)
viewof aqPercentAxis = Inputs.toggle({label: "Percentage Axis", value: false})
// "Focus year" for lower plots
viewof aqFocusYear = Inputs.range([Math.min(...aq_years), Math.max(...aq_years)], {label: "Breakdown year", step: 1, value: Math.max(...aq_years)})Each of the air quality sources encompasses a number of sectors. These sources generally align with the NFR Codes used in the National Atmospheric Emissions Inventory. Select a sector name below to learn which sectors are included in each source.
aqDescription =
aqVarChoice == "NOx" ?
md`Emissions of nitrogen oxides in Wales were estimated to be 38 kt in 2023 and have decreased by 63% since 2005. Emissions in Wales account for 6% of the UK total for nitrogen oxides in 2023. The transport sources sector makes up the largest contribution to nitrogen oxides emissions in the inventory for years 2017-2023. Since 2005, emissions from other road transport (1A3b) (which is all road transport except passenger cars) have decreased by 71% while emissions from passenger cars (1A3bi) decreased by 57% since 2005. **Nitrogen oxides emissions decreased by 7% from 2022 to 2023. The main sub-sector driving this decrease is power generation (1A1a), which decreased by 18%. This is primarily driven by a decreasing amount of natural gas being used to generate electricity at power stations, as well as reductions in gas and coke production.**` :
aqVarChoice == "CO" ?
md`Emissions of carbon monoxide in Wales were estimated to be 125 kt in 2023 and have decreased by 51% since 2005. Emissions in Wales account for 11% of the UK total for carbon monoxide in 2023. The industrial combustion sector makes up the largest contribution to carbon monoxide emissions in the inventory throughout the time series, except 2022. Since 2005, emissions from iron and steel (1A2a) have fallen by 53% while other stationary combustion (1A2gviii) emissions have increased by 65%. The fall in iron and steel (1A2a) accounts for 81% of the decreasing industrial combustion trend in Wales. **Carbon monoxide emissions increased by 3% from 2022 to 2023. The main sub-sector driving this change is iron and steel (1A2a), which increased by 66%. This is primarily driven by the increase in sinter production, according to operator reported data.**` :
aqVarChoice == "SO2" ?
md`Emissions of sulphur dioxide in Wales were estimated to be 10 kt in 2023 and have decreased by 84% since 2005. Emissions in Wales account for 10% of the UK total for sulphur dioxide in 2023. The industrial combustion sector makes up the largest contribution to sulphur dioxide emissions in the inventory for years 2017-2023. Since 2005, emissions from other industries20 fell by 80% and chemical industries (2B) by 72%. **Sulphur dioxide emissions decreased by 13% from 2022 to 2023. The main sub-sector driving this change is refineries (1A1b) which decreased by 38%. This is primarily driven by reduced activity in 2023, as reported by operators.**` :
aqVarChoice == "NH3" ?
md`Emissions of ammonia in Wales were estimated to be 23 kt in 2023 and have increased by 5% since 2005. Emissions in Wales account for 9% of the UK total for ammonia in 2023. The agriculture sector makes up the largest contribution to ammonia emissions in the inventory throughout the time series. Since 2005, emissions from other manure management (3B1) has undergone the largest decrease of 12% but emissions from inorganic fertilisers (3Da1) and organic fertilisers applied to soils (3Da2) have increased by 25% and 20%. Organic fertilisers applied to soils (3Da2) has the largest contribution of 72% to the agriculture trend in Wales. **Ammonia emissions increased by 2% from 2022 to 2023. The main sub-sector driving this change is inorganic fertilisers (3Da1), which increased by 58%. This is primarily driven by a decrease in global energy prices compared to 2022, specifically natural gas which is used to produce inorganic fertilisers, resulting in the price of inorganic fertilisers dropping in 2023. In addition, the Control of Agricultural Pollution Regulations for Wales introduced in 2021 has influenced fertiliser application processes.**`:
aqVarChoice == "PM2.5" ?
md`Emissions of PM2.5 in Wales were estimated to be 4 kt in 2023 and have decreased by 48% since 2005. Emissions in Wales account for 7% of the UK total for PM2.5 in 2023. The industrial processes sector makes up the largest contribution to PM2.5 emissions in the inventory for years 2020-2023. Since 2005, emissions from iron and steel (1A2a) declined by 24% accounting for 47% of the decreasing industrial processes trend in Wales since 2005. Other industries and non coal quarrying and mining (2A5a) decreased by 49% and 43% but have a smaller impact on the industrial processes trend. **PM2.5 emissions decreased by 10% from 2022 to 2023. The main sub-sector driving this change is stationary domestic combustion (1A4bi), which decreased by 21%. This is primarily driven by reduced solid mineral fuel usage.**` :
aqVarChoice == "PM10" ?
md`Emissions of PM10 in Wales were estimated to be 8 kt in 2023 and have decreased by 40% since 2005. Emissions in Wales account for 7% of the UK total for PM10 in 2023. The industrial processes sector makes up the largest contribution to PM10 emissions in the inventory throughout the time series. Since 2005, emissions from other industries have decreased by 47% and emissions from non-coal quarrying and mining (2A5a) fell by 43%, which accounts for 14% and 43% of the decreasing industrial processes trend in Wales since 2005, respectively. **PM10 emissions decreased by 9% from 2022 to 2023. The main sub-sector driving this change is stationary domestic combustion (1A4bi), which decreased by 21%. This is primarily driven by reduced solid mineral fuel usage.**` :
aqVarChoice == "VOC" ?
md`Emissions of NMVOCs in Wales were estimated to be 40 kt in 2023 and have decreased by 40% since 2005. Emissions in Wales account for 5% of the UK total for NMVOCs in 2023. The solvent processes sector makes up the largest contribution to NMVOCs emissions in the inventory throughout the time series. Since 2005, emissions from industrial solvent processes (2D3) have decreased by 54% which accounts for 94% of the decreasing trend in solvent processes emissions in Wales since 2005. **NMVOCs emissions decreased by 3% from 2022 to 2023. The main sub-sector driving this change is stationary domestic combustion (1A4bi), which decreased by 25%. This is primarily driven by reduced solid mineral fuel usage.**` :
aqVarChoice == "Pb" ?
md`Emissions of lead in Wales were estimated to be 26 t in 2023 and have increased by 4% since 2005. Emissions in Wales account for 21% of the UK total for lead in 2023. The industrial processes sector makes up the largest contribution to lead emissions in the inventory throughout the time series. Since 2005, emissions from iron and steel (1A2a) increased by 48% accounting for 130% of the increasing industrial processes trend in Wales since 2005. This is partially offset by a decrease of 69% in emissions from other industries. **Lead emissions increased by 4% from 2022 to 2023. The main sub-sector driving this change is iron and steel (2C1) which increased by 8%. This is primarily driven by the increase in sinter production.**` :
md`...`