unit_normalized#

named_arrays.unit_normalized(a, unit_dimensionless=Unit(dimensionless), squeeze=True)#

Isolate the physical units associated with a given object, normalizing to the given dimensionless units if the object does not have associated units.

Parameters:
Return type:

UnitBase | AbstractArray

See also

unit()

version of this function that by default returns None instead of astropy.units.dimensionless_unscaled if there is no unit associated with the given object.