pvcompare.demand.calculate_power_demand

pvcompare.demand.calculate_power_demand(country, storeys, year, column, static_inputs_directory=None, user_inputs_pvcompare_directory=None, user_inputs_mvs_directory=None)[source]

Calculates electricity demand profile for country, storeys, and year.

For the electricity demand, the BDEW load profile for households (H0) is scaled with the annual demand of a certain population. For further information regarding the assumptions made for the electricty demand profile see Electricity demand. The electricity demand profile is saved to the folder time_series in user_inputs_mvs_directory.

Parameters
  • country (str) – The country’s name has to be in English and with capital first letter.

  • storeys (int) – The number of storeys of the buildings.

  • year (int) – Year for which power demand time series is calculated. Year can be chosen between 2008 and 2018.

  • column (str) – name of the demand column

  • static_inputs_directory (str or None) – Path to pvcompare static inputs. If None, constants.DEFAULT_STATIC_INPUTS_DIRECTORY is used. Default: None.

  • user_inputs_pvcompare_directory (str or None) – Path to user input directory. If None, constants.DEFAULT_USER_INPUTS_PVCOMPARE_DIRECTORY is used. Default: None.

  • user_inputs_mvs_directory (str or None) – Path to input directory containing files that describe the energy system and that are an input to MVS. If None, constants.DEFAULT_USER_INPUTS_MVS_DIRECTORY is used. Default: None.

Returns

shifted_elec_demand – Hourly time series of the electrical demand.

Return type

pandas.DataFrame