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, desc="minimum zvalue")¶ The lower zlimit that defines the grid, defaults to 1.

z_max
= Float(1.0, desc="maximum zvalue")¶ The upper zlimit that defines the grid, defaults to 1.

nzsteps
= Property( desc="number of grid points along xaxis")¶ Number of grid points along xaxis, readonly.

increment3D
= CArray( dtype=float, shape=(3, ), desc="3D step sizes")¶ Respective increments in x,y, and zdirection (in m), defaults to
increment
for all three (whichever of the two increment parameters is set last replaces the other).

pos
()¶ Calculates grid coordinates.
Returns: array of floats of shape (3,
size
)The grid point x, y, zcoordinates in one array.

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, z : float
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, z2 : float
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.
