-
foxes.input.farm_layout.add_from_eww(farm, data_source, filter=
{}, mbook=None, csv_dir=None, rho=1.225, verbosity=1, pct_pars={}, **turbine_parameters)[source] Add turbines to wind farm via EuroWindWakes database csv input file.
Parameters¶
- farm: foxes.WindFarm
The wind farm
- data_source: str or pandas.DataFrame
The input csv file or data source
- filter: list of tuple, optional
A list of filters to apply to the dataframe, e.g. (“wind_farm”: [“Farm1”, “Farm2”]), or (“latitude”, “>=54.1”). For range filtering, use strings that start with “>=”, “<=”, “>”, “<”. For exact matches, use single values. For multiple matches, use lists, tuples or sets.
- mbook: foxes.ModelBook, optional
The model book, only needed if csv_dir is specified
- csv_dir: str, optional
The csv file directory, containing turbine type data files
- rho: float
The air density for the turbine types, if csv_dir is given
- verbosity: int
The verbosity level, 0 = silent
- pct_pars: dict
Additional parameters for the PCtFile constructor
- turbine_parameters: dict, optional
Additional parameters are forwarded to the WindFarm.add_turbine().
Examples¶
Data source format:
>>> ,wind_farm,oem_manufacturer,latitude,longitude,country,rated_power,rotor_diameter,hub_height,turbine_type,commissioning_date >>> 0,Aberdeen Offshore Wind Farm,Vestas,57.230095,-1.9742404,United Kingdom,8.4,164.0,108.5,V164-8.4 MW,2018-09 >>> 1,Aberdeen Offshore Wind Farm,Vestas,57.2235827,-2.0127432,United Kingdom,8.4,164.0,108.5,V164-8.4 MW,2018-09 >>> 2,Aberdeen Offshore Wind Farm,Vestas,57.2169301,-2.0055697,United Kingdom,8.4,164.0,108.5,V164-8.4 MW,2018-09 >>> ...