CO2 Emissions
SLiDE.partition_co2!
— Functionpartition_co2!(dataset::Dataset, d::Dict, set::Dict, maps::Dict)
This function partitions and calculates CO2 emissions data.
Arguments
dataset::Dataset
identifierd::Dict
of model parametersset::Dict
of Arrays describing parameter indices (years, regions, goods, sectors, etc.)maps::Dict
of default mapping schematics and constants
Returns
d::Dict
of model parametersset::Dict
of Arrays describing parameter indices (years, regions, goods, sectors, etc.)
SLiDE._partition_co2emiss!
— Function\[\bar{co_2}_{yr,r,src,sec} \text{ [million metric tons of CO2]} = \dfrac{1}{10^3} \cdot \tilde{eq}_{yr,r,src\neq ele, sec} \text{ [trillion btu]} \cdot f_{src} \text{ [kg CO2/million btu]}\]
SLiDE._share_co2emiss!
— FunctionDefine:
\[\begin{aligned} \tilde{v}_{yr,r,g=e,s} &= \left\{ \tilde{id}_{yr,r,g,s} \;\vert\; g=e \right\} \\ map_{s\rightarrow sec} &= \left\{ demand(s,src) \;\vert\; [ind,com,trn]\in sec \right\} \end{aligned}\]
Then, use SLiDE.share_with
to define $\delta^{co2}_{yr,r,g,s\rightarrow sec}$:
\[\tilde{\delta}^{co2}_{yr,r,g,s\rightarrow sec} = \dfrac {v_{yr,r,g=e,s} \circ map_{s\rightarrow sec}} {\sum_{sec} v_{yr,r,g=e,s} \circ map_{s\rightarrow sec}}\]
SLiDE._partition_secco2!
— FunctionFor $sec = (ind,com,trn)$, use the sharing parameter $\delta^{co2}_{yr,r,g,s\rightarrow sec}$ calculated by SLiDE._share_co2emiss!
.
\[\tilde{co2}_{yr,r,g,s} = \sum_{sec} \left( \tilde{co2}_{yr,r,src\rightarrow g, sec} \cdot \delta^{co2}_{yr,r,g,s\rightarrow sec} \right)\]
Use un-shared values for $sec = (ele,ref)$ (which maps to $s = (ele,oil)$):
\[\tilde{co2}_{yr,r,g,s\neq res} = \tilde{co2}_{yr,r,src\rightarrow g, sec} \circ map_{sec\rightarrow s}\]
SLiDE._partition_resco2!
— Function\[\tilde{co2}_{yr,r,g} = \left\{ co2_{yr,r,src\rightarrow g,sec} \;\vert\; sec=res \right\}\]