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
RevLine 
[89]1;+
[164]2; ================
3; lwdown_clark.pro
4; ================
[89]5;
[164]6; .. function:: lwdown_clark(sst, qair, cld, tair, ps)
7;
[204]8; DESCRIPTION
[164]9; ===========
10;
[89]11; Net longwave from the Clark et al. (1974) bulk formula
[164]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.
[89]17;
[164]18; See also Gill, p34.
19;
[89]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;
[164]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;
[89]43@common
[97]44;
[203]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
[89]49q=qair/1000.            ; specific humidity (kg/kg)
[203]50r=q/(1-q)        ; Mixing ratio
[89]51ea=ps*r/(r+.62197)      ; Specific humidity into vapor pressure
[97]52;
[89]53lw=    eps*sig*Ts^4*(.39-.05*ea^.5)*(1.-.51*cld^2) $
[97]54   +4.*eps*sig*Ts^3*(Ts-Ta)
55;
[89]56lwup=eps*sig*Ts^4
[97]57;
[89]58lwdown=lwup-lw
[97]59;
[89]60return, lwdown
[97]61;
[89]62end
Note: See TracBrowser for help on using the repository browser.