def tdew(p,q): ''' Return dew point temperature tdew [K] at pressure p [mb] and specific humidity q [g/kg] Use Eq. (11) in Bolton (1980), Mon. Wea. Rev. 108, 1046-1053 ''' return squeeze(_thermodyn.tdew(p,q))
import _thermodyn t = 273. q = 10. p = 1000. print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' print 'Testing thermodynamics module ...' print _thermodyn.tdew(p, q) - 273. print ' ' print 'Success!' print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
import _thermodyn t=273. q=10. p=1000. print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' print 'Testing thermodynamics module ...' print _thermodyn.tdew(p,q)-273. print ' ' print 'Success!' print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'