Skip to content

Commit ccc1da3

Browse files
committed
Fixed buoyancy bug, updated documentation for custom storm motions.
1 parent 60f9366 commit ccc1da3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ calc_ecape_parcel(p, z, T, Td, u, v, True, entrainment_switch=True, pseudoadiaba
124124
# Uses the Mean Wind 0-3 km storm relative inflow
125125
calc_ecape_parcel(p, z, T, Td, u, v, True, entrainment_switch=True, pseudoadiabatic_switch=False, storm_motion_type="mean_wind", inflow_layer_bottom: pint.Quantity = 0 * units.kilometer, inflow_layer_top: pint.Quantity = 3 * units.kilometer)
126126

127+
# Uses custom storm motion vector
128+
calc_ecape_parcel(p, z, T, Td, u, v, True, entrainment_switch=True, pseudoadiabatic_switch=False, storm_motion_type="user_defined", storm_motion_u = 20 * * units("m/s"), storm_motion_v = 15 * units("m/s"))
129+
127130
# Uses user-computed CAPE, LFC, and EL values
128131
calc_ecape_parcel(p, z, T, Td, u, v, True, entrainment_switch=True, cape=3500 * units("J/kg"), lfc=500 * units("m"), el=12500 * units("m"))
129132

src/ecape_parcel/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2023-present Amelia Urquhart <[email protected]>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = '1.2.0.2'
4+
__version__ = '1.2.1'

src/ecape_parcel/calc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def custom_cape_cin_lfc_el(
607607

608608
T_rho = parcel_density_temperature[i]
609609

610-
buoyancy = g * (T_rho - T_rho_0) / T_rho
610+
buoyancy = g * (T_rho - T_rho_0) / T_rho_0
611611

612612
# print(z0, buoyancy)
613613

0 commit comments

Comments
 (0)