-
foxes.output.SliceData.get_states_data_xz(resolution=
None, n_img_points=None, variables=None, data_format='xarray', x_direction=270, xmin=None, zmin=0.0, xmax=None, zmax=None, y=None, xspace=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, to_file=None, write_pars={}, ret_states=False, ret_grid=False, verbosity=0, **kwargs)[source] Creates states data of 2D farm flow slices in an xz-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
- xmin: float, optional
The min x coordinate, or None for automatic
- zmin: float, optional
The min z coordinate
- xmax: float, optional
The max x coordinate, or None for automatic
- zmax: float, optional
The max z coordinate, or None for automatic
- y: float, optional
The y coordinate of the plane
- xspace: float, optional
The extra space in x 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
- 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)