pisces.geometry.grids.base.Grid.get_coordinates_slice#
- Grid.get_coordinates_slice(*slcs: slice, axes: Sequence[str] | None = None) tuple[unyt_array, ...] [source]#
Return coordinate values for a sliced region of the grid.
- Parameters:
slcs (
slice(s)
) – One slice per axis in the specified axes. The number of slices must match the number of active axes.axes (
sequence
ofstr
, optional) – The axes along which the slices apply. If not provided, all active axes are assumed.
- Returns:
Coordinate arrays (1D) for each axis in the full coordinate system. Axes not included in axes are filled with the constant fill values.
- Return type:
tuple
ofunyt_array