Exemplo 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))
Exemplo 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))
Exemplo 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 '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
Exemplo 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 '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'