world_axis_to_pixel_axes¶
-
ndcube.utils.wcs.
world_axis_to_pixel_axes
(world_axis, axis_correlation_matrix)[source]¶ Gets the pixel axis indices corresponding to the index of a world axis physical type.
- Parameters
world_axis (
int
) – The index of the physical type for which the pixes axes are desired.axis_correlation_matrix (
numpy.ndarray
ofbool
) – 2D boolean correlation matrix defining the dependence between the pixel and world axes. Format same asastropy.wcs.BaseLowLevelWCS.axis_correlation_matrix
.
- Returns
pixel_axes – The pixel axis indices corresponding to the world axis.
- Return type