dimvexa-data 0.5.0

Unit conversion tables for dimvexa, compiled from audited TOML. Exact factors. Loud failures. Zero guessing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
# SPDX-License-Identifier: MIT OR Apache-2.0
# Golden vectors for the common pack: value in `from` converts exactly to `expect` in `to`.
# `expect` is a fraction, an integer, a decimal or a symbolic value such as `pi` or
# `180 pi^-1` (ADR-018). With `rel_tol` the comparison is approximate
# (used where the source publishes a rounded number). `source` says where the number comes from.

[[vector]]
unit = "bar"
value = "1"
from = "bar"
to = "kPa"
expect = "100"
source = "NIST SP 811 (2008), Appendix B (bar = 100 kPa)"

[[vector]]
unit = "atm"
value = "1"
from = "atm"
to = "Pa"
expect = "101325"
source = "NIST SP 811 (2008), Appendix B (standard atmosphere = 101 325 Pa)"

[[vector]]
unit = "mmHg"
value = "1"
from = "mmHg"
to = "Pa"
expect = "133.322387415"
source = "NIST SP 811 (2008), Appendix B (conventional mmHg = 133.322 387 415 Pa)"

[[vector]]
unit = "torr"
value = "760"
from = "torr"
to = "atm"
expect = "1"
source = "NIST SP 811 (2008), Appendix B (torr = (101 325/760) Pa)"

[[vector]]
unit = "torr"
value = "1"
from = "torr"
to = "Pa"
expect = "101325/760"
source = "NIST SP 811 (2008), Appendix B (torr = (101 325/760) Pa)"

[[vector]]
unit = "g_n"
value = "1"
from = "g_n"
to = "m/s2"
expect = "9.80665"
source = "NIST SP 811 (2008), Appendix B (standard gravity 9.806 65 m/s^2)"

[[vector]]
unit = "lbf"
value = "1"
from = "lbf"
to = "N"
expect = "4.4482216152605"
source = "NIST SP 811 (2008), Appendix B (lbf = 4.448 221 615 260 5 N)"

[[vector]]
unit = "psi"
value = "1"
from = "psi"
to = "Pa"
expect = "6894.757293168"
rel_tol = "1e-12"
source = "NIST SP 811 (2008), Appendix B (psi = 6.894 757 293 168 E+03 Pa, published to 13 digits)"

[[vector]]
unit = "psi"
value = "1"
from = "psi"
to = "lbf/in2"
expect = "1"
source = "by definition: psi = lbf/in^2"

[[vector]]
unit = "cal_th"
value = "1"
from = "cal_th"
to = "J"
expect = "4.184"
source = "NIST SP 811 (2008), Appendix B (calorie_th = 4.184 J)"

[[vector]]
unit = "cal_IT"
value = "1"
from = "cal_IT"
to = "J"
expect = "4.1868"
source = "NIST SP 811 (2008), Appendix B (calorie_IT = 4.1868 J)"

[[vector]]
unit = "Btu_IT"
value = "1"
from = "Btu_IT"
to = "J"
expect = "1055.05585262"
source = "NIST SP 811 (2008), Appendix B (Btu_IT = 1055.055 852 62 J)"

[[vector]]
unit = "Btu_th"
value = "1"
from = "Btu_th"
to = "J"
expect = "1054.350"
rel_tol = "1e-6"
source = "NIST SP 811 (2008), Appendix B (Btu_th = 1.054 350 E+03 J, published rounded)"

[[vector]]
unit = "hp_mech"
value = "1"
from = "hp_mech"
to = "W"
expect = "745.69987158227022"
source = "NIST SP 811 (2008), Appendix B (horsepower 550 ft lbf/s = 745.699 871 582 270 22 W)"

[[vector]]
unit = "hp_metric"
value = "1"
from = "hp_metric"
to = "W"
expect = "735.49875"
source = "NIST SP 811 (2008), Appendix B (horsepower, metric; 75 kgf m/s with kgf = 9.806 65 N)"

[[vector]]
unit = "in"
value = "1"
from = "in"
to = "mm"
expect = "25.4"
source = "NIST SP 811 (2008), Appendix B (inch = 0.0254 m)"

[[vector]]
unit = "ft"
value = "1"
from = "ft"
to = "in"
expect = "12"
source = "International yard and pound agreement (1959)"

[[vector]]
unit = "yd"
value = "1"
from = "yd"
to = "ft"
expect = "3"
source = "International yard and pound agreement (1959)"

[[vector]]
unit = "mi"
value = "1"
from = "mi"
to = "m"
expect = "1609.344"
source = "NIST SP 811 (2008), Appendix B (mile = 1609.344 m)"

[[vector]]
unit = "nmi"
value = "1"
from = "nmi"
to = "m"
expect = "1852"
source = "NIST SP 811 (2008), Appendix B (nautical mile = 1852 m)"

[[vector]]
unit = "ft_us_survey"
value = "1"
from = "ft_us_survey"
to = "m"
expect = "1200/3937"
source = "NIST SP 811 (2008), Appendix B (foot, U.S. survey = 1200/3937 m)"

[[vector]]
unit = "mi_us_survey"
value = "1"
from = "mi_us_survey"
to = "ft_us_survey"
expect = "5280"
source = "NIST SP 811 (2008), Appendix B (mile, U.S. statute = 5280 survey feet)"

[[vector]]
unit = "lb"
value = "1"
from = "lb"
to = "g"
expect = "453.59237"
source = "International yard and pound agreement (1959)"

[[vector]]
unit = "oz_av"
value = "16"
from = "oz_av"
to = "lb"
expect = "1"
source = "avoirdupois: 16 ounces = 1 pound"

[[vector]]
unit = "oz_troy"
value = "1"
from = "oz_troy"
to = "g"
expect = "31.1034768"
source = "NIST SP 811 (2008), Appendix B (ounce, troy = 31.103 476 8 g)"

[[vector]]
unit = "ton_short"
value = "1"
from = "ton_short"
to = "lb"
expect = "2000"
source = "NIST SP 811 (2008), Appendix B (ton, short = 2000 lb)"

[[vector]]
unit = "ton_long"
value = "1"
from = "ton_long"
to = "lb"
expect = "2240"
source = "NIST SP 811 (2008), Appendix B (ton, long = 2240 lb)"

[[vector]]
unit = "gal_us"
value = "1"
from = "gal_us"
to = "L"
expect = "3.785411784"
source = "NIST SP 811 (2008), Appendix B (gallon, U.S. liquid = 3.785 411 784 L)"

[[vector]]
unit = "gal_imp"
value = "1"
from = "gal_imp"
to = "L"
expect = "4.54609"
source = "UK Weights and Measures Act 1985, Schedule 1, Part VI (4.54609 dm^3)"

[[vector]]
unit = "pt_us"
value = "8"
from = "pt_us"
to = "gal_us"
expect = "1"
source = "NIST Handbook 44, Appendix C (1 gallon = 4 quarts = 8 pints)"

[[vector]]
unit = "pt_imp"
value = "8"
from = "pt_imp"
to = "gal_imp"
expect = "1"
source = "UK Weights and Measures Act 1985, Schedule 1, Parts IV and VI (8 x 0.568 261 25 dm^3 = 4.54609 dm^3)"

[[vector]]
unit = "lbmol"
value = "1"
from = "lbmol"
to = "mol"
expect = "453.59237"
source = "pound-mole: 1 lb = 453.592 37 g, so 453.592 37 mol"

[[vector]]
unit = "lbmol"
value = "1"
from = "lbmol"
to = "kmol"
expect = "0.45359237"
source = "pound-mole = 0.453 592 37 kmol"

[[vector]]
unit = "degF"
value = "32"
from = "degF"
to = "degC"
expect = "0"
source = "NIST SP 811 (2008): water freezes at 32 degF = 0 degC"

[[vector]]
unit = "degF"
value = "-40"
from = "degF"
to = "degC"
expect = "-40"
source = "the scales meet at -40"

[[vector]]
unit = "degR"
value = "491.67"
from = "degR"
to = "K"
expect = "273.15"
source = "degR = 5/9 K; 491.67 degR = 273.15 K"

[[vector]]
unit = "delta_degF"
value = "1"
from = "delta_degF"
to = "delta_K"
expect = "5/9"
source = "NIST SP 811 (2008), Appendix B (degF interval = 5/9 K)"

[[vector]]
unit = "delta_degR"
value = "1"
from = "delta_degR"
to = "delta_degF"
expect = "1"
source = "degR and degF intervals are equal"

[[vector]]
unit = "cal_th"
value = "1"
from = "kcal_th"
to = "J"
expect = "4184"
source = "derived: kilo prefix on 4.184 J"

[[vector]]
unit = "delta_degF"
value = "9"
from = "Δ°F"
to = "delta_K"
expect = "5"
source = "alias check; NIST SP 811 (2008), Appendix B (degF interval = 5/9 K)"

[[vector]]
unit = "delta_degR"
value = "9"
from = "Δ°R"
to = "delta_K"
expect = "5"
source = "alias check; NIST SP 811 (2008), Appendix B (degR interval = 5/9 K)"

[[vector]]
unit = "delta_degF"
value = "1"
from = "Btu_IT/(lb.delta_degF)"
to = "kJ/(kg.K)"
expect = "4.1868"
source = "NIST SP 811 (2008), Appendix B: 1 Btu_IT/(lb degF) = 4186.8 J/(kg K)"

[[vector]]
unit = "week"
value = "1"
from = "week"
to = "d"
expect = "7"
source = "ISO 8601-1:2019 (a week has 7 days)"

[[vector]]
unit = "yr_common"
value = "1"
from = "yr_common"
to = "s"
expect = "31536000"
source = "NIST SP 811 (2008), Appendix B (year, 365 days = 3.1536E+07 s)"

[[vector]]
unit = "yr_julian"
value = "1"
from = "yr_julian"
to = "d"
expect = "1461/4"
source = "IAU Style Manual (1989) (Julian year = 365.25 days)"

[[vector]]
unit = "ly"
value = "1"
from = "ly"
to = "m"
expect = "9460730000000000"
rel_tol = "1e-6"
source = "NIST SP 811 (2008), Appendix B (light year, 9.46073E+15 m, rounded)"

[[vector]]
unit = "acre_int"
value = "1"
from = "acre_int"
to = "m^2"
expect = "316160658/78125"
source = "NIST SP 811 (2008), Appendix B.6 (160 rd^2 = 1 acre = 43 560 ft^2) with ft = 0.3048 m"

[[vector]]
unit = "acre_us_survey"
value = "1"
from = "acre_us_survey"
to = "m^2"
expect = "4046873/1000"
rel_tol = "1e-6"
source = "NIST SP 811 (2008), Appendix B (acre, based on U.S. survey foot = 4.046 873 E+03 m^2, rounded)"

[[vector]]
unit = "kn"
value = "1"
from = "kn"
to = "km/h"
expect = "463/250"
source = "NIST SP 811 (2008), Appendix B (knot = 1 nautical mile (1852 m) per hour)"

[[vector]]
unit = "fl_oz_us"
value = "128"
from = "fl_oz_us"
to = "gal_us"
expect = "1"
source = "NIST Handbook 44, Appendix C (1 gallon = 128 fluid ounces)"

[[vector]]
unit = "cup_us"
value = "1"
from = "cup_us"
to = "fl_oz_us"
expect = "8"
source = "NIST SP 811 (2008), Appendix B (cup = 2.365 882 E-04 m^3 and fluid ounce = 2.957 353 E-05 m^3: ratio 8)"

[[vector]]
unit = "qt_us"
value = "1"
from = "qt_us"
to = "pt_us"
expect = "2"
source = "NIST SP 811 (2008), Appendix B (quart = 9.463 529 E-04 m^3 and pint = 4.731 765 E-04 m^3: ratio 2)"

[[vector]]
unit = "tbsp_us"
value = "1"
from = "tbsp_us"
to = "mL"
expect = "473176473/32000000"
source = "NIST SP 811 (2008), Appendix B (tablespoon = 1.478 676 E-05 m^3, rounded; half of a U.S. fluid ounce within the rounding)"

[[vector]]
unit = "tsp_us"
value = "3"
from = "tsp_us"
to = "tbsp_us"
expect = "1"
source = "NIST SP 811 (2008), Appendix B (tablespoon = 1.478 676 E-05 m^3 and teaspoon = 4.928 922 E-06 m^3: ratio 3)"

[[vector]]
unit = "fl_oz_imp"
value = "160"
from = "fl_oz_imp"
to = "gal_imp"
expect = "1"
source = "UK Weights and Measures Act 1985, Schedule 1, Parts IV and VI (pint = 0.568 261 25 dm^3; fluid ounce = 1/20 pint)"

[[vector]]
unit = "qt_imp"
value = "1"
from = "qt_imp"
to = "L"
expect = "454609/400000"
source = "UK Weights and Measures Act 1985, Schedule 1, Part VI (gallon = 4.54609 dm^3, quart = 1/4 gallon)"

[[vector]]
unit = "grain"
value = "1"
from = "grain"
to = "mg"
expect = "6479891/100000"
source = "NIST SP 811 (2008), Appendix B (grain = 6.479 891 E-05 kg)"

[[vector]]
unit = "carat"
value = "1"
from = "carat"
to = "mg"
expect = "200"
source = "NIST SP 811 (2008), Appendix B (carat, metric = 2.0 E-04 kg)"

[[vector]]
unit = "erg"
value = "1"
from = "erg"
to = "J"
expect = "1/10000000"
source = "NIST SP 811 (2008), Appendix B (erg = 1.0 E-07 J)"

[[vector]]
unit = "dyn"
value = "1"
from = "dyn"
to = "N"
expect = "1/100000"
source = "NIST SP 811 (2008), Appendix B (dyne = 1.0 E-05 N)"

[[vector]]
unit = "kgf"
value = "1"
from = "kgf"
to = "N"
expect = "196133/20000"
source = "NIST SP 811 (2008), Appendix B (kilogram-force = 9.806 65 E+00 N)"

[[vector]]
unit = "grad"
value = "100"
from = "grad"
to = "deg"
expect = "90"
source = "NIST SP 811 (2008), Appendix B (grade = (pi/200) rad, so 100 grad = 90 degrees)"

[[vector]]
unit = "P"
value = "1"
from = "cP"
to = "Pa.s"
expect = "0.001"
source = "NIST SP 811 (2008), Appendix B.8 (poise = 1.0 E-01 Pa s; centipoise = 1.0 E-03 Pa s)"

[[vector]]
unit = "St"
value = "1"
from = "cSt"
to = "m2/s"
expect = "0.000001"
source = "NIST SP 811 (2008), Appendix B.8 (stokes = 1.0 E-04 m^2/s; centistokes = 1.0 E-06 m^2/s)"

[[vector]]
unit = "bbl"
value = "1"
from = "bbl"
to = "L"
expect = "158.987294928"
source = "NIST SP 811 (2008), Appendix B.8 (barrel [for petroleum, 42 gallons (U.S.)]) with Appendix B (gallon, U.S. = 3.785 411 784 L)"

[[vector]]
unit = "psig"
value = "10"
from = "psig"
to = "barg"
expect = "0.6894757293168361"
rel_tol = "1e-12"
source = "NIST SP 811 (2008), Appendix B (psi = 6.894 757 293 168 E+03 Pa) and bar = 100 kPa, both gauge"

[[vector]]
unit = "barg"
value = "2"
from = "barg"
to = "kPag"
expect = "200"
source = "by definition: bar = 100 kPa (NIST SP 811 (2008), Appendix B), both gauge"

[[vector]]
unit = "Pag"
value = "1"
from = "kPag"
to = "Pag"
expect = "1000"
source = "BIPM SI Brochure (2019), Table 7 (prefix kilo = 10^3), both gauge"

[[vector]]
unit = "Nm3"
value = "60"
from = "Nm3/h"
to = "Nm3/min"
expect = "1"
source = "BIPM SI Brochure (2019), Table 8 (1 h = 60 min); the normal cubic metre keeps its reference state"

[[vector]]
unit = "scf"
value = "1"
from = "scf/min"
to = "scf/h"
expect = "60"
source = "BIPM SI Brochure (2019), Table 8 (1 h = 60 min); the standard cubic foot keeps its reference state"