waves.utilities.floris_runners#
Provides the FLORIS-based methods for pre-processing data and post-processing results.
Functions
Calculate the turbine AEP contribution for each month of a year, in MWh. |
|
|
Checks the monthly wind rose parameterizations to ensure the DataFrames are the correct shape, so that when the frequency column is extracted, the compared data is the same. |
|
Create a dictionary of month and a long-term |
|
Creates the FLORIS |
- waves.utilities.floris_runners.create_single_month_wind_rose(weather_df, month)[source]#
Creates the FLORIS
WindRoseobject for a givenmonthbased on theweather_df'sDatetimeIndex.- Return type:
tuple[int,WindRose]- Parameters:
weather_df (pd.DataFrame) -- The weather profile used to create long-term, month-based
WindRoseobjectsmonth (int) -- The month of the year to create a
WindRoseobject.
- Returns:
WindRose -- Month-specific
WindRoseobject.
- waves.utilities.floris_runners.create_monthly_wind_rose(weather_df)[source]#
Create a dictionary of month and a long-term
WindRoseobject based on all the wind condition data for that month.- Return type:
dict[int,WindRose]- Parameters:
weather_df (pd.DataFrame) -- The weather profile used to create long-term, month-based
WindRoseobjects- Returns:
dict[int, WindRose] -- A dictionary of the integer month and the long-term
WindRoseobject associated with all the wind conditions during that month.
- waves.utilities.floris_runners.check_monthly_wind_rose(project_wind_rose, monthly_wind_rose)[source]#
Checks the monthly wind rose parameterizations to ensure the DataFrames are the correct shape, so that when the frequency column is extracted, the compared data is the same.
- Return type:
dict[int,WindRose]- Parameters:
project_wind_rose (WindRose) -- The
WindRosecreated using the long term reanalysis weather profile.monthly_wind_rose (dict[int, WindRose]) -- A dictionary of the month as an
intandWindRosecreated from the long term project reanalysis weather profile that was filtered on weather data for the focal month.
- Returns:
dict[int, WindRose] -- The
monthly_wind_rosebut with an missing wind conditions added into theWindRosewith 0 frequency.
- waves.utilities.floris_runners.calculate_monthly_wind_rose_results(turbine_power, wind_rose_monthly)[source]#
Calculate the turbine AEP contribution for each month of a year, in MWh.
- Return type:
DataFrame- Parameters:
turbine_power (np.ndarray) -- The array of turbine powers, with shape (num wd x num ws x num turbines), calculated from the possible wind conditions at the site given the turbine layout.
wind_rose_monthly (dict[int, WindRose]) -- The dictionary of integer months (i.e., 1 for January) and array of frequences, with
WindRoseobjects created by the long term wind conditions filtered on the month.
- Returns:
pd.DataFrame, pd.DataFrame -- A DataFrame of each month's contribution to the AEP for each turbine in the wind farm, with shape (12 x num turbines).