RectGrid3D¶

class
acoular.grids.
RectGrid3D
¶ Bases:
acoular.grids.RectGrid
Provides a cartesian 3D grid for the beamforming results.
The grid has cubic or nearly cubic cells. It is defined by lower and upper x, y and zlimits.

z_min
= Float(1.0, …¶ The lower zlimit that defines the grid, defaults to 1.

z_max
= Float(1.0, …¶ The upper zlimit that defines the grid, defaults to 1.

nxsteps
= Property( …¶ Number of grid points along xaxis, readonly.

nysteps
= Property( …¶ Number of grid points along yaxis, readonly.

nzsteps
= Property( …¶ Number of grid points along xaxis, readonly.

increment
= Property(desc="step size")¶ The cell side length for the grid. This can either be a scalar (same increments in all 3 dimensions) or a (3,) array of floats with respective increments in x,y, and zdirection (in m). Defaults to 0.1.

index
(x, y, z)¶ Queries the indices for a grid point near a certain coordinate.
This can be used to query results or coordinates at/near a certain coordinate.
 Parameters
 x, y, zfloat
The coordinates for which the indices is queried.
 Returns
 3tuple of integers
The indices that give the grid point nearest to the given x, y, z coordinates from an array with the same shape as the grid.

indices
(x1, y1, z1, x2, y2, z2)¶ Queries the indices for a subdomain in the grid.
Allows boxshaped subdomains. This can be used to mask or to query results from a certain sector or subdomain.
 Parameters
 x1, y1, z1, x2, y2, z2float
A boxshaped sector is assumed that is given by two corners (x1,y1,z1) and (x2,y2,z2).
 Returns
 3tuple of numpy slice objects
The indices that can be used to mask/select the grid subdomain from an array with the same shape as the grid.
