1pu(1) General Commands Manual pu(1)
2
3
4
6 physicalunits - encodes and de-codes physical units a according to
7 ISO/IEEE 11073-10101:2004 Tables A6.1 and A6.3
8 physicalunits was formerly also known under "pu".
9
10
12 physicalunits [units_or_codes]
13
14
16 The output returns the <physical unit>:<TAB><decimal code><TAB><hexa‐
17 decimal code><TAB><scaling><TAB><physical unit w/o prefix>, where <TAB>
18 represents the character ascii(9)
19
20
22 Encoding of "microVolts", using text representation, decimal encoding
23 and hexadecimal encoding:
24 physicalunits mV
25 uV 4275 0x10b3 1e-06 V
26
27 physicalunits 4275
28 uV 4275 0x10b3 1e-06 V
29
30 physicalunits 0x10b3
31 uV 4275 0x10b3 1e-06 V
32
33 Text representation containing spaces need to be quoted
34 physicalunits "kg l-1"
35 kg l-1 2051 0x0803 1000 g l-1
36
37 A list of units can be converted using multiple input arguments
38 physicalunits mV nA 4180 kg dag degree rpm "mol mol-1" "kg l-1"
39 mV 4274 0x10b2 0.001 V
40 nA 4180 0x1054 1e-09 A
41 nA 4180 0x1054 1e-09 A
42 kg 1731 0x06c3 1000 g
43 dag 1729 0x06c1 10 g
44 degree 736 0x02e0 1 degree
45 rpm 6816 0x1aa0 1 rpm
46 mol mol-1 864 0x0360 1 mol mol-1
47 kg l-1 2051 0x0803 1000 g l-1
48
49 physicalunits `seq 0 65535` |grep -v nan |grep -v null
50 shows s complete table of defined units
51
52
54 Alois Schloegl
55
56
58 Report bugs to <biosig-general@lists.sourceforge.net>
59
60
62 Copyright (C) 2008-2019 Alois Schloegl License GPLv3+: GNU GPL version
63 3 or later <http://gnu.org/licenses/gpl.html> This is free software:
64 you are free to change and redistribute it. There is NO WARRANTY, to
65 the extent permitted by law.
66
67
69 https://biosig.sourceforge.io
70
71
72
73
74 pu(1)