Maybe I accidentally copy/pasted another result instead of the correct one -- although this was the original function that Jonathan coded, and I certainly did not mean to change his documented example. 
 -dave

On Sep 12, 2013, at 3:55 PM, "Jonathan J. Helmus" <notifications@github.com> wrote:

> In aoslib/awips.py:
> 
> >         are replaced with flag value 1.e37 in the return array.
> >  
> >      Examples
> >      --------
> >      >>> import aoslib
> >      >>> aoslib.calctw([[1013.25]], [[296.15]], [[85.]])
> > -    array([[ 298.81143188]], dtype=float32)
> > +    array([[ 294.28710938]], dtype=float32)
> I don't think this is a compiler difference but rather a typo by Dave, although I can't figure out the original intent. The wet bulb temperature is always lower than the "dry bulb" temperature. Also the NOAA calculator, http://www.srh.noaa.gov/epz/?n=wxcalc_rh, gives a value of 294.33 for the pressure, temp and rh given. This is much closer to the 294.287... value.
> 
> Unfortunately the procedure to calculate wet bulb is iterative, so not an easy one to perform manually.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>