Skip to content

Commit d116e7f

Browse files
committed
Added new unit definitions for hPa and mb.
1 parent c2df012 commit d116e7f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

quantities/units/pressure.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
symbol='Pa',
2525
aliases=['pascals']
2626
)
27+
hPa = hectopascal = UnitQuantity(
28+
'hectopascal',
29+
100*Pa,
30+
symbol='hPa',
31+
)
2732
kPa = kilopascal = UnitQuantity(
2833
'kilopascal',
2934
1000*Pa,
@@ -47,6 +52,11 @@
4752
100000*pascal,
4853
aliases=['bars']
4954
)
55+
mb = millibar = UnitQuantity(
56+
'millibar',
57+
0.001*bar,
58+
symbol='mb',
59+
)
5060
kbar = kilobar = UnitQuantity(
5161
'kilobar',
5262
1000*bar,

0 commit comments

Comments
 (0)