get_axis_number_from_axis_name¶
-
ndcube.utils.cube.
get_axis_number_from_axis_name
(axis_name, world_axis_physical_types)[source] [edit on github]¶ Returns axis number (numpy ordering) given a substring unique to a world axis type string.
Parameters: - axis_name (
str
) – Name or substring of name of axis as defined by NDCube.world_axis_physical_types - world_axis_physical_types (iterable of
str
) – Output from NDCube.world_axis_physical_types for relevant cube, i.e. iterable of string axis names.
Returns: axis_index[0] (
int
) – Axis number (numpy ordering) corresponding to axis name- axis_name (