1 | IF (ok_instan) THEN |
---|
2 | |
---|
3 | zsto = dtime * REAL(ecrit_ins) |
---|
4 | zout = dtime * REAL(ecrit_ins) |
---|
5 | |
---|
6 | idayref = day_ref |
---|
7 | CALL ymds2ju(annee_ref, 1, idayref, zero, zjulian) |
---|
8 | |
---|
9 | CALL histbeg_phy("histins.nc", itau_phy, zjulian, dtime, |
---|
10 | . nhori, nid_ins) |
---|
11 | |
---|
12 | !$OMP MASTER |
---|
13 | CALL histvert(nid_ins, "presnivs", "Vertical levels", "Pa", |
---|
14 | . klev, presnivs, nvert) |
---|
15 | |
---|
16 | c------------------------------------------------------- |
---|
17 | |
---|
18 | IF(lev_histday.GE.1) THEN |
---|
19 | |
---|
20 | ccccccccccccc 2D fields, invariables |
---|
21 | |
---|
22 | CALL histdef(nid_ins, "phis", "Surface geop. height", "-", |
---|
23 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
24 | . "once", zsto,zout) |
---|
25 | |
---|
26 | CALL histdef(nid_ins, "aire", "Grid area", "-", |
---|
27 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
28 | . "once", zsto,zout) |
---|
29 | |
---|
30 | ccccccc axe Ls |
---|
31 | CALL histdef(nid_ins, "ls", "Solar longitude", "degrees", |
---|
32 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
33 | . "inst(X)", zsto,zout) |
---|
34 | |
---|
35 | ccccccccccccc 2D fields, variables |
---|
36 | |
---|
37 | CALL histdef(nid_ins, "tsol", "Surface Temperature", "K", |
---|
38 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
39 | . "inst(X)", zsto,zout) |
---|
40 | |
---|
41 | CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa", |
---|
42 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
43 | . "inst(X)", zsto,zout) |
---|
44 | |
---|
45 | c CALL histdef(nid_ins, "ue", "Zonal energy transport", "-", |
---|
46 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
47 | c . "inst(X)", zsto,zout) |
---|
48 | |
---|
49 | c CALL histdef(nid_ins, "ve", "Merid energy transport", "-", |
---|
50 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
51 | c . "inst(X)", zsto,zout) |
---|
52 | |
---|
53 | ENDIF !lev_histday.GE.1 |
---|
54 | |
---|
55 | c------------------------------------------------------- |
---|
56 | IF(lev_histday.GE.2) THEN |
---|
57 | |
---|
58 | ccccccccccccc 3D fields, basics |
---|
59 | |
---|
60 | CALL histdef(nid_ins, "temp", "Air temperature", "K", |
---|
61 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
62 | . "inst(X)", zsto,zout) |
---|
63 | |
---|
64 | CALL histdef(nid_ins, "pres", "Air pressure", "Pa", |
---|
65 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
66 | . "inst(X)", zsto,zout) |
---|
67 | |
---|
68 | CALL histdef(nid_ins, "geop", "Geopotential height", "m", |
---|
69 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
70 | . "inst(X)", zsto,zout) |
---|
71 | |
---|
72 | CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s", |
---|
73 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
74 | . "inst(X)", zsto,zout) |
---|
75 | |
---|
76 | CALL histdef(nid_ins, "vitv", "Meridional wind", "m/s", |
---|
77 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
78 | . "inst(X)", zsto,zout) |
---|
79 | |
---|
80 | CALL histdef(nid_ins, "vitw", "Vertical wind", "Pa/s", |
---|
81 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
82 | . "inst(X)", zsto,zout) |
---|
83 | |
---|
84 | CALL histdef(nid_ins, "tops", "Solar rad. at TOA", "W/m2", |
---|
85 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
86 | . "inst(X)", zsto,zout) |
---|
87 | |
---|
88 | c CALL histdef(nid_ins, "duvdf", "Boundary-layer dU", "m/s2", |
---|
89 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
90 | c . "inst(X)", zsto,zout) |
---|
91 | |
---|
92 | c CALL histdef(nid_ins, "dudyn", "Dynamics dU", "m/s2", |
---|
93 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
94 | c . "inst(X)", zsto,zout) |
---|
95 | |
---|
96 | ENDIF !lev_histday.GE.2 |
---|
97 | |
---|
98 | c------------------------------------------------------- |
---|
99 | IF(lev_histday.GE.3) THEN |
---|
100 | |
---|
101 | cccccccccccccccccc Tracers |
---|
102 | |
---|
103 | if (iflag_trac.eq.1) THEN |
---|
104 | if (microfi.ge.1) then |
---|
105 | DO iq=1,nmicro |
---|
106 | CALL histdef(nid_ins, tname(iq), ttext(iq), "n/m2", |
---|
107 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
108 | . "inst(X)", zsto,zout) |
---|
109 | ENDDO |
---|
110 | endif |
---|
111 | if (nmicro.lt.nqmax) then |
---|
112 | DO iq=nmicro+1,nqmax |
---|
113 | CALL histdef(nid_ins, tname(iq), ttext(iq), "ppm", |
---|
114 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
115 | . "inst(X)", zsto,zout) |
---|
116 | ENDDO |
---|
117 | endif |
---|
118 | endif |
---|
119 | |
---|
120 | cccccccccccccccccc Radiative transfer |
---|
121 | |
---|
122 | c 2D |
---|
123 | |
---|
124 | CALL histdef(nid_ins, "topl", "IR rad. at TOA", "W/m2", |
---|
125 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
126 | . "inst(X)", zsto,zout) |
---|
127 | |
---|
128 | CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2", |
---|
129 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
130 | . "inst(X)", zsto,zout) |
---|
131 | |
---|
132 | CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2", |
---|
133 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
134 | . "inst(X)", zsto,zout) |
---|
135 | |
---|
136 | c 3D |
---|
137 | |
---|
138 | CALL histdef(nid_ins, "SWnet", "Net SW flux","W/m2", |
---|
139 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
140 | . 32, "inst(X)", zsto,zout) |
---|
141 | |
---|
142 | CALL histdef(nid_ins, "LWnet", "Net LW flux","W/m2", |
---|
143 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
144 | . 32, "inst(X)", zsto,zout) |
---|
145 | |
---|
146 | c -------------- |
---|
147 | c ----- OPACITE BRUME |
---|
148 | DO k=7,NSPECV,10 |
---|
149 | write(str2,'(i2.2)') k |
---|
150 | CALL histdef(nid_ins,"thv"//str2,"Haze Opa Vis", |
---|
151 | . "--",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
152 | . "ins(X)",zsto,zout) |
---|
153 | ENDDO |
---|
154 | |
---|
155 | DO k=8,NSPECI,10 |
---|
156 | write(str2,'(i2.2)') k |
---|
157 | CALL histdef(nid_ins,"thi"//str2,"Haze Opa IR", |
---|
158 | . "--",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
159 | . "ins(X)",zsto,zout) |
---|
160 | ENDDO |
---|
161 | |
---|
162 | c -------------- |
---|
163 | c ----- EXTINCTION BRUME |
---|
164 | DO k=7,NSPECV,10 |
---|
165 | write(str2,'(i2.2)') k |
---|
166 | CALL histdef(nid_ins,"khv"//str2,"Haze ext Vis ", |
---|
167 | . "m-1",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
168 | . "ins(X)",zsto,zout) |
---|
169 | ENDDO |
---|
170 | |
---|
171 | DO k=8,NSPECI,10 |
---|
172 | write(str2,'(i2.2)') k |
---|
173 | CALL histdef(nid_ins,"khi"//str2,"Haze ext IR ", |
---|
174 | . "m-1",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
175 | . "ins(X)",zsto,zout) |
---|
176 | ENDDO |
---|
177 | |
---|
178 | c -------------- |
---|
179 | c ----- OPACITE GAZ |
---|
180 | DO k=7,NSPECV,10 |
---|
181 | write(str2,'(i2.2)') k |
---|
182 | CALL histdef(nid_ins,"tgv"//str2,"Haze Opa Vis", |
---|
183 | . "--",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
184 | . "ins(X)",zsto,zout) |
---|
185 | ENDDO |
---|
186 | |
---|
187 | DO k=8,NSPECI,10 |
---|
188 | write(str2,'(i2.2)') k |
---|
189 | CALL histdef(nid_ins,"tgi"//str2,"Haze Opa IR", |
---|
190 | . "--",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
191 | . "ins(X)",zsto,zout) |
---|
192 | ENDDO |
---|
193 | |
---|
194 | c -------------- |
---|
195 | c ----- EXTINCTION GAZ |
---|
196 | DO k=7,NSPECV,10 |
---|
197 | write(str2,'(i2.2)') k |
---|
198 | CALL histdef(nid_ins,"kgv"//str2,"Haze ext Vis ", |
---|
199 | . "m-1",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
200 | . "ins(X)",zsto,zout) |
---|
201 | ENDDO |
---|
202 | |
---|
203 | DO k=8,NSPECI,10 |
---|
204 | write(str2,'(i2.2)') k |
---|
205 | CALL histdef(nid_ins,"kgi"//str2,"Haze ext IR ", |
---|
206 | . "m-1",iim,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
207 | . "ins(X)",zsto,zout) |
---|
208 | ENDDO |
---|
209 | |
---|
210 | ENDIF !lev_histday.GE.3 |
---|
211 | |
---|
212 | c------------------------------------------------------- |
---|
213 | IF(lev_histday.GE.4) THEN |
---|
214 | |
---|
215 | CALL histdef(nid_ins, "dtdyn", "Dynamics dT", "K/s", |
---|
216 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
217 | . "inst(X)", zsto,zout) |
---|
218 | |
---|
219 | CALL histdef(nid_ins, "dtphy", "Physics dT", "K/s", |
---|
220 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
221 | . "inst(X)", zsto,zout) |
---|
222 | |
---|
223 | CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s", |
---|
224 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
225 | . "inst(X)", zsto,zout) |
---|
226 | |
---|
227 | CALL histdef(nid_ins, "dtajs", "Dry adjust. dT", "K/s", |
---|
228 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
229 | . "inst(X)", zsto,zout) |
---|
230 | |
---|
231 | CALL histdef(nid_ins, "dtswr", "SW radiation dT", "K/s", |
---|
232 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
233 | . "inst(X)", zsto,zout) |
---|
234 | |
---|
235 | CALL histdef(nid_ins, "dtlwr", "LW radiation dT", "K/s", |
---|
236 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
237 | . "inst(X)", zsto,zout) |
---|
238 | |
---|
239 | c CALL histdef(nid_ins, "dtec", "Cinetic dissip dT", "K/s", |
---|
240 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
241 | c . "inst(X)", zsto,zout) |
---|
242 | |
---|
243 | c CALL histdef(nid_ins, "dvvdf", "Boundary-layer dV", "m/s2", |
---|
244 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
245 | c . "inst(X)", zsto,zout) |
---|
246 | |
---|
247 | ENDIF !lev_histday.GE.4 |
---|
248 | |
---|
249 | c------------------------------------------------------- |
---|
250 | IF(lev_histday.GE.5) THEN |
---|
251 | |
---|
252 | |
---|
253 | c call histdef(nid_ins, "taux", |
---|
254 | c $ "Zonal wind stress", "Pa", |
---|
255 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
256 | c $ "inst(X)", zsto,zout) |
---|
257 | |
---|
258 | c call histdef(nid_ins, "tauy", |
---|
259 | c $ "Meridional xind stress", "Pa", |
---|
260 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
261 | c $ "inst(X)", zsto,zout) |
---|
262 | |
---|
263 | c CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-", |
---|
264 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
265 | c . "inst(X)", zsto,zout) |
---|
266 | |
---|
267 | c CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-", |
---|
268 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
269 | c . "inst(X)", zsto,zout) |
---|
270 | |
---|
271 | ENDIF !lev_histday.GE.5 |
---|
272 | c------------------------------------------------------- |
---|
273 | |
---|
274 | CALL histend(nid_ins) |
---|
275 | |
---|
276 | ENDIF |
---|