reindex_wcs¶
-
ndcube.utils.wcs.
reindex_wcs
(wcs, inds)[source] [edit on github]¶ Re-index a WCS given indices. The number of axes may be reduced.
Parameters: - wcs (sunpy.wcs.wcs.WCS) – The WCS to be manipulated
- inds (np.array(dtype='int')) – The indices of the array to keep in the output. e.g. swapaxes: [0,2,1,3] dropaxes: [0,1,3]