1 | SUBROUTINE surfini(ngrid,nq,qsurf,albedo,albedo_bareground) |
---|
2 | |
---|
3 | USE surfdat_h, only: albedodat |
---|
4 | use planetwide_mod, only: planetwide_maxval, planetwide_minval |
---|
5 | use radinc_h, only : L_NSPECTV |
---|
6 | |
---|
7 | IMPLICIT NONE |
---|
8 | |
---|
9 | |
---|
10 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
11 | cccccccccccccc cccccccccccccc |
---|
12 | cccccccccccccc Spectral Albedo Initialisation - Routine modified by MT2015. cccccccccccccc |
---|
13 | cccccccccccccc cccccccccccccc |
---|
14 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
15 | |
---|
16 | |
---|
17 | c-------------------- |
---|
18 | c Declarations: |
---|
19 | c-------------------- |
---|
20 | |
---|
21 | INTEGER,INTENT(IN) :: ngrid |
---|
22 | INTEGER,INTENT(IN) :: nq |
---|
23 | REAL,INTENT(OUT) :: albedo(ngrid,L_NSPECTV) |
---|
24 | REAL,INTENT(OUT) :: albedo_bareground(ngrid) |
---|
25 | REAL,INTENT(IN) :: qsurf(ngrid,nq) ! tracer on surface (kg/m2) |
---|
26 | |
---|
27 | INTEGER :: ig,nw |
---|
28 | REAL :: min_albedo,max_albedo |
---|
29 | |
---|
30 | c======================================================================= |
---|
31 | |
---|
32 | ! We get the bare ground albedo from the start files. |
---|
33 | DO ig=1,ngrid |
---|
34 | albedo_bareground(ig)=albedodat(ig) |
---|
35 | DO nw=1,L_NSPECTV |
---|
36 | albedo(ig,nw)=albedo_bareground(ig) |
---|
37 | ENDDO |
---|
38 | ENDDO |
---|
39 | call planetwide_minval(albedo_bareground,min_albedo) |
---|
40 | call planetwide_maxval(albedo_bareground,max_albedo) |
---|
41 | write(*,*) 'surfini: minimum bare ground albedo',min_albedo |
---|
42 | write(*,*) 'surfini: maximum bare ground albedo',max_albedo |
---|
43 | |
---|
44 | |
---|
45 | call planetwide_minval(albedo,min_albedo) |
---|
46 | call planetwide_maxval(albedo,max_albedo) |
---|
47 | write(*,*) 'surfini: minimum corrected initial albedo',min_albedo |
---|
48 | write(*,*) 'surfini: maximum corrected initial albedo',max_albedo |
---|
49 | |
---|
50 | |
---|
51 | END |
---|