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