ndcube.utils.cube.select_order(axtypes)[source] [edit on github]

Returns indices of the correct data order axis priority given a list of WCS CTYPEs.

For example, given [‘HPLN-TAN’, ‘TIME’, ‘WAVE’] it will return [1, 2, 0] because index 1 (time) has the lowest priority, followed by wavelength and finally solar-x.


axtypes (str list) – The list of CTYPEs to be modified.