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

Create data for horizontal or vertical 2D slices

Attributes

algo: foxes.Algorithm

The algorithm for point calculation

farm_results: xarray.Dataset

The farm results

runner: foxes.utils.runners.Runner, optional

The runner

Public members

SliceData(algo, farm_results, runner=None, **kwargs)[source]

Constructor.

get_mean_data_xy(resolution, variables=None, ...)[source]

Creates mean data of 2D farm flow slices in a horizontal xy-plane.

get_mean_data_xz(resolution, variables=None, ...)[source]

Creates mean data of 2D farm flow slices in an xz-plane.

get_mean_data_yz(resolution, variables=None, ...)[source]

Creates mean data of 2D farm flow slices in a yz-plane.

get_states_data_xy(resolution, variables=None, ...)[source]

Creates states data of 2D farm flow slices in a horizontal xy-plane.

get_states_data_xz(resolution, variables=None, ...)[source]

Creates states data of 2D farm flow slices in an xz-plane.

get_states_data_yz(resolution, variables=None, ...)[source]

Creates states data of 2D farm flow slices in a yz-plane.

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(model_type, *args, **kwargs)[source]

Run-time output model factory.