physicalunits - Man Page

Name

physicalunits — encodes and de-codes physical units a according to ISO/IEEE 11073-10101:2004 Tables A6.1 and A6.3
 physicalunits was formerly also known under "pu".

Synopsis

 physicalunits [units_or_codes]

Description

The output returns the <physical unit>:<TAB><decimal code><TAB><hexadecimal code><TAB><scaling><TAB><physical unit w/o prefix>, where <TAB> represents the character ascii(9)

Examples

 Encoding of "microVolts", using text representation, decimal encoding and hexadecimal encoding:
 physicalunits mV
       uV 4275 0x10b3 1e-06 V

 physicalunits 4275
       uV 4275 0x10b3 1e-06 V

 physicalunits 0x10b3
       uV 4275 0x10b3 1e-06 V

 Text representation containing spaces need to be quoted
 physicalunits "kg l-1"
       kg l-1 2051 0x0803 1000 g l-1

 A list of units can be converted using multiple input arguments
 physicalunits mV nA 4180 kg dag degree rpm "mol mol-1" "kg l-1"

       mV42740x10b20.001V
       nA41800x10541e-09A
       nA41800x10541e-09A
       kg17310x06c31000g
       dag17290x06c110g
       degree7360x02e01degree
       rpm68160x1aa01rpm
       mol mol-18640x03601mol mol-1
       kg l-120510x08031000g l-1

  physicalunits `seq 0 65535` |grep -v nan |grep -v null
       shows s complete table of defined units

Author

Alois Schloegl

Reporting Bugs

Report bugs to <biosig-general@lists.sourceforge.net>

Resources

https://biosig.sourceforge.io