concat_new_dim#

rojak.core.indexing.concat_new_dim(targets, *, dim_name, dim_values)[source]#

Concatenate a sequence of arrays along a new dimension

Parameters:
  • targets (Sequence) – Arrays to concatenate. Must all share the same dimensions/shape.

  • dim_name (str) – Name of the new dimension to concatenate along

  • dim_values (Sequence[Any]) – Coordinate values for the new dimension, one per element of targets

Returns:

targets concatenated along a new dim_name dimension, with coordinate values dim_values

Return type:

T