foxes.output.SliceData.get_mean_data_yz(resolution=None, n_img_points=None, variables=None, data_format='xarray', x_direction=270, ymin=None, zmin=0.0, ymax=None, zmax=None, x=None, yspace=500.0, zspace=500.0, normalize_x=None, normalize_y=None, normalize_z=None, normalize_v={}, label_map={}, vmin={}, vmax={}, states_sel=None, states_isel=None, weight_turbine=0, to_file=None, write_pars={}, ret_states=False, ret_grid=False, verbosity=0, **kwargs)[source]

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

Parameters

resolution: float, optional

The resolution in m

n_img_points: tuple of int, optional

The number of image points (n, m) in the two directions

variables: list of str, optional

The variables, or None for all

data_format: str

The output data format: numpy, pandas, xarray

x_direction: float, optional

The direction of the x axis, 0 = north

ymin: float, optional

The min y coordinate, or None for automatic

zmin: float, optional

The min z coordinate

ymax: float, optional

The max y coordinate, or None for automatic

zmax: float, optional

The max z coordinate, or None for automatic

x: float, optional

The x coordinate of the plane

yspace: float, optional

The extra space in y direction, before and after wind farm

zspace: float, optional

The extra space in z direction, below and above wind farm

normalize_x: float, optional

Divide x by this value

normalize_y: float, optional

Divide y by this value

normalize_z: float, optional

Divide z by this value

normalize_v: dict, optional

Divide the variables by these values

label_map: dict

The mapping from original to new field names

vmin: dict

Minimal values for variables

vmax: dict

Maximal values for variables

states_sel: list, optional

Reduce to selected states

states_isel: list, optional

Reduce to the selected states indices

weight_turbine: int, optional

Index of the turbine from which to take the weight

to_file: str, optional

Write data to this file name

write_pars: dict

Additional write function parameters

ret_states: bool

Flag for returning states indices

ret_grid: bool

Flag for returning grid data

verbosity: int, optional

The verbosity level, 0 = silent

kwargs: dict, optional

Parameters forwarded to the algorithm’s calc_points function.

Returns

data: dict or pandas.DataFrame or xarray.Dataset

The gridded data

states: numpy.ndarray, optional

The states indices

grid_data: tuple, optional

The grid data (x_pos, y_pos, z_pos, g_pts)