source: trunk/src/lwdown_clark.pro

Last change on this file was 204, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo

  • Property svn:keywords set to Id URL
File size: 1.4 KB
Line 
1;+
2; ================
3; lwdown_clark.pro
4; ================
5;
6; .. function:: lwdown_clark(sst, qair, cld, tair, ps)
7;
8; DESCRIPTION
9; ===========
10;
11; Net longwave from the Clark et al. (1974) bulk formula
12; Clark, N. E., L. Eber, R. M. Laurs, J. A. Renner, and J. F. T. Saur,
13; 1974: Heat exchange between ocean and atmosphere in the
14; eastern North Pacific for 1961-71. NOAA Tech. Rep. NMRS
15; SSRF-682, National Oceanic and Atmospheric Administration,
16; U.S. Department of Commerce, Washington, DC, 108 pp.
17;
18; See also Gill, p34.
19;
20; INPUTS
21;   sst :    Sea surface temperature (degC)
22;   qair:    specific humidity (g/kg)
23;   cld :    cloud cover
24;   tair:    surface air temperature (degC)
25;   ps  :    surface pressure (mb)
26; OUTPUT
27;   lw :    estimated longwave (W/m2)
28;
29; EVOLUTIONS
30; ==========
31;
32; $Id$
33;
34; $URL$
35;
36; - fplod 20120319
37;
38;   * minimal header
39;
40;-
41function lwdown_clark, sst,qair,cld,tair,ps
42;
43@common
44;
45eps=.97            ; emissivity of sea-water
46sig=5.67e-8        ; Stefan-Boltzman constant (W/m2/K4)
47Ts=(sst+273.15)     ; SST in K
48Ta=(tair+273.15)      ; Tair in K
49q=qair/1000.            ; specific humidity (kg/kg)
50r=q/(1-q)        ; Mixing ratio
51ea=ps*r/(r+.62197)      ; Specific humidity into vapor pressure
52;
53lw=    eps*sig*Ts^4*(.39-.05*ea^.5)*(1.-.51*cld^2) $
54   +4.*eps*sig*Ts^3*(Ts-Ta)
55;
56lwup=eps*sig*Ts^4
57;
58lwdown=lwup-lw
59;
60return, lwdown
61;
62end
Note: See TracBrowser for help on using the repository browser.