cdms2.avariable

order2index(axes, order)[source]

Find the index permutation of axes to match order. The argument order is a string.

Note:

Order elements can be:
  • Letters t, x, y, z meaning time, longitude, latitude, level.

  • Numbers 0-9 representing position in axes

  • The letter - meaning insert the next available axis here.

  • The ellipsis … meaning fill these positions with any remaining axes.

  • (name) meaning an axis whose id is name.