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:
output (ArrayOfTime or ArrayOfVector or Matrix or Tensor3 or Tensor4 or Tensor5 or Tensor6 or Tensor7) – Flatter array/matpack-type. [OUT]
input (ArrayOfArrayOfTime or ArrayOfArrayOfVector or ArrayOfVector or ArrayOfMatrix or ArrayOfTensor3 or ArrayOfTensor4 or ArrayOfTensor5 or ArrayOfTensor6) – An array. [IN]
verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]