Skip to content

Commit

Permalink
Update references for new thermo calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
jrleeman committed Mar 21, 2017
1 parent e9a79f9 commit 0bb5055
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
8 changes: 7 additions & 1 deletion docs/references.rst
Expand Up @@ -15,7 +15,10 @@ References
Wea. Rev 87.10 (1959): 367-374.
.. [Hobbs1977] Hobbs, Peter V. and Wallace, John M., 1977: Atmospheric Science, an
Introductory Survey. 71.
Introductory Survey.
.. [Hobbs2006] Hobbs, Peter V. and Wallace, John M., 2006: Atmospheric Science, an Introductory
Survey. 2nd ed.
.. [FCMR192003] Federal Coordinator for Meteorological Services and Supporting Research: Report on
Wind Chill Temperature and Extreme Heat Indices: Evaluation and Improvement
Expand All @@ -33,6 +36,9 @@ References
.. [Liang2010] Liang, Luming, and Dave Hale. "A stable and fast implementation
of natural neighbor interpolation." (2010).
.. [Markowski2010] Markowski, Paul and Richardson, Yvette, 2010: Mesoscale Meteorology in the
Midlatitudes.
.. [Rothfusz1990] Rothfusz, L.P.: The Heat Index "Equation". Fort Worth, TX: Scientific Services
Division, NWS Southern Region Headquarters, 1990.
`SR90-23 <http://www.weather.gov/media/ffc/ta_htindx.PDF>`_
Expand Down
21 changes: 3 additions & 18 deletions metpy/calc/thermo.py
Expand Up @@ -527,7 +527,7 @@ def virtual_temperature(temperature, mixing, molecular_weight_ratio=epsilon):
r"""Calculate virtual temperature.
This calculation must be given an air parcel's temperature and mixing ratio.
The implementation uses the formula outlined in [8]_.
The implementation uses the formula outlined in [Hobbs2006] pg.80.
Parameters
----------
Expand All @@ -548,11 +548,6 @@ def virtual_temperature(temperature, mixing, molecular_weight_ratio=epsilon):
Notes
-----
.. math:: T_v = T \frac{\text{w} + \epsilon}{\epsilon\,(1 + \text{w})}
References
----------
.. [8] Hobbs, Peter V. and Wallace, John M., 2006: Atmospheric Science, an Introductory
Survey. 2nd ed. 80.
"""
return temperature * ((mixing + molecular_weight_ratio) /
(molecular_weight_ratio * (1 + mixing)))
Expand All @@ -564,7 +559,7 @@ def virtual_potential_temperature(pressure, temperature, mixing,
r"""Calculate virtual potential temperature.
This calculation must be given an air parcel's pressure, temperature, and mixing ratio.
The implementation uses the formula outlined in [9]_.
The implementation uses the formula outlined in [Markowski2010] pg.13.
Parameters
----------
Expand All @@ -587,11 +582,6 @@ def virtual_potential_temperature(pressure, temperature, mixing,
Notes
-----
.. math:: \Theta_v = \Theta \frac{\text{w} + \epsilon}{\epsilon\,(1 + \text{w})}
References
----------
.. [9] Markowski, Paul and Richardson, Yvette, 2010: Mesoscale Meteorology in the
Midlatitudes. 13.
"""
pottemp = potential_temperature(pressure, temperature)
return virtual_temperature(pottemp, mixing, molecular_weight_ratio)
Expand All @@ -602,7 +592,7 @@ def density(pressure, temperature, mixing, molecular_weight_ratio=epsilon):
r"""Calculate density.
This calculation must be given an air parcel's pressure, temperature, and mixing ratio.
The implementation uses the formula outlined in [10]_.
The implementation uses the formula outlined in [Hobbs2006] pg.67.
Parameters
----------
Expand All @@ -625,11 +615,6 @@ def density(pressure, temperature, mixing, molecular_weight_ratio=epsilon):
Notes
-----
.. math:: \rho = \frac{p}{R_dT_v}
References
----------
.. [10] Hobbs, Peter V. and Wallace, John M., 2006: Atmospheric Science, an Introductory
Survey. 2nd ed. 67.
"""
virttemp = virtual_temperature(temperature, mixing, molecular_weight_ratio)
return (pressure / (Rd * virttemp)).to(units.kilogram / units.meter ** 3)

0 comments on commit 0bb5055

Please sign in to comment.