foxes.output.state_turbine_map.StateTurbineMap¶
- class foxes.output.state_turbine_map.StateTurbineMap[source]¶
Bases:
Output
Creates heat maps with turbines on the one and states on the other axis.
- Parameters:
farm_results (xarray.Dataset) – The farm results
- results¶
The farm results
- Type:
xarray.Dataset
Methods
__init__
(farm_results)new
(model_type, **kwargs)Run-time output model factory.
plot_map
(variable[, title, ax, figsize])Plot the heat map for the selected variable.
Prints all model names.
write
(file_path, data[, format_col2var, ...])Writes data to file via pandas.
- classmethod new(model_type, **kwargs)¶
Run-time output model factory.
- Parameters:
model_type (string) – The selected derived class name
- plot_map(variable, title=None, ax=None, figsize=None, **kwargs)[source]¶
Plot the heat map for the selected variable.
- Parameters:
- Returns:
ax – The plot axis
- Return type:
pyplot.Axis
- classmethod print_models()¶
Prints all model names.
- classmethod write(file_path, data, format_col2var={}, format_dict={}, **kwargs)¶
Writes data to file via pandas.
The kwargs are forwarded to the underlying pandas writing function.
- Parameters: