get_dependent_world_axes#

ndcube.utils.wcs.get_dependent_world_axes(world_axis, axis_correlation_matrix)[source]#

Given a WCS world axis index, return indices of dependent WCS world axes.

Both input and output axis indices are in the WCS ordering convention (reverse of numpy ordering convention). The returned axis indices include the input axis.

Parameters:
Returns:

dependent_world_axes – Sorted indices of pixel axes dependent on input axis in WCS ordering convention.

Return type:

numpy.ndarray of int