Units¶
Mass noun¶
e.g. knowledge is a mass noun.
RDF and Units¶
Units of measurement can be expressed with RDF, RDFS, and OWL.
QUDT defines SI Units and Imperial units with RDF and OWL.
CSVW and Units¶
See: CSVW, Tool Support for Units
Tool Support for Units¶
Spreadsheet tools:
Specify units in each column heading (e.g.
"time [[s]]","speed [[m/s]]"
)Extra column per column for units (e.g.
"time","time unit","speed","speed unit"
)CSVW: Columns have URIs, which are objects that can have subjects and predicates (for XSD types; metadata (author, date,
rdfs:label "time"@en"
), and possibly units of measure)
Unit and/or precision-aware calculations:
pypi:pint is a Python library for physical quantities which supports but does not require NumPy.
Storage formats:
Binary Prefixes¶
Text |
Symbol |
Scalar (base 10) |
Scalar (base 1000) |
Scalar (base 1e1) |
kilo |
k |
1000 |
1000**1 |
1e3 |
mega |
M |
1000000 |
1000**2 |
1e6 |
giga |
G |
1000000000 |
1000**3 |
1e9 |
tera |
T |
1000000000000 |
1000**4 |
1e12 |
peta |
P |
1000000000000000 |
1000**5 |
1e15 |
exa |
E |
1000000000000000000 |
1000**6 |
1e18 |
zetta |
Z |
1000000000000000000000 |
1000**7 |
1e21 |
yotta |
Y |
1000000000000000000000000 |
1000**8 |
1e24 |
See also: SI Prefixes
Metric System¶
SI Units¶
SI Units (International System of Units) are the standard units of measurement for almost every country on Earth.
https://en.wikipedia.org/wiki/SI_derived_unit#Derived_units_with_special_names
https://en.wikipedia.org/wiki/SI_derived_unit#Examples_of_derived_quantities_and_units
https://en.wikipedia.org/wiki/Non-SI_units_mentioned_in_the_SI
US customary units do not yet specify SI Units because the USA has not yet converted to the Metric System.
SI Base Units¶
SI Prefixes¶
Text |
Symbol |
Scaling Factor |
Scaling Factor (e) |
pico |
p |
0.000000000001 |
1e-12 |
nano |
n |
0.000000001 |
1e-9 |
micro |
μ |
0.000001 |
1e-6 |
milli |
m |
0.001 |
1e-3 |
centi |
c |
0.01 |
1e-2 |
deci |
d |
0.1 |
1e-1 |
(none) |
(none) |
1 |
1e0 |
deca |
da |
10 |
1e1 |
hecto |
h |
100 |
1e2 |
kilo |
k |
1000 |
1e3 |
mega |
M |
1000000 |
1e6 |
giga |
G |
1000000000 |
1e9 |
tera |
T |
1000000000000 |
1e12 |
peta |
P |
1000000000000000 |
1e15 |
exa |
E |
1000000000000000000 |
1e18 |
zetta |
Z |
1000000000000000000000 |
1e21 |
yotta |
Y |
1000000000000000000000000 |
1e24 |
See also: Binary Prefixes
SI Distance Units¶
metre¶
m
The metre is the length of the path travelled by light in vacuum during a time interval of 1/299792458 of a second
SI Volume Units¶
litre¶
L
SI Mass Units¶
kilogram¶
gram¶
g
SI Time Units¶
second¶
microsecond¶
Conversion: 1 microsecond == 1/100000 TODO of a second
Conversion: 1 microsecond == 1e-1000 TODO seconds
millisecond¶
ms
Conversion: 1 millisecond == 1/1000 of a second
Conversion: 1 millisecond == 1e-3 seconds
minute¶
hour¶
day¶
d
week¶
month¶
A month contains either 28 (Feb; 29 on a leap year), 30, or 31 days.
Two hands of knuckles with peaks and valleys together:
start with an outside knuckle
up (peak; knuckle) – 31 days
down (peak; knuckle) – 30 day (except for February, which has 28/29)
year¶
SI Frequency Units¶
hertz¶
Hz
TODO: cycles per time
TODO: em.py
SI Electric Current Units¶
ampere¶
# TODO
volt¶
V
# TODO# TODO frequency / current relation
SI Power Units¶
joule¶
watt¶
SI Temperature Units¶
celsius¶
C
kelvin¶
K
SI Amount Units¶
mole¶
mol
SI Luminous Intensity Units¶
candela¶
cd
SI Data Units¶
bit¶
b
A bit can be 1
or 0
.
A bit may indicate set containment (e.g.
True
orFalse
,Black
orWhite
) [Set Theory]A bit may be part of an ordered set of bits which ascribe left-to-right (little endian) or right-to-left (big endian) place values to each binary digit:
1 2 4 8 # little endian 0 1 0 1 # == 0 + 2 + 0 + 8 == 9 (base 10) 8 4 2 1 # big endian 0 1 0 1 # == 0 + 4 + 0 + 1 == 5 (base 10)
See also: Information Theory > Shannon bit (Shannon entropy)
byte¶
B
Storage vendors use powers of ten (e.g. MB, GB, TB) to describe storage capacity; and also binary prefixes (kilo, mega, giga, tera, peta, exa, zetta).
Many/most software programs use powers of two and binary prefixes (e.g. MiB, GiB, TiB) to describe e.g. partition and file sizes.
On-disk file sizes are often larger than the file content because of file allocation tables, redundancy, block size and allocation; but may be smaller after compression/deduplication.
unit |
derivation |
value |
nibble |
2**2 bits |
4 bits |
byte |
2**3 bits |
8 bits |
octet |
2**3 bits |
8 bits |
word size |
register width (in bits) |
8+, 16, 24, 32, 64 bits |
kibibyte (KiB) |
2**10 bytes 1024**1 bytes |
1024 bytes |
kiloyte (KB) |
1e3 bytes 1000**1 bytes |
1000 bytes |
mebibyte (MiB) |
2**20 bytes 1024**2 bytes |
1048576 bytes |
megabyte (MB) |
1e6 bytes 1000**2 bytes |
1000000 bytes |
gibibyte (GiB) |
2**30 bytes 1024**3 bytes |
1073741824 bytes |
gigabyte (GB) |
1e9 bytes 1000**3 bytes |
1000000000 bytes |
tebibyte (TiB) |
2**40 bytes 1024**4 bytes |
1099511627776 bytes |
terabyte (TB) |
1e12 bytes 1000**4 bytes |
1000000000000 bytes |
pebibyte (PiB) |
2**50 bytes 1024**5 bytes |
1125899906842624 bytes |
petabyte (PB) |
1e15 bytes 1000**5 bytes |
1000000000000000 bytes |
exbibyte (EiB) |
2**60 bytes 1024**6 bytes |
1152921504606846976 bytes |
exabyte (EB) |
1e18 bytes 1000**6 bytes |
1000000000000000000 bytes |
zebibyte (ZiB) |
2**70 bytes 1024**7 bytes |
1180591620717411303424 bytes |
zettabyte (ZB) |
1e21 bytes 1000**7 bytes |
1000000000000000000000 bytes |
yobibyte (YiB) |
2**80 bytes 1024**8 bytes |
1208925819614629174706176 bytes |
yottabyte (YB) |
1e21 bytes 1000**8 bytes |
1000000000000000000000000 bytes |
Imperial units¶
Imperial units may refer to either English units (ended in 1824) or US customary units (e.g. gram, ounce, gallon, pound, foot, mile).
The UK (United Kingdom) (of which England is a part) now specifies the Metric System of SI Units.
The USA (United States of America) US customary units still include many Imperial units; though Science disciplines outside of food, transportation, and weather do now specify the Metric System of SI Units.
Imperial Distance Units¶
inch¶
in
foot¶
ft
yard¶
yd
mile¶
Imperial Volume Units¶
teaspoon¶
Conversion: 1 US teaspoon == 1/3 of a US tablespoon
Conversion: 1 US teaspoon == 1/6 US fluid ounce
Conversion: 1 US teaspoon == 4.92892159375 mL (milli- Litres)
dram¶
Conversion: 1 US dram == 1/8 US fluid ounce
tablespoon¶
Conversion: 1 US tablespoon == 1/6 US fluid ounce
cup¶
c
Metric cup: https://en.wikipedia.org/wiki/Cup_(unit)#Metric_cup
US customary cup: https://en.wikipedia.org/wiki/Cup_(unit)#United_States_customary_cup
US legal cup (serving size): https://en.wikipedia.org/wiki/Cup_(unit)#United_States_.22legal.22_cup
Ja cup: https://en.wikipedia.org/wiki/Cup_(unit)#Japanese_cup
Conversion: 1 US customary cup == 8 US fluid ounce
Conversion: 1 US legal cup == 8.12 US fluid ounce
Conversion: 1 Metric cup == 8.45 US fluid ounce
fluid ounce¶
Serving size: 1 US can of e.g. soda == 12 US fluid ounce
Conversion: 1 fluid ounce == 29.573 mL
pint¶
pt
quart¶
qt
gallon¶
gal
keg¶
Conversion: 1 keg == 1984 US fluid ounce
Imperial Mass Units¶
gram¶
g
ounce¶
oz
pound¶
ton¶
US customary units¶
Common US Fluid Conversions:
Fluid serving size: 8 fluid ounce
1 pint = 16 fluid ounce
1 gallon = 128 fluid ounce