xdas.parallel.concatenate#
- xdas.parallel.concatenate(arrays, axis=0, out=None, dtype=None, n_workers=None)[source]#
Multithreaded version of numpy.concatenate.
Join a sequence of arrays along an existing axis.
- Parameters:
arrays (sequence of array_like) – The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default).
axis (int, optional) – The axis along which the arrays will be joined. Default is 0.
out (ndarray, optional) – If provided, the destination to place the result. The shape must be correct, matching that of what concatenate would have returned if no out argument were specified.
dtype (str or numpy.dtype) – If provided, the destination array will have this dtype. Cannot be provided together with out.
n_workers (int or None, optional) – Number of threads to use for writing chunks. None defers to the global xdas configuration. Default is None.
- Returns:
The concatenated array.
- Return type:
ndarray