class foxes.output.FarmLayoutOutput(foxes.output.Output)[source]

Plot the farm layout

Attributes

farm: foxes.WindFarm

The wind farm

fres: xarray.Dataset

The wind farm calculation results

from_res: bool

Flag for coordinates from results data

results_state: int

The state index, for from_res

D: float

The rotor diameter, if not from data

Public members

FarmLayoutOutput(farm, farm_results=None, from_results=False, ...)[source]

Constructor.

get_layout_data()[source]

Returns wind farm layout.

get_layout_dict()[source]

Returns wind farm layout.

get_figure(color_by=None, fontsize=8, figsize=None, annotate=1, ...)[source]

Creates farm layout figure.

write_plot(file_name=None, fontsize=8, **kwargs)[source]

Writes the layout plot to file.

write_xyh(file_path=None)[source]

Writes xyh layout file.

write_csv(file_name=None, type_col=None, algo=None)[source]

Writes csv layout file.

write_json(file_name=None)[source]

Writes xyh layout file.

get_fpath(fname)[source]

Gets the total file path

write(file_name, data, format_col2var={}, format_dict={}, **kwargs)[source]

Writes data to file via pandas.

classmethod print_models()[source]

Prints all model names.

classmethod new(output_type, *args, **kwargs)[source]

Run-time output model factory.