grids.mixins.core.GridUtilsMixin.compute_domain_edges#

GridUtilsMixin.compute_domain_edges(axes: AxesInput | None = None, origin: Literal['active', 'global'] = 'active', __validate__: bool = True)[source]#

Return coordinate edge arrays along each axis.

If the grid is vertex-centered, returns coordinate arrays directly. If the grid is cell-centered, computes edges from centers and bounding box.

Parameters:
  • axes (str or list of str, optional) – Axes to include. Defaults to all.

  • origin ({"active", "global"}, default "active") – Whether to include ghost zones.

  • __validate__ (bool, default True) – Whether to validate axis inputs.

Returns:

Coordinate edge arrays per axis.

Return type:

list of np.ndarray