gempy.core.grid_modules.grid_types.CenteredGrid¶
-
class
gempy.core.grid_modules.grid_types.
CenteredGrid
(centers=None, radius=None, resolution=None)[source]¶ Logarithmic spaced grid.
Examples using CenteredGrid
Methods
__init__
([centers, radius, resolution])Initialize self.
create_irregular_grid_kernel
(resolution, radius)Create an isometric grid kernel (centered at 0)
set_centered_grid
(centers[, kernel_centers])Main method of the class, set the XYZ values around centers using a kernel.
set_centered_kernel
(resolution, radius)Set a centered
set_tz_kernel
(**kwargs)-
__init__
(centers=None, radius=None, resolution=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
static
create_irregular_grid_kernel
(resolution, radius)[source]¶ Create an isometric grid kernel (centered at 0)
-
set_centered_kernel
(resolution, radius)[source]¶ Set a centered
- Parameters
resolution – [s0] (numpy.ndarray[int]): [nx, ny, nz
radius (float) – Maximum distance of the kernel
Returns:
-
set_centered_grid
(centers, kernel_centers=None, **kwargs)[source]¶ Main method of the class, set the XYZ values around centers using a kernel.
- Parameters
centers (np.array) – XYZ array with the centers of where we want to create a grid around
kernel_centers (Optional[np.array]) – center of the voxels of a desired kernel.
**kwargs –
resolution: [s0] (numpy.ndarray[int]): [nx, ny, nz
radius (float): Maximum distance of the kernel
Returns:
-