utils (ndcube.utils
)¶
ndcube.utils.collection Module¶
Functions¶
Checks whether two sets of aligned axes are compatible. |
ndcube.utils.cube Module¶
Functions¶
|
A wrapper for NDCube methods to sanitise the wcs argument. |
|
Sanitize inputs to NDCube crop methods. |
|
Find slice item that crops to minimum cube in array-space containing specified world points. |
|
Default algorithm for uncertainty propagation in |
ndcube.utils.misc Module¶
Functions¶
|
Return unique values in the order they are first encountered in the iterable. |
|
Converts a sequence of Quantities to units used in the WCS. |
ndcube.utils.sequence Module¶
Utilities for ndcube sequence.
Functions¶
Converts a cube-like index for an NDCubeSequence to a sequence index and a common axis index. |
|
|
Convert a tuple for slicing an NDCubeSequence in the cube-like API to a list of SequenceItems. |
Classes¶
|
Define SequenceItem named tuple of length 2. |
Class Inheritance Diagram¶
ndcube.utils.wcs_high_level_conversion Module¶
This module provides helpers introduced in https://github.com/astropy/astropy/pull/11950.
ndcube.utils.wcs Module¶
Miscellaneous WCS utilities.
Functions¶
|
Calculate the array indices corresponding to each high level world object. |
|
Reflects axis index about center of number of axes. |
|
Given a string representation of a world axis or a numerical array index, convert it to a numerical world index aligning to the position in wcs.world_axis_object_components. |
|
Retrieves the indices of the world axis physical types corresponding to a pixel axis. |
|
Gets the pixel axis indices corresponding to the index of a world axis. |
|
Gets the world axis physical types corresponding to a pixel axis. |
|
Gets the pixel axis indices corresponding to a world axis physical type. |
|
Returns world axis index of a physical type based on WCS world_axis_physical_types. |
|
Find indices of all pixel axes associated with the world axes linked to the input pixel axis. |
|
Find indices of all array axes associated with the world axes linked to the input array axis. |
|
Given a WCS world axis index, return indices of dependent WCS world axes. |
|
Given a world axis physical type, return the dependent physical types including the input type. |
|
Calculate the array indices corresponding to each high level world object. |
|
Validate a list of physical types against the UCD1+ standard |