1 | c |
---|
2 | c $Header$ |
---|
3 | c |
---|
4 | cIM 090704 BEG |
---|
5 | c nbapp_isccp=48 |
---|
6 | c nbapp_isccp=8 |
---|
7 | c nbapp_isccp=6 |
---|
8 | c nbapp_isccp=4 !CPU < 30min pour 9pdt/jour |
---|
9 | nbapp_isccp=3 !CPU ?? 10pdt/jour |
---|
10 | c nbapp_isccp=2 |
---|
11 | c nbapp_isccp=1 |
---|
12 | isccppas=NINT(86400./dtime/nbapp_isccp) |
---|
13 | cIM 010904 BEG |
---|
14 | cIM IF (MOD(itap,isccppas).EQ.0) THEN |
---|
15 | c PRINT*,'itap,isccppas,xjour',itap,isccppas,xjour |
---|
16 | c |
---|
17 | cIM initialisation nbsunlit pour calculs simulateur ISCCP pdt la journee |
---|
18 | c |
---|
19 | DO i=1, klon |
---|
20 | sunlit(i)=1 |
---|
21 | IF(rmu0(i).EQ.0.) sunlit(i)=0 |
---|
22 | nbsunlit(1,i)=FLOAT(sunlit(i)) |
---|
23 | ENDDO |
---|
24 | c |
---|
25 | cIM calcul tau, emissivite nuages convectifs |
---|
26 | c |
---|
27 | convfra(:,:)=rnebcon(:,:) |
---|
28 | convliq(:,:)=rnebcon(:,:)*clwcon(:,:) |
---|
29 | cIM Amip2 beg |
---|
30 | c |
---|
31 | CALL newmicro (paprs, pplay,ok_newmicro, |
---|
32 | . t_seri, convliq, convfra, dtau_c, dem_c, |
---|
33 | . cldh_c, cldl_c, cldm_c, cldt_c, cldq_c, |
---|
34 | . flwp_c, fiwp_c, flwc_c, fiwc_c, |
---|
35 | e ok_aie, |
---|
36 | e sulfate, sulfate_pi, |
---|
37 | e bl95_b0, bl95_b1, |
---|
38 | s cldtaupi, re, fl) |
---|
39 | c |
---|
40 | cIM Amip2 end |
---|
41 | |
---|
42 | c |
---|
43 | cIM calcul tau, emissivite nuages startiformes |
---|
44 | c |
---|
45 | cIM Amip2 beg |
---|
46 | c |
---|
47 | CALL newmicro (paprs, pplay,ok_newmicro, |
---|
48 | . t_seri, cldliq, cldfra, dtau_s, dem_s, |
---|
49 | . cldh_s, cldl_s, cldm_s, cldt_s, cldq_s, |
---|
50 | . flwp_s, fiwp_s, flwc_s, fiwc_s, |
---|
51 | e ok_aie, |
---|
52 | e sulfate, sulfate_pi, |
---|
53 | e bl95_b0, bl95_b1, |
---|
54 | s cldtaupi, re, fl) |
---|
55 | c |
---|
56 | cIM Amip2 end |
---|
57 | c |
---|
58 | cldtot(:,:)=min(max(cldfra(:,:),rnebcon(:,:)),1.) |
---|
59 | c |
---|
60 | cIM inversion des niveaux de pression ==> de haut en bas |
---|
61 | c |
---|
62 | CALL haut2bas(klon, klev, pplay, pfull) |
---|
63 | CALL haut2bas(klon, klev, q_seri, qv) |
---|
64 | CALL haut2bas(klon, klev, cldtot, cc) |
---|
65 | CALL haut2bas(klon, klev, rnebcon, conv) |
---|
66 | CALL haut2bas(klon, klev, dtau_s, dtau_sH2B) |
---|
67 | CALL haut2bas(klon, klev, dtau_c, dtau_cH2B) |
---|
68 | CALL haut2bas(klon, klev, t_seri, at) |
---|
69 | CALL haut2bas(klon, klev, dem_s, dem_sH2B) |
---|
70 | CALL haut2bas(klon, klev, dem_c, dem_cH2B) |
---|
71 | CALL haut2bas(klon, klevp1, paprs, phalf) |
---|
72 | c |
---|
73 | cIM lecture invtau, tautab des fichiers formattes |
---|
74 | c |
---|
75 | IF (debut) THEN |
---|
76 | c open(99,file='tautab.bin',access='sequential', |
---|
77 | c $ form='unformatted',status='old') |
---|
78 | c read(99) tautab |
---|
79 | c |
---|
80 | open(99,file='tautab.formatted', FORM='FORMATTED') |
---|
81 | read(99,'(f30.20)') tautab |
---|
82 | close(99) |
---|
83 | c |
---|
84 | open(99,file='invtau.formatted',form='FORMATTED') |
---|
85 | read(99,'(i10)') invtau |
---|
86 | close(99) |
---|
87 | c |
---|
88 | ENDIF !debut |
---|
89 | c |
---|
90 | cIM: initialisation de seed |
---|
91 | c DO i=1, klon |
---|
92 | c seed(i)=i+100 |
---|
93 | c ENDDO |
---|
94 | c |
---|
95 | DO i=1, klon |
---|
96 | c |
---|
97 | aa=ABS(paprs(i,2)-NINT(paprs(i,2))) |
---|
98 | seed_re(i)=1000.*aa+1. |
---|
99 | seed(i)=NINT(seed_re(i)) |
---|
100 | c |
---|
101 | IF(seed(i).LT.50) THEN |
---|
102 | c print*,'seed<50 avant i seed itap paprs',i, |
---|
103 | c . seed(i),itap,paprs(i,2) |
---|
104 | seed(i)=50+seed(i)+i+itap |
---|
105 | seed_old(i)=seed(i) |
---|
106 | c |
---|
107 | IF(itap.GT.1) then |
---|
108 | IF(seed(i).EQ.seed_old(i)) THEN |
---|
109 | seed(i)=seed(i)+10 |
---|
110 | seed_old(i)=seed(i) |
---|
111 | ENDIF |
---|
112 | ENDIF |
---|
113 | c |
---|
114 | c print*,'seed<50 apres i seed itap paprs',i, |
---|
115 | c . seed(i),itap,paprs(i,2) |
---|
116 | c |
---|
117 | ELSE IF(seed(i).EQ.0) THEN |
---|
118 | print*,'seed=0 i paprs aa seed_re', |
---|
119 | . i,paprs(i,2),aa,seed_re(i) |
---|
120 | STOP |
---|
121 | ELSE IF(seed(i).LT.0) THEN |
---|
122 | print*,'seed < 0, i seed itap paprs',i, |
---|
123 | . seed(i),itap,paprs(i,2) |
---|
124 | STOP |
---|
125 | ENDIF |
---|
126 | c |
---|
127 | ENDDO |
---|
128 | c |
---|
129 | cIM: pas de debug, debugcol |
---|
130 | debug=0 |
---|
131 | debugcol=0 |
---|
132 | c |
---|
133 | cIM recalcule les nuages vus par satellite, via le simulateur ISCCP |
---|
134 | c |
---|
135 | CALL ISCCP_CLOUD_TYPES( |
---|
136 | & debug, |
---|
137 | & debugcol, |
---|
138 | cIM 300704 & itap, debut, |
---|
139 | cIM 300604 klon !BAD |
---|
140 | & klon, |
---|
141 | & sunlit, |
---|
142 | & klev, |
---|
143 | & ncol, |
---|
144 | & seed, |
---|
145 | & pfull, |
---|
146 | & phalf, |
---|
147 | & qv, cc, conv, dtau_sH2B, dtau_cH2B, |
---|
148 | & top_height, |
---|
149 | & overlap, |
---|
150 | & tautab, |
---|
151 | & invtau, |
---|
152 | & ztsol, |
---|
153 | & emsfc_lw, |
---|
154 | & at, dem_sH2B, dem_cH2B, |
---|
155 | & fq_isccp, |
---|
156 | & totalcldarea, |
---|
157 | & meanptop, |
---|
158 | & meantaucld, |
---|
159 | & boxtau, |
---|
160 | & boxptop) |
---|
161 | c |
---|
162 | cIM ENDIF !(MOD(itaprad,radpas).EQ.0) THEN |
---|
163 | cIM 010904 END |
---|