-
foxes.input.farm_layout.add_from_csv(farm, data_source, col_index=
None
, col_name=None
, col_x='x'
, col_y='y'
, col_H=None
, col_D=None
, col_id=None
, cols_models_pre=None
, col_turbine_type=None
, cols_models_post=None
, turbine_base_name='T'
, turbine_ids=None
, turbine_base_name_count_shift=False
, verbosity=1
, **turbine_parameters)[source] Add turbines to wind farm via csv input file.
ParametersΒΆ
- farm: foxes.WindFarm
The wind farm
- data_source: str or pandas.DataFrame
The input csv file or data source
- col_index: str, optional
The index column, or None
- col_name: str, optional
The name column, or None
- col_x: str, optional
The x column
- col_y: str, optional
The y column
- col_H: str, optional
The hub height column
- col_D: str, optional
The rotor diameter column
- col_id: str, optional
The id column
- cols_models_pre: list of str, optional
The turbine model columns, entered before turbine_models
- col_turbine_type: str, optional
The turbine type name
- cols_models_post: list of str, optional
The turbine model columns, entered after turbine_models
- turbine_base_name: str, optional
The turbine base name, only used if col_name is None
- turbine_ids: list, optional
The turbine ids, or None for index
- turbine_base_name_count_shift: bool, optional
Start turbine names by 1 instead of 0
- verbosity: int
The verbosity level, 0 = silent
- turbine_parameters: dict, optional
Additional parameters are forwarded to the WindFarm.add_turbine().