update energy balances April 2023 link

This commit is contained in:
Fabian Neumann 2024-05-21 15:59:46 +02:00
parent 0370deebca
commit eb4381be4d
4 changed files with 7 additions and 7 deletions

View File

@ -292,7 +292,7 @@ rule build_energy_totals:
swiss_transport="data/gr-e-11.03.02.01.01-cc.csv", swiss_transport="data/gr-e-11.03.02.01.01-cc.csv",
idees="data/bundle/jrc-idees-2015", idees="data/bundle/jrc-idees-2015",
district_heat_share="data/district_heat_share.csv", district_heat_share="data/district_heat_share.csv",
eurostat="data/eurostat/eurostat-energy_balances-april_2023_edition", eurostat="data/eurostat/Balances-April2023",
output: output:
energy_name=resources("energy_totals.csv"), energy_name=resources("energy_totals.csv"),
co2_name=resources("co2_totals.csv"), co2_name=resources("co2_totals.csv"),
@ -509,7 +509,7 @@ rule build_industrial_production_per_country:
input: input:
ammonia_production=resources("ammonia_production.csv"), ammonia_production=resources("ammonia_production.csv"),
jrc="data/bundle/jrc-idees-2015", jrc="data/bundle/jrc-idees-2015",
eurostat="data/eurostat/eurostat-energy_balances-april_2023_edition", eurostat="data/eurostat/Balances-April2023",
output: output:
industrial_production_per_country=resources( industrial_production_per_country=resources(
"industrial_production_per_country.csv" "industrial_production_per_country.csv"
@ -951,7 +951,7 @@ rule prepare_sector_network:
else [] else []
), ),
network=resources("networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"), network=resources("networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"),
eurostat="data/eurostat/eurostat-energy_balances-april_2023_edition", eurostat="data/eurostat/Balances-April2023",
pop_weighted_energy_totals=resources( pop_weighted_energy_totals=resources(
"pop_weighted_energy_totals_s{simpl}_{clusters}.csv" "pop_weighted_energy_totals_s{simpl}_{clusters}.csv"
), ),

View File

@ -230,7 +230,7 @@ rule plot_summary:
costs=RESULTS + "csvs/costs.csv", costs=RESULTS + "csvs/costs.csv",
energy=RESULTS + "csvs/energy.csv", energy=RESULTS + "csvs/energy.csv",
balances=RESULTS + "csvs/supply_energy.csv", balances=RESULTS + "csvs/supply_energy.csv",
eurostat="data/eurostat/eurostat-energy_balances-april_2023_edition", eurostat="data/eurostat/Balances-April2023",
co2="data/bundle/eea/UNFCCC_v23.csv", co2="data/bundle/eea/UNFCCC_v23.csv",
output: output:
costs=RESULTS + "graphs/costs.pdf", costs=RESULTS + "graphs/costs.pdf",

View File

@ -47,7 +47,7 @@ if config["enable"]["retrieve"] and config["enable"].get("retrieve_databundle",
rule retrieve_eurostat_data: rule retrieve_eurostat_data:
output: output:
directory("data/eurostat/eurostat-energy_balances-april_2023_edition"), directory("data/eurostat/Balances-April2023"),
log: log:
"logs/retrieve_eurostat_data.log", "logs/retrieve_eurostat_data.log",
retries: 2 retries: 2

View File

@ -27,10 +27,10 @@ if __name__ == "__main__":
set_scenario_config(snakemake) set_scenario_config(snakemake)
disable_progress = snakemake.config["run"].get("disable_progressbar", False) disable_progress = snakemake.config["run"].get("disable_progressbar", False)
url_eurostat = "https://ec.europa.eu/eurostat/documents/38154/4956218/Balances-December2022.zip/f7cf0d19-5c0f-60ad-4e48-098a5ddd6e48?t=1671184070589" url_eurostat = "https://ec.europa.eu/eurostat/documents/38154/4956218/Balances-April2023.zip"
tarball_fn = Path(f"{rootpath}/data/eurostat/eurostat_2023.zip") tarball_fn = Path(f"{rootpath}/data/eurostat/eurostat_2023.zip")
to_fn = Path( to_fn = Path(
f"{rootpath}/data/eurostat/eurostat-energy_balances-april_2023_edition/" f"{rootpath}/data/eurostat/Balances-April2023/"
) )
logger.info(f"Downloading Eurostat data from '{url_eurostat}'.") logger.info(f"Downloading Eurostat data from '{url_eurostat}'.")