Esempio n. 1
0
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))
Esempio n. 2
0
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))
Esempio n. 3
0
import _thermodyn

t = 273.
q = 10.
p = 1000.

print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
print 'Testing thermodynamics module ...'

print _thermodyn.tdew(p, q) - 273.

print ' '
print 'Success!'
print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
Esempio n. 4
0
import _thermodyn
t=273.
q=10.
p=1000.

print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
print 'Testing thermodynamics module ...'

print _thermodyn.tdew(p,q)-273.

print ' '
print 'Success!'
print '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'