pvpumpingsystem.sizing.shrink_weather_representative¶
-
pvpumpingsystem.sizing.
shrink_weather_representative
(weather_data, nb_elt=48)¶ Create a new weather_data object representing the range of weather that can be found in the weather_data given. It allows to reduce the number of lines in the weather file from 8760 (if full year and hourly data) to ‘nb_elt’ lines, and eventually to greatly reduce the computation time.
Parameters: - weather_data (pandas.DataFrame) – The hourly data on irradiance, temperature, and others meteorological parameters. Typically comes from pvlib.epw.read_epw() or pvlib.tmy.read.tmy().
- nb_elt (integer, default 48) – Number of line to keep in the weather_data file.
Returns: Weather data with (nb_elt) lines
Return type: pandas.DataFrame