cdms2.avariable:AbstractVariable

AbstractVariable.getOrder(ids=0)[source]

Get Order

Parameters
id0 or 1
Returns
the order string, such as t, z, y, x (time, level, lat, lon).
Notes
  • if ids == 0 (the default) for an axis that is not t,z,x,y

    the order string will contain a (-) character in that location. The result string will be of the same length as the number of axes. This makes it easy to loop over the dimensions.

  • if ids == 1 those axes will be represented in the order

    string as (id) where id is that axis’ id. The result will be suitable for passing to order2index to get the corresponding axes, and to orderparse for dividing up into components.