1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | |
---|
5 | IF (ok_hf) THEN |
---|
6 | c |
---|
7 | zout = dtime * REAL(NINT(86400./dtime*ecrit_hf)) |
---|
8 | zsto = zout |
---|
9 | zsto1 = dtime |
---|
10 | PRINT*, 'La frequence de sortie instant. est de ', ecrit_hf |
---|
11 | c |
---|
12 | idayref = day_ref |
---|
13 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
14 | |
---|
15 | c |
---|
16 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
17 | cym DO i = 1, iim |
---|
18 | cym zx_lon(i,1) = rlon(i+1) |
---|
19 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
20 | cym ENDDO |
---|
21 | |
---|
22 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
23 | |
---|
24 | cccIM CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat, |
---|
25 | cym CALL histbeg("histhf", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
26 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
27 | cym . nhori, nid_hf) |
---|
28 | |
---|
29 | CALL histbeg_phy("histhf", itau_phy, zjulian, dtime, |
---|
30 | . nhori, nid_hf) |
---|
31 | |
---|
32 | CALL histvert(nid_hf, "presnivs", "Vertical levels", "mb", |
---|
33 | . klev, presnivs, nvert) |
---|
34 | c |
---|
35 | |
---|
36 | IF(lev_histhf.GE.1) THEN |
---|
37 | c |
---|
38 | c CALL histdef(nid_hf, "phis", "Surface geop. height", "-", |
---|
39 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
40 | c . "once", zsto,zout) |
---|
41 | c |
---|
42 | c CALL histdef(nid_hf, "aire", "Grid area", "-", |
---|
43 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
44 | c . "once", zsto,zout) |
---|
45 | c |
---|
46 | CALL histdef(nid_hf, "aireTER","Grid area CONT","-", |
---|
47 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
48 | . "once", zsto,zout) |
---|
49 | c |
---|
50 | CALL histdef(nid_hf, "contfracATM","% sfce ter+lic ","-", |
---|
51 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
52 | . "once", zsto,zout) |
---|
53 | c |
---|
54 | CALL histdef(nid_hf, "contfracOR","% sfce terre OR", "-", |
---|
55 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
56 | . "once", zsto,zout) |
---|
57 | c |
---|
58 | c Champs 2D: |
---|
59 | c |
---|
60 | CALL histdef(nid_hf, "t2m", "Temperature 2m", "K", |
---|
61 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
62 | . "inst(X)", zsto,zout) |
---|
63 | c |
---|
64 | CALL histdef(nid_hf, "q2m", "Specific humidity", "kg/kg", |
---|
65 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
66 | . "inst(X)", zsto,zout) |
---|
67 | c |
---|
68 | CALL histdef(nid_hf, "psol", "Surface Pressure", "Pa", |
---|
69 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
70 | . "inst(X)", zsto,zout) |
---|
71 | c |
---|
72 | print*,'ATTENTION METTRE AVE(X) POUR LES PRECIPS' |
---|
73 | |
---|
74 | CALL histdef(nid_hf, "rain", "Precipitation", "kg/m^2s", |
---|
75 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
76 | . "ave(X)", zsto1,zout) |
---|
77 | c |
---|
78 | cIM ENSEMBLES BEG |
---|
79 | c |
---|
80 | CALL histdef(nid_hf, "tsol", "Surface Temperature", "K", |
---|
81 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
82 | . "inst(X)", zsto,zout) |
---|
83 | c |
---|
84 | CALL histdef(nid_hf, "slp", "Sea Level Pressure", "Pa", |
---|
85 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
86 | . "inst(X)", zsto,zout) |
---|
87 | c |
---|
88 | c |
---|
89 | CALL histdef(nid_hf, "u10m", "Vent zonal 10m", "m/s", |
---|
90 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
91 | . "inst(X)", zsto,zout) |
---|
92 | c |
---|
93 | CALL histdef(nid_hf, "v10m", "Vent meridien 10m", "m/s", |
---|
94 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
95 | . "inst(X)", zsto,zout) |
---|
96 | c |
---|
97 | CALL histdef(nid_hf, "wind10m","10-m wind speed","m/s", |
---|
98 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
99 | . "inst(X)", zsto,zout) |
---|
100 | c |
---|
101 | DO k=1, nlevENS |
---|
102 | IF(clev(k).EQ."500") THEN |
---|
103 | CALL histdef(nid_hf, "phi"//clev(k), |
---|
104 | . "Geopotential"//clev(k)//"mb", "m2/s2", |
---|
105 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
106 | . "inst(X)", zsto,zout) |
---|
107 | ENDIF !clev(k).EQ."500" |
---|
108 | ENDDO !k=1, nlevENS |
---|
109 | c |
---|
110 | ENDIF !lev_histhf.GE.1 |
---|
111 | c |
---|
112 | IF(lev_histhf.GE.2) THEN |
---|
113 | c |
---|
114 | CALL histdef(nid_hf, "cldt", "Total cloudiness", "-", |
---|
115 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
116 | . "ave(X)", zsto1,zout) |
---|
117 | c |
---|
118 | c -- LOOP |
---|
119 | CALL histdef(nid_hf, "SWdownOR", |
---|
120 | . "Sfce incident SW down radiation OR", "W/m^2", |
---|
121 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
122 | . "ave(X)", zsto1,zout) |
---|
123 | c |
---|
124 | CALL histdef(nid_hf, "SWnetOR", |
---|
125 | . "Sfce incident SW net radiation OR", "W/m^2", |
---|
126 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
127 | . "ave(X)", zsto1,zout) |
---|
128 | c -- LOOP |
---|
129 | c |
---|
130 | CALL histdef(nid_hf, "LWdownOR", |
---|
131 | . "Sfce incident LW radiation OR", "W/m^2", |
---|
132 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
133 | . "ave(X)", zsto1,zout) |
---|
134 | ENDIF !lev_histhf.GE.2 |
---|
135 | c |
---|
136 | cIM ENSEMBLES END |
---|
137 | c |
---|
138 | IF(lev_histhf.GE.3) THEN |
---|
139 | c |
---|
140 | DO k=1, nlevENS |
---|
141 | c |
---|
142 | CALL histdef(nid_hf, "t"//clev(k), |
---|
143 | . "Temperature"//clev(k)//"mb","K", |
---|
144 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
145 | . "inst(X)", zsto,zout) |
---|
146 | c |
---|
147 | IF(clev(k).NE."500") THEN |
---|
148 | CALL histdef(nid_hf, "phi"//clev(k), |
---|
149 | . "Geopotential"//clev(k)//"mb", "m2/s2", |
---|
150 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
151 | . "inst(X)", zsto,zout) |
---|
152 | ENDIF |
---|
153 | c |
---|
154 | CALL histdef(nid_hf, "q"//clev(k), |
---|
155 | . "Specific humidity"//clev(k)//"mb","kg/kg", |
---|
156 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
157 | . "inst(X)", zsto,zout) |
---|
158 | c |
---|
159 | IF(1.EQ.0) THEN |
---|
160 | CALL histdef(nid_hf, "rh"//clev(k), |
---|
161 | . "Relative humidity"//clev(k)//"mb", "%", |
---|
162 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
163 | . "inst(X)", zsto,zout) |
---|
164 | ENDIF |
---|
165 | c |
---|
166 | CALL histdef(nid_hf, "u"//clev(k), |
---|
167 | . "Zonal wind"//clev(k)//"mb","m/s", |
---|
168 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
169 | . "inst(X)", zsto,zout) |
---|
170 | c |
---|
171 | CALL histdef(nid_hf, "v"//clev(k), |
---|
172 | . "Meridional wind"//clev(k)//"mb","m/s", |
---|
173 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
174 | . "inst(X)", zsto,zout) |
---|
175 | c |
---|
176 | ENDDO !nlevENS |
---|
177 | IF(1.EQ.0) THEN |
---|
178 | CALL histdef(nid_hf, "cdrm", " Momentum drag coef.", "-", |
---|
179 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
180 | . "inst(X)", zsto,zout) |
---|
181 | c |
---|
182 | CALL histdef(nid_hf, "cdrh", "Heat drag coef.", "-", |
---|
183 | . iim,jjphy_nb,nhori, 1,1,1, -99, 32, |
---|
184 | . "inst(X)", zsto,zout) |
---|
185 | ENDIF !(1.EQ.0) THEN |
---|
186 | c |
---|
187 | ENDIF !lev_histhf.GE.3 |
---|
188 | c |
---|
189 | IF(lev_histhf.GE.4) THEN |
---|
190 | #define histhf3d |
---|
191 | #ifdef histhf3d |
---|
192 | #include "ini_histhf3d.h" |
---|
193 | #endif |
---|
194 | ENDIF !lev_histhf.GE.4 |
---|
195 | c |
---|
196 | c#define histhf3d |
---|
197 | c#ifdef histhf3d |
---|
198 | c#include "ini_histhf3d.h" |
---|
199 | c#endif |
---|
200 | c |
---|
201 | CALL histend(nid_hf) |
---|
202 | c |
---|
203 | endif ! ok_hf |
---|