Create a ScalarQuantity or ArrayQuantity object for a given physical quantity. The physical quantity can be specified in several ways:

  • A scalar-like or array-like value (for a dimensionless quantity)
  • An array of arguments (including keyword arguments) giving some or all of the value, units, uncertainty, and/or uncertaintyType.
  • A tuple of the form (value,), (value,units), (value,units,uncertainty), or (value,units,uncertaintyType,uncertainty)
  • An existing ScalarQuantity or ArrayQuantity object, for which a copy is made