nlcpy.ma.transpose

nlcpy.ma.transpose(a, axes=None)[source]

Permutes the dimensions of an array.

This function is exactly equivalent to nlcpy.transpose().

See also

nlcpy.transpose

Equivalent function in top-level NLCPy module.

Examples

>>> import nlcpy as vp
>>> import nlcpy.ma as ma
>>> mask = [[False, False], [False, True]]
>>> x = ma.array([[0, 1], [2, 3]], mask=mask)
>>> x
masked_array(
  data=[[0, 1],
        [2, --]],
  mask=[[False, False],
        [False,  True]],
  fill_value=999999)
>>> ma.transpose(x)
masked_array(
  data=[[0, 2],
        [1, --]],
  mask=[[False, False],
        [False,  True]],
  fill_value=999999)