- foxes.input.farm_layout.add_from_wrf(farm, directory, mbook, txt_file='windturbines.txt', tbl_name_fun=<function <lambda>>, 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
- tbl_name_fun: function
A function that takes an integer index and returns the corresponding tbl file name
- 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 >>> ...