/
units.yaml
540 lines (538 loc) · 10.9 KB
/
units.yaml
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
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
acceleration:
meters_per_square_second: STANDARD
gravity:
multiplier: 9.80665
offset: 0
milligravity:
multiplier: 0.00980665
offset: 0
feet_per_square_second:
multiplier: 0.3048
offset: 0
millimeters_per_square_second:
multiplier: 0.001
offset: 0
angle:
degrees: STANDARD
angularmomentum:
joule_seconds: STANDARD
# TODO(tsodorff): Define a way of properly doing this conversion.
aqi:
epa: STANDARD #Environmental Protection Agency standard
eea: # European Air Quality Index
multiplier: 1
offset: 0
uba: # Umwelt Bundesamt, German air quality standard
multiplier: 1
offset: 0
awair: # Awair Air Quality Score
multiplier: 1
offset: 0
area:
square_meters: STANDARD
square_centimeters:
multiplier: 0.0001
offset: 0
square_feet:
multiplier: 0.09290304
offset: 0
square_inches:
multiplier: 0.00064516
offset: 0
concentration:
parts_per_unit: STANDARD
parts_per_million:
multiplier: 0.000001
offset: 0
parts_per_billion:
multiplier: 0.000000001
offset: 0
grams_per_kilogram: # Can convert approximately using Avogadro
multiplier: 0.001
offset: 0
grams_of_water_per_kilogram:
multiplier: 0.001
offset: 0
current:
amperes: STANDARD
milliamperes:
multiplier: 0.001
offset: 0
currentratio:
no_units: STANDARD
diameter: distance
density:
kilograms_per_cubic_meter: STANDARD
grams_per_cubic_meter:
multiplier: 0.001
offset: 0
micrograms_per_cubic_meter:
multiplier: 0.000000001
offset: 0
milligrams_per_cubic_meter:
multiplier: 0.000001
offset: 0
distance:
meters: STANDARD
centimeters:
multiplier: 0.01
offset: 0
millimeters:
multiplier: 0.001
offset: 0
micrometers:
multiplier: 0.000001
offset: 0
feet:
multiplier: 0.3048
offset: 0
inches:
multiplier: 0.0254
offset: 0
electriccapacitance:
farads: STANDARD
electricconductance:
siemens: STANDARD
electricconductivity:
siemens_per_meter: STANDARD
microsiemens_per_centimeter:
multiplier: 0.0001
offset: 0
electriccurrentdensity:
amperes_per_square_meter: STANDARD
electricfield:
volts_per_meter: STANDARD
electricinductance:
henrys: STANDARD
electricphasedifference:
degrees_phase: STANDARD
electricfieldstrength:
amperes_per_meter: STANDARD
electricresistivity:
ohm_meters: STANDARD
energy:
joules: STANDARD
kilowatt_hours:
multiplier: 3600000
offset: 0
btus:
multiplier: 1055.055853
offset: 0
kilobtus:
multiplier: 1055055.853
offset: 0
kilojoules:
multiplier: 1000
offset: 0
megabtus:
multiplier: 1055055853
offset: 0
megajoules:
multiplier: 1000000
offset: 0
megawatt_hours:
multiplier: 3600000000
offset: 0
therms:
multiplier: 105480400
offset: 0
kilovolt_ampere_hours:
multiplier: 3600000
offset: 0
kilovolt_ampere_apparent_hours:
multiplier: 3600000
offset: 0
kilovolt_ampere_reactive_hours:
multiplier: 3600000
offset: 0
ton_hours:
multiplier: 12660670.23144
offset: 0
watt_hours:
multiplier: 3600
offset: 0
energydensity:
kilojoules_per_kilogram: STANDARD
entropy:
joules_per_kelvin: STANDARD
kilojoules_per_kelvin:
multiplier: 1000
offset: 0
megajoules_per_kelvin:
multiplier: 1000000
offset: 0
flowrate:
cubic_meters_per_second: STANDARD
cubic_feet_per_second:
multiplier: 0.028316846592
offset: 0
cubic_feet_per_minute:
multiplier: 0.0004719474432000001
offset: 0
cubic_feet_per_hour:
multiplier: 0.000007865792
offset: 0
cubic_meters_per_minute:
multiplier: 0.016666666666666667
offset: 0
cubic_meters_per_hour:
multiplier: 0.000277777777777778
offset: 0
liters_per_second:
multiplier: 0.001
offset: 0
liters_per_minute:
multiplier: 0.000016666666666667
offset: 0
liters_per_hour:
multiplier: 0.000000277777777778
offset: 0
gallons_per_minute:
multiplier: 0.0000630901964
offset: 0
imperial_gallons_per_minute:
multiplier: 0.000075768166666667
offset: 0
us_gallons_per_minute:
multiplier: 0.0000630901964
offset: 0
force:
newton: STANDARD
frequency:
hertz: STANDARD
cycles_per_hour:
multiplier: 3600
offset: 0
cycles_per_minute:
multiplier: 60
offset: 0
kilohertz:
multiplier: 0.001
offset: 0
megahertz:
multiplier: 0.000001
offset: 0
per_hour:
multiplier: 3600
offset: 0
per_minute:
multiplier: 60
offset: 0
per_second:
multiplier: 1
offset: 0
humidity:
percent_relative_humidity: STANDARD
illuminance:
lux: STANDARD
foot_candles:
multiplier: 10.7639
offset: 0
length: distance
level: distance
impulse:
newton_seconds: STANDARD
irradiance:
watts_per_square_meter_irradiance: STANDARD
kilowatts_per_square_meter_irradiance:
multiplier: 1000
offset: 0
linearacceleration: acceleration
linearvelocity:
meters_per_second: STANDARD
meters_per_minute:
multiplier: 0.016666666667
offset: 0
meters_per_hour:
multiplier: 0.000277777778
offset: 0
millimeters_per_minute:
multiplier: 0.000016666667
offset: 0
millimeters_per_second:
multiplier: 0.001
offset: 0
kilometers_per_hour:
multiplier: 0.277777777778
offset: 0
feet_per_minute:
multiplier: 0.00508
offset: 0
feet_per_second:
multiplier: 0.3048
offset: 0
miles_per_hour:
multiplier: 0.44704
offset: 0
luminance:
candelas_per_square_meter: STANDARD
luminousflux:
lumens: STANDARD
luminousintensity:
candelas: STANDARD
magneticflux:
webers: STANDARD
magneticinduction:
teslas: STANDARD
magneticmoment:
ampere_square_meters: STANDARD
mass:
grams: STANDARD
kilograms:
multiplier: 1000
offset: 0
pounds_mass:
multiplier: 453.592
offset: 0
tons:
multiplier: 907184
offset: 0
massconcentration: concentration
massflow:
grams_per_second: STANDARD
grams_per_minute:
multiplier: 0.016666666667
offset: 0
kilograms_per_hour:
multiplier: 0.27778
offset: 0
kilograms_per_minute:
multiplier: 16.6667
offset: 0
kilograms_per_second:
multiplier: 1000
offset: 0
tons_per_hour:
multiplier: 251.996
offset: 0
pounds_mass_per_hour:
multiplier: 0.125998
offset: 0
pounds_mass_per_minute:
multiplier: 7.55987
offset: 0
pounds_mass_per_second:
multiplier: 453.592
offset: 0
obscuration:
percent_obscuration_per_meter: STANDARD
percent_obscuration_per_foot:
multiplier: 0.3048
offset: 0
percentage:
percent: STANDARD
power:
watts: STANDARD
kilowatts:
multiplier: 1000
offset: 0
volt_amperes:
multiplier: 1
offset: 0
kilovolt_amperes:
multiplier: 1000
offset: 0
megawatts:
multiplier: 1000000
offset: 0
milliwatts:
multiplier: 0.001
offset: 0
tons_of_refrigeration:
multiplier: 3517
offset: 0
btus_per_hour:
multiplier: 0.29307107
offset: 0
horsepower:
multiplier: 745.699872
offset: 0
kilobtus_per_hour:
multiplier: 293.07107
offset: 0
therms_per_hour:
multiplier: 29300.1111
offset: 0
volt_amperes_reactive:
multiplier: 1
offset: 0
kilovolt_amperes_reactive:
multiplier: 1000
offset: 0
megavolt_amperes_reactive:
multiplier: 1000000
offset: 0
volt_amperes_apparent:
multiplier: 1
offset: 0
kilovolt_amperes_apparent:
multiplier: 1000
offset: 0
megavolt_amperes_apparent:
multiplier: 1000000
offset: 0
powerfactor:
no_units: STANDARD
powerflux:
watts_per_square_meter: STANDARD
watts_per_square_foot:
multiplier: 0.092903
offset: 0
pressure:
pascals: STANDARD
hectopascals:
multiplier: 0.01
offset: 0
kilopascals:
multiplier: 1000
offset: 0
centimeters_of_mercury:
multiplier: 1333.22365
offset: 0
centimeters_of_water:
multiplier: 98.0665
offset: 0
millimeters_of_mercury:
multiplier: 133.322
offset: 0
inches_of_water:
multiplier: 249.080024
offset: 0
inches_of_mercury:
multiplier: 3386.39
offset: 0
pounds_force_per_square_inch:
multiplier: 6894.75789
offset: 0
atmospheres:
multiplier: 101325
offset: 0
millibar:
multiplier: 100
offset: 0
bars:
multiplier: 100000
offset: 0
rate:
inv_second: STANDARD
resistance:
ohms: STANDARD
kiloohms:
multiplier: 1000
offset: 0
megaohms:
multiplier: 1000000
offset: 0
milliohms:
multiplier: 0.001
offset: 0
rotationalvelocity:
revolutions_per_minute: STANDARD
soundpressurelevel:
decibels: STANDARD
specificenergy:
joules_per_kilogram_kelvin: STANDARD
specificenthalpy:
joules_per_kilogram: STANDARD
btus_per_pound_dry_air:
multiplier: 2326
offset: 0
joules_per_kilogram_dry_air:
multiplier: 1
offset: 0
kilojoules_per_kilogram_dry_air:
multiplier: 1000
offset: 0
megajoules_per_kilogram_dry_air:
multiplier: 1000000
offset: 0
temperature:
kelvin: STANDARD
degrees_celsius:
multiplier: 1
offset: 273.15
degrees_fahrenheit:
multiplier: 0.5555555555555556
offset: 255.37037037037038
timetemperature:
degree_days_kelvin: STANDARD
degree_days_celsius:
multiplier: 1
offset: -273.15
degree_days_fahrenheit:
multiplier: 0.5555555556
offset: 255.37
thermalconductivity:
watts_per_meter_per_kelvin: STANDARD
thermalcapacity:
btus_per_pound: STANDARD
thermaltransmittance:
watts_per_square_meter_kelvin: STANDARD
time:
seconds: STANDARD
days:
multiplier: 84600
offset: 0
hours:
multiplier: 3600
offset: 0
hundredths_seconds:
multiplier: 0.01
offset: 0
milliseconds:
multiplier: 0.001
offset: 0
minutes:
multiplier: 60
offset: 0
weeks:
multiplier: 604800
offset: 0
torque:
newton_meters: STANDARD
voltage:
volts: STANDARD
kilovolts:
multiplier: 1000
offset: 0
megavolts:
multiplier: 1000000
offset: 0
millivolts:
multiplier: 0.001
offset: 0
voltageratio:
no_units: STANDARD
volume:
cubic_meters: STANDARD
liters:
multiplier: 0.001
offset: 0
imperial_gallons:
multiplier: 0.00454609
offset: 0
us_gallons:
multiplier: 0.003785412
offset: 0
cubic_feet:
multiplier: 0.028316846592
offset: 0
volumetricconcentration:
parts_per_cubic_centimeter: STANDARD # can be approximated using Avogadro
xvalue:
no_units: STANDARD
yvalue:
no_units: STANDARD