grids.mixins.core.GridUtilsMixin.compute_domain_centers#
- GridUtilsMixin.compute_domain_centers(axes: AxesInput | None = None, origin: Literal['active', 'global'] = 'active', __validate__: bool = True)[source]#
Return coordinate center arrays along each axis.
If the grid is vertex-centered, computes centers from edges. If the grid is cell-centered, returns coordinate arrays directly.
- Parameters:
- Returns:
Coordinate center arrays per axis.
- Return type:
list
ofnp.ndarray