build_load_data: fix UA and MD time series for subset of year

This commit is contained in:
Fabian 2022-03-17 18:36:46 +01:00
parent b30c559537
commit eda9212dfd

View File

@ -212,7 +212,9 @@ if __name__ == "__main__":
# attach load of UA (best data only for entsoe transparency) # attach load of UA (best data only for entsoe transparency)
load_ua = load_timeseries(snakemake.input[0], '2018', ['UA'], False) load_ua = load_timeseries(snakemake.input[0], '2018', ['UA'], False)
load_ua.index = snapshots # hack indices (currently, UA is manually set to 2018) snapshot_year = str(snapshots.year.unique().item())
time_diff = pd.Timestamp('2018') - pd.Timestamp(snapshot_year)
load_ua.index -= time_diff # hack indices (currently, UA is manually set to 2018)
load['UA'] = load_ua load['UA'] = load_ua
# attach load of MD (no time-series available, use 2020-totals and distribute according to UA): # attach load of MD (no time-series available, use 2020-totals and distribute according to UA):
# https://www.iea.org/data-and-statistics/data-browser/?country=MOLDOVA&fuel=Energy%20consumption&indicator=TotElecCons # https://www.iea.org/data-and-statistics/data-browser/?country=MOLDOVA&fuel=Energy%20consumption&indicator=TotElecCons