concatenate#
- metpy.units.concatenate(arrs, axis=0)[source]#
Concatenate multiple values into a new quantity.
This is essentially a scalar-/masked array-aware version of
numpy.concatenate
. All items must be able to be converted to the same units. If an item has no units, it will be given those of the rest of the collection, without conversion. The first units found in the arguments is used as the final output units.- Parameters:
arrs (Sequence[pint.Quantity or numpy.ndarray]) – The items to be joined together
axis (int, optional) – The array axis along which to join the arrays. Defaults to 0 (the first dimension)
- Returns:
pint.Quantity
– New container with the value passed in and units corresponding to the first item.