Skip to content

Commit

Permalink
simplified so13 input parameters by calculating pseudoheight with par…
Browse files Browse the repository at this point in the history
…cel T and p
  • Loading branch information
Osamu Miyawaki committed Oct 19, 2023
1 parent 47e009c commit 26b8809
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ def moist_lapse(pressure, temperature, reference_pressure=None, lapse_type='stan
External parameters used for the some lapse_types
Required parameters:
For 'so13': {
'h0': scalar, scale height [m],
'p0': scalar, reference sea-level pressure [Pa],
'ep0': scalar, entrainment constant [unitless],
'rh0': scalar, ambient relative humidity [unitless],
}
Expand Down Expand Up @@ -411,6 +409,7 @@ def dt_r14(p, t, params):
params={'rt':saturation_mixing_ratio._nounit(reference_pressure,temperature)} # total water at LCL = rs
elif lapse_type == 'so13':
dt=dt_so13
params.update{{'h0':mpconsts.nounit.Rd*temperature[0]/mpconsts.nounit.g, 'p0':pressure[0]}}
elif lapse_type == 'r14':
dt=dt_r14
else:
Expand Down Expand Up @@ -1028,8 +1027,6 @@ def parcel_profile(pressure, temperature, dewpoint, lapse_type='standard', param
External parameters used for the some lapse_types
Required parameters:
For 'so13': {
'h0': scale height [m],
'p0': reference sea-level pressure [Pa],
'ep0': entrainment constant [unitless],
'rh0': ambient relative humidity [unitless],
}
Expand Down

0 comments on commit 26b8809

Please sign in to comment.