- foxes.input.farm_layout.add_from_wrf(farm, directory, mbook, txt_file='windturbines.txt', tbl_name_fun=<function <lambda>>, csv_file=None, csv_col_windfarm='wind_farm', csv_col_cluster=None, rho=1.225, verbosity=1, **turbine_parameters)[source]
Add turbines to wind farm from a folder with tbl files and a txt file containing lat, lon, tbl_index
Parameters¶
- farm: foxes.WindFarm
The wind farm
- directory: str
The directory containing the tbl files and the txt file
- mbook: foxes.ModelBook, optional
The model book, only needed if tbl_dir is specified
- txt_file: str
The txt file name
- csv_file: str, optional
An optional csv file containing additional turbine parameters.
- csv_col_windfarm: str, optional
The column name in the CSV file for the wind farm identifier
- csv_col_cluster: str, optional
The column name in the CSV file for the cluster identifier
- rho: float
The air density for the turbine types, if tbl_dir is given
- verbosity: int
The verbosity level, 0 = silent
- turbine_parameters: dict, optional
Additional parameters are forwarded to the WindFarm.add_turbine().
Examples¶
TXT file format: lon, lat, tbl_index
>>> 57.230095 -1.974240 1 >>> 57.223583 -2.012743 1 >>> 57.228312 -2.002316 1 >>> 57.233467 -1.989579 2 >>> ...