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

Evaluates farm results data.

This sums over turbines and/or states, given the state-turbine farm_calc results.

Attributes

results: xarray.Dataset

The farm results

Public members

FarmResultsEval(farm_results)[source]

Constructor.

weinsum(rhs, *vars)[source]

Calculates Einstein sum, adding weights as last argument to the given fields.

reduce_states(vars_op)[source]

Reduces the states dimension by some operation

reduce_turbines(vars_op)[source]

Reduces the turbine dimension by some operation

reduce_all(states_op, turbines_op)[source]

Reduces states and turbine dimension by some operation

calc_states_mean(vars, use_weights=True)[source]

Calculates the mean wrt states.

calc_states_sum(vars)[source]

Calculates the sum wrt states.

calc_states_std(vars)[source]

Calculates the standard deviation wrt states.

calc_turbine_mean(vars)[source]

Calculates the mean wrt turbines.

calc_turbine_sum(vars)[source]

Calculates the sum wrt turbines.

calc_farm_mean(vars)[source]

Calculates the mean over states and turbines.

calc_farm_sum(vars)[source]

Calculates the sum over states and turbines.

calc_mean_farm_power(ambient=False)[source]

Calculates the mean total farm power.

calc_turbine_yield(algo=None, annual=False, ambient=False, ...)[source]

Calculates the yield per turbine

add_capacity(algo=None, P_nom=None, ambient=False, verbosity=1)[source]

Adds capacity to the farm results

calc_farm_yield(turbine_yield=None, power_uncert=None, **kwargs)[source]

Calculates yield, P75 and P90 at the farm level

add_efficiency(verbosity=1)[source]

Adds efficiency to the farm results

calc_farm_efficiency()[source]

Calculates farm efficiency

gen_stdata(turbines, variable, fig=None, ax=None, figsize=None, ...)[source]

Generates state-turbine data, intended to be used in animations

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.