transpose

function of dascore.proc.coords source

transpose(
    self: Patch ,
    *dims: str ,
)-> ‘PatchType’

Transpose the data array to any dimension order desired.

Parameters

Parameter Description
*dims Dimension names which define the new data axis order.

Examples

import dascore # import dascore library
pa = dascore.get_example_patch() # generate example patch
# transpose the time and data array dimensions in the example patch
out = dascore.proc.transpose(pa,"time", "distance")