Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoebber committed Oct 5, 2023
1 parent e8e1db8 commit 45a0c72
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,10 +1656,13 @@ def wetbulb_potential_temperature(pressure, temperature, dewpoint):
First, theta-e is calculated
then use the formula from [DaviesJones2008]_
.. math:: \theta_w = \theta_e - exp(\frac{a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4}{1 +
b_1 x + b_2 x^2 + b_3 x^3 + b_4 x^4}})
where :math:`x = \theta_e / 273.15 K`. When :math:`\theta_e <= -173.15 k`,
:math:`\theta_w = \theta_e`.
.. math:: \theta_w = \theta_e -
exp(\frac{a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4}
{1 + b_1 x + b_2 x^2 + b_3 x^3 + b_4 x^4})

Check failure on line 1662 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 W293 [*] Blank line contains whitespace Raw Output: src/metpy/calc/thermo.py:1662:1: W293 [*] Blank line contains whitespace
where :math:`x = \theta_e / 273.15 K`.
When :math:`\theta_e <= -173.15 K` then :math:`\theta_w = \theta_e`.
Parameters
----------
Expand Down

0 comments on commit 45a0c72

Please sign in to comment.