Reflects axis index about center of number of axes.
This is used to convert between array axes in numpy order and pixel axes in WCS order.
Works in both directions.
- Parameters:
-
- Returns:
reflected_axis (numpy.ndarray
of int
) – The axis number(s) after reflection.