coordinates.mixins.core.CoordinateSystemAxesMixin.in_axes_order#

static CoordinateSystemAxesMixin.in_axes_order(iterable: Sequence[Any], src_axes: Sequence[str], dst_axes: Sequence[str]) List[Any][source]#

Reorder a sequence of values from src_axes order to dst_axes order.

Parameters:
  • iterable (list) – Items corresponding to axes in src_axes order.

  • src_axes (list of str) – Axis names corresponding to the order of iterable.

  • dst_axes (list of str) – Desired axis ordering to match.

Returns:

Reordered iterable in the dst_axes order.

Return type:

list

Raises:

ValueError – If the lengths don’t match or any axes are unknown.