physicalunits(1)
physicalunits - encodes and de-codes physical units a according to ISO/IEEE 11073-10101:2004 Tables A6and A6physicalunits was formerly also known
Description
pu
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
|
0x10b3 |
1e-06 |
V |
physicalunits 4275
|
0x10b3 |
1e-06 |
V |
physicalunits 0x10b3
|
0x10b3 |
1e-06 |
V |
Text
representation containing spaces need to be quoted
physicalunits "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"
|
0x10b2 |
0.001 |
V | ||||||
|
0x1054 |
1e-09 |
A | ||||||
|
0x1054 |
1e-09 |
A | ||||||
|
0x06c3 |
1000 |
g |
||||||
|
0x06c1 |
10 |
g |
||||||
|
736 |
0x02e0 |
1 |
degree | |||||
|
0x1aa0 |
1 |
rpm |
||||||
|
864 |
0x0360 |
1 |
mol mol-1 | |||||
|
2051 |
0x0803 |
1000 |
g 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>
COPYRIGHT
Copyright (C) 2008-2019 Alois Schloegl License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
RESOURCES
https://biosig.sourceforge.io