View source: R/specify_elect_heat.R
specify_elect_heat_renewables | R Documentation |
This code selects main activity autoproducer electricity, heat and CHP plants,
and figures out which fraction of the output is due to renewable energy, based on the conversion factors
of energy output to energy input provided by the IEA's WEEB.
The energy due to renewable energy is then subtracted from the main activity and autoproducer elect, heat and CHP plants,
and the input and output flows due to renewable energy are directed to a new industry called "Renewable energy plants",
which now produce "Electricity [
from Renewables]
" and "Heat [
from Renewables]
".
specify_elect_heat_renewables(
.tidy_iea_df,
country = IEATools::iea_cols$country,
method = IEATools::iea_cols$method,
energy_type = IEATools::iea_cols$energy_type,
last_stage = IEATools::iea_cols$last_stage,
year = IEATools::iea_cols$year,
ledger_side = IEATools::iea_cols$ledger_side,
flow_aggregation_point = IEATools::iea_cols$flow_aggregation_point,
flow = IEATools::iea_cols$flow,
product = IEATools::iea_cols$product,
e_dot = IEATools::iea_cols$e_dot,
unit = IEATools::iea_cols$unit,
transformation_processes = IEATools::aggregation_flows$transformation_processes,
eiou_flows = IEATools::aggregation_flows$energy_industry_own_use,
main_act_prod_elect = IEATools::main_act_plants$main_act_prod_elect_plants,
main_act_prod_chp = IEATools::main_act_plants$main_act_prod_chp_plants,
main_act_prod_heat = IEATools::main_act_plants$main_act_prod_heat_plants,
autoprod_elect = "Autoproducer electricity plants",
autoprod_chp = "Autoproducer CHP plants",
autoprod_heat = "Autoproducer heat plants",
hydro = "Hydro",
geothermal = "Geothermal",
solar_pv = "Solar photovoltaics",
solar_th = "Solar thermal",
tide_wave_ocean = "Tide, wave and ocean",
wind = "Wind",
electricity = "Electricity",
heat = "Heat",
ratio_hydro_to_input = 1,
ratio_solar_PV_to_input = 1,
ratio_solar_thermal_elect_to_input = 0.33,
ratio_solar_thermal_heat_to_input = 1,
ratio_wind_to_input = 1,
ratio_geothermal_elect_to_input = 0.1,
ratio_geothermal_heat_to_input = 0.5,
ratio_tidal_wave_to_input = 1,
share_elect_output_From_Func = "Share_Output_Elect_From_Func",
share_renewables_From_Func = "Share_Renewables_From_Func",
e_dot_renewables = "E_dot_Renewables",
e_dot_rest = "E_dot_Rest",
negzeropos = ".netzeropos"
)
.tidy_iea_df |
The |
country, method, energy_type, last_stage, year, ledger_side, flow_aggregation_point, flow, product, e_dot, unit |
See |
transformation_processes |
Name of transformation process flows in data frame. Default is IEATools::aggregation_flows$transformation_processes. |
eiou_flows |
Name of energy industry own use flows in data frame. Default is IEATools::aggregation_flows$energy_industry_own_use. |
main_act_prod_elect |
Name of electricity producing plants. Default is IEATools::main_act_plants$main_act_prod_elect_plants. |
main_act_prod_chp |
Name of CHP producing plants. Default is IEATools::main_act_plants$main_act_prod_chp_plants |
main_act_prod_heat |
Name of heat producing plants. Default is IEATools::main_act_plants$main_act_prod_heat_plants |
autoprod_elect |
Name of autoproducer electricity plants. Default is "Autoproducer electricity plants". |
autoprod_chp |
Name of autoproducer CHP plants. Default is "Autoproducer CHP plants". |
autoprod_heat |
Name of autoproducer heat plants. Default is "Autoproducer heat plants". |
hydro |
Temporary column name. Default is "Hydro". |
geothermal |
Temporary column name. Default is "Geothermal". |
solar_pv |
Temporary column name. Default is "Solar photovoltaics". |
solar_th |
Temporary column name. Default is "Solar thermal". |
tide_wave_ocean |
Temporary column name. Default is "Tide, wave and ocean". |
wind |
Temporary column name. Default is "Wind". |
electricity |
Temporary column name. Default is "Electricity". |
heat |
Temporary column name. Default is "Heat". |
ratio_hydro_to_input |
Ratio of input hydro to output electricity. Default is 1, value comes from IEA's WEEB. |
ratio_solar_PV_to_input |
Ratio of output electricity to input solar PV. Default is 1, value comes from IEA's WEEB. |
ratio_solar_thermal_elect_to_input |
Ratio of output electricity to input solar thermal. Default is 0.33, value comes from IEA's WEEB. |
ratio_solar_thermal_heat_to_input |
Ratio of output heat to input solar thermal. Default is 1, value comes from IEA's WEEB. |
ratio_wind_to_input |
Ratio of output electricity to input wind. Default is 1, value comes from IEA's WEEB. |
ratio_geothermal_elect_to_input |
Ratio of output electricity to input geothermal. Default is 0.1, value comes from IEA's WEEB. |
ratio_geothermal_heat_to_input |
Ratio of output heat to input geothermal. Default is 0.5, value comes from IEA's WEEB. |
ratio_tidal_wave_to_input |
Ratio of output electricity to input tide, wave, ocean. Default is 1, value comes from IEA's WEEB. |
share_elect_output_From_Func |
Temporary column name. Default is "Share_Output_Elect_From_Func". |
share_renewables_From_Func |
Temporary column name. Default is "Share_Renewables_From_Func". |
e_dot_renewables |
Temporary column name. Default is "E_dot_Renewables". |
e_dot_rest |
Temporary column name. Default is "E_dot_Rest". |
negzeropos |
Temporary column name. Default is ".netzeropos". |
A .tidy_iea_df
with electricity and heat products specified when they come from renewable energy.
A_B_path <- system.file("extdata/A_B_data_full_2018_format.csv", package = "ECCTools")
IEATools::load_tidy_iea_df(A_B_path) %>%
IEATools::specify_all() %>%
specify_elect_heat_renewables()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.