From 47e009c92e7a069636549bb2470321cd005c5d29 Mon Sep 17 00:00:00 2001 From: Osamu Miyawaki Date: Wed, 18 Oct 2023 11:47:54 -0600 Subject: [PATCH] set default lapse_type='standard' for parcel_profile --- src/metpy/calc/thermo.py | 2 +- src/metpy/constants/nounit.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py index 8006935a0f0..81476622e37 100644 --- a/src/metpy/calc/thermo.py +++ b/src/metpy/calc/thermo.py @@ -995,7 +995,7 @@ def el(pressure, temperature, dewpoint, parcel_temperature_profile=None, which=' @exporter.export @preprocess_and_wrap(wrap_like='pressure') @check_units('[pressure]', '[temperature]', '[temperature]') -def parcel_profile(pressure, temperature, dewpoint, lapse_type=None, params=None): +def parcel_profile(pressure, temperature, dewpoint, lapse_type='standard', params=None): r"""Calculate the profile a parcel takes through the atmosphere. The parcel starts at `temperature`, and `dewpoint`, lifted up diff --git a/src/metpy/constants/nounit.py b/src/metpy/constants/nounit.py index d4f77a7f224..c4f78dbf0ec 100644 --- a/src/metpy/constants/nounit.py +++ b/src/metpy/constants/nounit.py @@ -7,6 +7,7 @@ from ..units import units Rd = default.Rd.m_as('m**2 / K / s**2') +Rv = default.Rv.m_as('m**2 / K / s**2') Lv = default.Lv.m_as('m**2 / s**2') Cp_d = default.Cp_d.m_as('m**2 / K / s**2') Cv_d = default.Cv_d.m_as('m**2 / K / s**2')