Skip to content

Commit

Permalink
Fixed buoyancy bug, updated documentation for custom storm motions.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-urq committed Mar 18, 2024
1 parent 60f9366 commit ccc1da3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ calc_ecape_parcel(p, z, T, Td, u, v, True, entrainment_switch=True, pseudoadiaba
# Uses the Mean Wind 0-3 km storm relative inflow
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)

# Uses custom storm motion vector
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"))

# Uses user-computed CAPE, LFC, and EL values
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"))

Expand Down
2 changes: 1 addition & 1 deletion src/ecape_parcel/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present Amelia Urquhart <amelia.r.urquhart@gmail.com>
#
# SPDX-License-Identifier: MIT
__version__ = '1.2.0.2'
__version__ = '1.2.1'
2 changes: 1 addition & 1 deletion src/ecape_parcel/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def custom_cape_cin_lfc_el(

T_rho = parcel_density_temperature[i]

buoyancy = g * (T_rho - T_rho_0) / T_rho
buoyancy = g * (T_rho - T_rho_0) / T_rho_0

# print(z0, buoyancy)

Expand Down

0 comments on commit ccc1da3

Please sign in to comment.