spectrochempy.Quantity.to¶
- Quantity.to(other=None, *contexts, **ctx_kwargs)[source]¶
Return PlainQuantity rescaled to different units.
- Parameters
other (pint.PlainQuantity, str or dict) – destination units. (Default value = None)
*contexts (str or pint.Context) – Contexts to use in the transformation.
**ctx_kwargs – Values for the Context/s
- Returns
pint.PlainQuantity