Skip to content

Commit

Permalink
add new physical dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Dec 24, 2024
1 parent dd54692 commit 1afd853
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/metpy/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
'[temperature]': 'K',
'[dimensionless]': '',
'[length]': 'm',
'[speed]': 'm s**-1'
'[speed]': 'm s**-1',
'[specific_enthalpy]': 'm**2 s**-2',
'[specific_heat_capacity]': 'm**2 s**-2 K-1'
}


Expand Down Expand Up @@ -83,6 +85,8 @@ def setup_registry(reg):
reg.define('degrees_east = degree = degrees_E = degreesE = degree_east = degree_E '
'= degreeE')
reg.define('dBz = 1e-18 m^3; logbase: 10; logfactor: 10 = dBZ')
reg.define('[specific_enthalpy] = [energy] / [mass]')
reg.define('[specific_heat_capacity] = [specific_enthalpy] / [temperature]')

# Alias geopotential meters (gpm) to just meters
reg.define('@alias meter = gpm')
Expand Down

0 comments on commit 1afd853

Please sign in to comment.