concatenate

metpy.units.concatenate(arrs, axis=0)[source]

Concatenate multiple values into a new unitized object.

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 of arrays) – The items to be joined together

  • axis (integer, 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.