GridChunkingMixin#
- class grids.mixins.chunking.GridChunkingMixin[source]#
Mixin class supporting chunking in subclasses of
grids.base.GridBase
.Methods
__init__
()compute_chunk_centers
(chunks[, axes, ...])Return coordinate center arrays for a specific chunk along the selected axes.
compute_chunk_coords
(chunks[, axes, ...])Compute physical coordinate arrays for a selected chunk region.
compute_chunk_edges
(chunks[, axes, ...])Return coordinate edge arrays for a specific chunk along the selected axes.
compute_chunk_mesh
(chunks[, axes, ...])Compute a meshgrid of physical coordinates over a selected chunk region.
compute_chunk_slice
(chunks[, axes, ...])Compute a global index-space slice corresponding to one or more chunks along selected axes, with optional ghost zones and halo padding.
construct_chunk_interpolator
(field, ...[, ...])Construct an interpolator for a specific chunk using SciPy's RegularGridInterpolator.
empty_like_chunks
(chunks, /[, ...])Return an uninitialized array shaped to match a domain-aligned region of the grid.
full_like_chunks
(chunks, fill_value, /[, ...])Return a constant-valued array shaped to match a domain-aligned region of the grid.
get_chunk_bbox
(chunks[, axes, ...])Return the physical bounding box (lower, upper) of a given chunk.
get_chunk_shape
(chunks[, axes, ...])Compute the shape of the buffer corresponding to a given chunk, including optional ghost zones and halo padding.
iter_chunk_coords
([axes, include_ghosts, ...])Efficiently iterate over physical coordinates for each chunk in the grid.
iter_chunk_indices
([axes, pbar, pbar_kwargs])Iterate over chunk indices for the grid along specified axes.
iter_chunk_slices
([axes, include_ghosts, ...])Efficiently iterate over chunk-wise slices in global index space.
ones_like_chunks
(chunks, /[, element_shape, ...])Return an array of ones shaped to match a domain-aligned region of the grid.
zeros_like_chunks
(chunks, /[, ...])Return an array of zeros shaped to match a domain-aligned region of the grid.