1 |
dfer |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/land/land_albedo.F,v 1.1 2004/03/11 14:41:59 jmc Exp $ |
2 |
jmc |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "LAND_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CBOP |
7 |
|
|
C !ROUTINE: LAND_DIAGNOSTICS |
8 |
|
|
C !INTERFACE: |
9 |
|
|
SUBROUTINE LAND_ALBEDO( |
10 |
|
|
I land_frc, grnd_alb, |
11 |
|
|
O alb_land, |
12 |
|
|
I bi,bj, myTime, myIter, myThid ) |
13 |
|
|
|
14 |
|
|
C !DESCRIPTION: \bv |
15 |
|
|
C *==========================================================* |
16 |
|
|
C | S/R LAND_ALBEDO |
17 |
|
|
C | o Calculate snow albedo over land |
18 |
|
|
C *==========================================================* |
19 |
|
|
C \ev |
20 |
|
|
|
21 |
|
|
C !USES: |
22 |
|
|
IMPLICIT NONE |
23 |
|
|
|
24 |
|
|
C == Global variables === |
25 |
|
|
C-- size for MITgcm & Land package : |
26 |
|
|
#include "LAND_SIZE.h" |
27 |
|
|
|
28 |
|
|
#include "EEPARAMS.h" |
29 |
|
|
#include "PARAMS.h" |
30 |
|
|
#include "LAND_PARAMS.h" |
31 |
|
|
#include "LAND_VARS.h" |
32 |
|
|
|
33 |
|
|
C !INPUT/OUTPUT PARAMETERS: |
34 |
|
|
C == Routine arguments == |
35 |
|
|
C land_frc :: land fraction [0-1] |
36 |
|
|
C grnd_alb :: ground albedo [0-1] |
37 |
|
|
C alb_land :: albedo of land (including snow effect) [0-1] |
38 |
|
|
C bi,bj :: Tile index |
39 |
|
|
C myTime :: Current time of simulation ( s ) |
40 |
|
|
C myIter :: Current iteration number in simulation |
41 |
|
|
C myThid :: Number of this instance of the routine |
42 |
|
|
_RS land_frc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
43 |
|
|
_RS grnd_alb(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
44 |
|
|
_RL alb_land(sNx,sNy) |
45 |
|
|
INTEGER bi, bj, myIter, myThid |
46 |
|
|
_RL myTime |
47 |
|
|
CEOP |
48 |
|
|
|
49 |
|
|
#ifdef ALLOW_LAND |
50 |
|
|
|
51 |
|
|
C == Local Variables == |
52 |
|
|
C i,j :: Loop counters |
53 |
|
|
C albSnow :: albedo of snow |
54 |
|
|
C ageSnow :: age of snow [days] |
55 |
|
|
INTEGER i,j |
56 |
|
|
_RL albSnow, ageSnow, hSnow, Tsf |
57 |
|
|
|
58 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
59 |
|
|
C- Compute albedo of snow and then albedo of land. |
60 |
|
|
|
61 |
|
|
DO j=1,sNy |
62 |
|
|
DO i=1,sNx |
63 |
|
|
alb_land(i,j) = grnd_alb(i,j,bi,bj) |
64 |
|
|
IF ( land_frc(i,j,bi,bj).GT.0. ) THEN |
65 |
|
|
Tsf = land_skinT(i,j,bi,bj) |
66 |
|
|
C snow age (units = days): |
67 |
|
|
ageSnow = land_snowAge(i,j,bi,bj)/86400. _d 0 |
68 |
|
|
hSnow = land_hSnow(i,j,bi,bj) |
69 |
|
|
|
70 |
|
|
C-------------------------------------------- |
71 |
|
|
C--- taken from thsice/thsice_albedo.F : |
72 |
dfer |
1.2 |
C- New snow: (linear) transition between tempSnowAlbL (oC) and 0.oC |
73 |
jmc |
1.1 |
C from cold/dry snow albedo to warm/wet snow albedo |
74 |
dfer |
1.2 |
IF ( tempSnowAlbL.LT.0. _d 0 ) THEN |
75 |
|
|
albSnow = albColdSnow |
76 |
|
|
& + (albWarmSnow - albColdSnow) |
77 |
|
|
& *MAX( 0. _d 0, MIN(1. _d 0 - Tsf/tempSnowAlbL, 1. _d 0) ) |
78 |
|
|
ELSE |
79 |
|
|
albSnow = albColdSnow |
80 |
|
|
ENDIF |
81 |
jmc |
1.1 |
C- albedo of snow is function of snow-age |
82 |
|
|
albSnow = albOldSnow |
83 |
|
|
& +(albSnow-albOldSnow)*exp(-0.2 _d 0*ageSnow) |
84 |
|
|
|
85 |
|
|
C- layer of snow over the ground: |
86 |
|
|
alb_land(i,j) = albSnow |
87 |
|
|
& +(alb_land(i,j)-albSnow)*exp(-hSnow/hAlbSnow) |
88 |
|
|
C-------------------------------------------- |
89 |
|
|
ENDIF |
90 |
|
|
ENDDO |
91 |
|
|
ENDDO |
92 |
|
|
|
93 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
94 |
|
|
|
95 |
|
|
#endif /* ALLOW_LAND */ |
96 |
|
|
|
97 |
|
|
RETURN |
98 |
|
|
END |