comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » computing wet-bulb temperature
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
computing wet-bulb temperature [message #46621] Thu, 01 December 2005 10:47 Go to next message
Tom Over is currently offline  Tom Over
Messages: 5
Registered: April 1997
Junior Member
Does anybody have an IDL routine to compute wet-bulb temperature?
Re: computing wet-bulb temperature [message #46776 is a reply to message #46621] Mon, 19 December 2005 01:15 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
Tom Over <tmover@hotmail.com> wrote:
> Does anybody have an IDL routine to compute wet-bulb temperature?

No, but this computes the vapour pressure and might help...

function vp,t1,degc=degc

@comm_error

; Return vapour pressure (hPa) of water given temperature

; Constants
ts=373.16
ews=1013.246

; In K (default) or oC?
if (keyword_set(degc)) then t=t1+273.15 else t=t1

; Check
if (min(t) lt 100) then message,'dew temp < 100'

; Calculate
p= 10.0 ^ ( -7.90298 * ( ts / t - 1.0 ) $
+ 5.02808 * alog10 ( ts / t ) $
- 1.3816e-7 * ( 10 ^ ( 11.344 * ( 1-ts/t ) ) -1 ) $
+ 8.1328e-3 * ( 10 ^ ( -3.4915 * ( ts/t-1 ) ) -1 ) $
+ alog10 ( ews ) )

return,p
end

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: display an image from RGB
Next Topic: Comment/uncomment keyboard shortcut?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:29:06 PDT 2025

Total time taken to generate the page: 0.00499 seconds