get_physical_type

astropy.units.get_physical_type(unit)[source]

Given a unit, returns the name of the physical quantity it represents. If it represents an unknown physical quantity, "unknown" is returned.

Parameters
unitUnitBase instance

The unit to lookup

Returns
physicalstr

The name of the physical quantity, or unknown if not known.