pvcompare.pv_feedin.create_pv_components¶
- pvcompare.pv_feedin.create_pv_components(lat, lon, weather, storeys, year, pv_setup=None, plot=True, user_inputs_pvcompare_directory=None, user_inputs_mvs_directory=None, psi_type='Chen', normalization=True)[source]¶
Creates feed-in time series for all surface types in pv_setup or ‘pv_setup.csv’.
Reads ‘pv_setup.csv’, for each surface_type listed in pv_setup, one PV time series is created with regard to the technology and its orientation. All time series are normalized with the method specified in normalization and stored as csv files in user_inputs_mvs_directory/time_series. Further the area potential of the surface_type with regard to the building parameters defined in ‘building_parameters.csv’ in input_directory is calculated and the maximum installed capacity (nominal value) is calculated. Both parameters are stored into user_inputs_mvs_directory/csv_elements/energyProduction.csv.
Further information for the cell parameter efficiency for “Chen” and “Korte” see psi_type.
- Parameters
lat (float) – Latitude of location
lon (float) – Longitude of location
weather (pandas.DataFrame) – Hourly weather data frame with the columns: time, latitude, longitude, wind_speed, temp_air, ghi, dhi, dni, precipitable_water.
storeys (int) – The number of storeys of a building.
pv_setup (dict or None) – Specifies the PV technologies and their installation details used in the simulation. The dictionary contains columns: surface_type, technology, surface_azimuth, surface_tilt. A tilt of 0 resembles a vertical orientation. If pv_setup is None, it is loaded from the input_directory/pv_setup.cvs.
plot (bool) – if true plots created pv times series
user_inputs_pvcompare_directory (str or None) – Directory of the user inputs. If None, constants.DEFAULT_USER_INPUTS_PVCOMPARE_DIRECTORY is used as user_inputs_pvcompare_directory. Default: None.
user_inputs_mvs_directory (str or None) – Directory of the multi-vector simulation inputs; where ‘csv_elements/’ is located. If None, constants.DEFAULT_USER_INPUTS_MVS_DIRECTORY is used as user_inputs_mvs_directory. Default: None.
psi_type (str) – “Korte” or “Chen”. Default: “Chen”
normalization (bool) – If True: Time series is normalized. Otherwise absolute time series is returned. Default: True.
- Returns
- Return type