View source: R/nzCalculateCO2e.R
nzCalculateCO2e | R Documentation |
nzCalculateCO2e
calculates the CO2e emissions (in kg) per fuel per half-hour.Uses the EA grid generation data to sum yearly kWh by fuel and combines with the NZ efficiency and emission factors published at https://www.mbie.govt.nz/building-and-energy/energy-and-natural-resources/energy-statistics-and-modelling/energy-statistics/new-zealand-energy-sector-greenhouse-gas-emissions/
nzCalculateCO2e(dt, ef)
dt |
the data table with the half-hourly kWh values per fuel (do not include incomplete years) |
ef |
the MBIE emission factors file |
Returns a data.table of carbon intensity (gCO2-e/kWh) per fuel per year for further use
Notes:
* we estimate the factors each year by dividing the MBIE per-year totals (kt CO2-e) by the total per fuel per-year kWh in the data.table and then converting to g/kWh. If MBIE published the conversion factors this would not be necessary. But if they do, we have not been able to find them.
* the geothermal conversion _may not_ include fugitive emissions (?)
Ben Anderson, b.anderson@soton.ac.uk (original)
Other data:
alignDates()
,
cleanNZEmbEA()
,
cleanNZGridEA()
,
cleanNZGxpEA()
,
cleanUkEmbeddedESO()
,
cleanUkGridESO()
,
getNZEmbData()
,
getNZEmbMeta()
,
getNZGridEA()
,
getNZGridMeta()
,
getNZGxpEA()
,
getNZGxpMeta()
,
getUkEmbeddedESO()
,
getUkGridESO()
,
loadNZEAYearlyEmbeddedGenData()
,
loadNZEAYearlyGridGenData()
,
loadUKESOYearlyGenData()
,
loadUKEmbeddedGenData()
,
makeNZYearlyData()
,
reshapeEmbeddedGenDT()
,
reshapeGenDT()
,
saveUkEmbeddedESO()
,
saveUkGridESO()
,
setEmbeddedGenTimePeriod()
,
setGridGenTimePeriod()
Other utils:
addLockdownRect()
,
addSeason()
,
alignDates()
,
getDuration()
,
gzipFile()
,
loadLibraries()
,
setPeakPeriod()
,
setup()
,
tidyNum()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.