Home > atmlab > h2o > thermodynamics > spechum2e.m

spechum2e

PURPOSE ^

SPECHUM2E Converts specific humidity to water vapour pressure

SYNOPSIS ^

function [e] = spechum2e(q,P)

DESCRIPTION ^

 SPECHUM2E   Converts specific humidity to water vapour pressure

  Converts specific humidity (q) to water vapor pressure (e) according to
  equation 3.57 and 3.59 on page 80 of Atmospheric Science An Introductory 
  Survey. John M. Wallace & Peter V. hobbs 2nd Edition 

  FORMAT [e] = spechum2e(q,P)

  OUT       e = vapor pressure of water [Pa]
  IN      q = specific humidity [kg/kg].
          P = total Pressure in [Pa]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

spechum2e.m

SOURCE CODE ^

0001 % SPECHUM2E   Converts specific humidity to water vapour pressure
0002 %
0003 %  Converts specific humidity (q) to water vapor pressure (e) according to
0004 %  equation 3.57 and 3.59 on page 80 of Atmospheric Science An Introductory
0005 %  Survey. John M. Wallace & Peter V. hobbs 2nd Edition
0006 %
0007 %  FORMAT [e] = spechum2e(q,P)
0008 %
0009 %  OUT       e = vapor pressure of water [Pa]
0010 %  IN      q = specific humidity [kg/kg].
0011 %          P = total Pressure in [Pa]
0012 
0013 % 2013-02-28 Created by Patrick Eriksson
0014 
0015 function [e] = spechum2e(q,P)
0016 
0017 rqre_element_math(q,P);
0018 
0019 eps = 0.622;
0020 
0021 e = (q.*P) ./ (eps+(1-eps)*q);
0022 
0023

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005