specify_elect_heat_renewables.Rd
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"
)
The .tidy_iea_df
for which electricity and heat products need to be specified
when they come from renewable energy. Default is .tidy_iea_df
.
See IEATools::iea_cols
.
Name of transformation process flows in data frame. Default is IEATools::aggregation_flows$transformation_processes.
Name of energy industry own use flows in data frame. Default is IEATools::aggregation_flows$energy_industry_own_use.
Name of electricity producing plants. Default is IEATools::main_act_plants$main_act_prod_elect_plants.
Name of CHP producing plants. Default is IEATools::main_act_plants$main_act_prod_chp_plants
Name of heat producing plants. Default is IEATools::main_act_plants$main_act_prod_heat_plants
Name of autoproducer electricity plants. Default is "Autoproducer electricity plants".
Name of autoproducer CHP plants. Default is "Autoproducer CHP plants".
Name of autoproducer heat plants. Default is "Autoproducer heat plants".
Temporary column name. Default is "Hydro".
Temporary column name. Default is "Geothermal".
Temporary column name. Default is "Solar photovoltaics".
Temporary column name. Default is "Solar thermal".
Temporary column name. Default is "Tide, wave and ocean".
Temporary column name. Default is "Wind".
Temporary column name. Default is "Electricity".
Temporary column name. Default is "Heat".
Ratio of input hydro to output electricity. Default is 1, value comes from IEA's WEEB.
Ratio of output electricity to input solar PV. Default is 1, value comes from IEA's WEEB.
Ratio of output electricity to input solar thermal. Default is 0.33, value comes from IEA's WEEB.
Ratio of output heat to input solar thermal. Default is 1, value comes from IEA's WEEB.
Ratio of output electricity to input wind. Default is 1, value comes from IEA's WEEB.
Ratio of output electricity to input geothermal. Default is 0.1, value comes from IEA's WEEB.
Ratio of output heat to input geothermal. Default is 0.5, value comes from IEA's WEEB.
Ratio of output electricity to input tide, wave, ocean. Default is 1, value comes from IEA's WEEB.
Temporary column name. Default is "Share_Output_Elect_From_Func".
Temporary column name. Default is "Share_Renewables_From_Func".
Temporary column name. Default is "E_dot_Renewables".
Temporary column name. Default is "E_dot_Rest".
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()
#> # A tibble: 102 × 11
#> Country Method Energy.type Last.stage Year Ledger.side
#> <chr> <chr> <chr> <chr> <dbl> <chr>
#> 1 A PCM E Final 2018 Consumption
#> 2 A PCM E Final 2018 Consumption
#> 3 A PCM E Final 2018 Consumption
#> 4 A PCM E Final 2018 Consumption
#> 5 A PCM E Final 2018 Consumption
#> 6 A PCM E Final 2018 Consumption
#> 7 A PCM E Final 2018 Consumption
#> 8 A PCM E Final 2018 Consumption
#> 9 A PCM E Final 2018 Consumption
#> 10 A PCM E Final 2018 Consumption
#> # ℹ 92 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> # Unit <chr>, E.dot <dbl>