-
Notifications
You must be signed in to change notification settings - Fork 3
/
albedo.f
61 lines (47 loc) · 1.96 KB
/
albedo.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
subroutine albedo
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine calculates albedo in the HRU for the day
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ihru |none |HRU number
!! laiday(:) |m**2/m**2 |leaf area index
!! sno_hru(:) |mm H2O |amount of water in snow in HRU on current day
!! sol_alb(:) |none |albedo when soil is moist
!! sol_cov(:) |kg/ha |amount of residue on soil surface
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! albday |none |albedo of ground for day
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ LOCAL DEFINITIONS ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! cej |none |constant
!! eaj |none |soil cover index
!! j |none |HRU number
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ SUBROUTINES/FUNCTIONS CALLED ~ ~ ~
!! Intrinsic: Exp
!! ~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
use parm
integer :: j
real :: cej, eaj
j = 0
j = ihru
!! calculate albedo
cej = -5.e-5
eaj = 0.
eaj = Exp(cej * (sol_cov(j) + .1)) !! equation 2.2.16 in SWAT manual
if (sno_hru(j) <= .5) then
!! equation 2.2.14 in SWAT manual
albday = sol_alb(j)
!! equation 2.2.15 in SWAT manual
if (laiday(j) > 0.) albday = .23 * (1. - eaj) + sol_alb(j) * eaj
else
!! equation 2.2.13 in SWAT manual
albday = 0.8
end if
return
end