- qunits. Quantity.magnitude_as ( unit )[source]
Get the magnitude of the quantity in the specified unit.
- Parameters:
-
- unitUnit | None
The target unit as a
Unitinstance (e.g.,u.m), orNoneto convert to SI base units.
- Returns:
-
- magnitudefloat | numpy.ndarray[tuple[Any, ...], numpy.dtype[numpy.float64]]
The magnitude of the quantity in the specified unit.