Flatten

Workspace.Flatten(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfTime | pyarts.arts.ArrayOfVector | pyarts.arts.Matrix | pyarts.arts.Tensor3 | pyarts.arts.Tensor4 | pyarts.arts.Tensor5 | pyarts.arts.Tensor6 | pyarts.arts.Tensor7, input: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfTime | pyarts.arts.ArrayOfArrayOfVector | pyarts.arts.ArrayOfMatrix | pyarts.arts.ArrayOfTensor3 | pyarts.arts.ArrayOfTensor4 | pyarts.arts.ArrayOfTensor5 | pyarts.arts.ArrayOfTensor6 | pyarts.arts.ArrayOfVector | object, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Flattens an ArrayOfArray<T> to Array<T> or an Array of matpack-types to a larger dimension matpack (if dimensions agree)

The intended transformation for arrays is (sub-arrays can have different sizes):

{{a, b, c}, {d, e}} -> {a, b, c, d, e}

The intended transformation for arrays to matpack types is (sub-types must have same size):

{{a, b, c}, {d, e, f}} -> {a, b, c, d, e, f}

Author(s): Richard Larsson

Parameters: