source: LMDZ4/branches/V3_test/libf/phylmd/ini_histins.h @ 715

Last change on this file since 715 was 704, checked in by Laurent Fairhead, 18 years ago

Inclusion des modifs de Y. Meurdesoif pour la version V3
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.1 KB
Line 
1!
2! $Header$
3!
4      IF (ok_instan) THEN
5c
6          zsto = ecrit_ins
7          zout = ecrit_ins
8c
9         idayref = day_ref
10         CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
11c
12cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
13cym         DO i = 1, iim
14cym            zx_lon(i,1) = rlon(i+1)
15cym            zx_lon(i,jjmp1) = rlon(i+1)
16cym         ENDDO
17         DO ll=1,klev
18            znivsig(ll)=float(ll)
19         ENDDO
20cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
21cym         CALL histbeg("histins", iim,zx_lon(:,1), jjmp1,zx_lat(1,:),
22cym     .                 1,iim,1,jjmp1, itau_phy, zjulian, dtime,
23cym     .                 nhori, nid_ins)
24         CALL histbeg_phy("histins", itau_phy, zjulian, dtime,
25     .                 nhori, nid_ins)
26         write(*,*)'Inst ', itau_phy, zjulian
27         CALL histvert(nid_ins, "presnivs", "Vertical levels", "mb",
28cIM    .                 klev, presnivs, nvert)
29     .                 klev, presnivs/100., nvert)
30c        call histvert(nid_ins, 'sig_s', 'Niveaux sigma','-',
31c    .              klev, znivsig, nvert)
32c
33c
34         CALL histdef(nid_ins, "phis", "Surface geop. height", "-",
35     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
36     .                "once", zsto,zout)
37c
38         CALL histdef(nid_ins, "aire", "Grid area", "-",
39     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
40     .                "once", zsto,zout)
41c
42c Champs 2D:
43c
44        CALL histdef(nid_ins, "tsol", "Surface Temperature", "K",
45     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
46     .                "inst(X)", zsto,zout)
47c
48         CALL histdef(nid_ins, "t2m", "Temperature 2m", "K",
49     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
50     .                "inst(X)", zsto,zout)
51c
52         CALL histdef(nid_ins, "q2m", "Specific humidity 2m", "Kg/Kg",
53     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
54     .                "inst(X)", zsto,zout)
55c
56         CALL histdef(nid_ins, "u10m", "Vent zonal 10m", "m/s",
57     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
58     .                "inst(X)", zsto,zout)
59c
60         CALL histdef(nid_ins, "v10m", "Vent meridien 10m", "m/s",
61     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
62     .                "inst(X)", zsto,zout)
63c
64        CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa",
65     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
66     .                "inst(X)", zsto,zout)
67c
68         CALL histdef(nid_ins, "plul", "Large-scale Precip.", "mm/day",
69     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
70     .                "inst(X)", zsto,zout)
71c
72         CALL histdef(nid_ins, "pluc", "Convective Precip.", "mm/day",
73     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
74     .                "inst(X)", zsto,zout)
75c
76         CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-",
77     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
78     .                "inst(X)", zsto,zout)
79c
80         CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-",
81     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
82     .                "inst(X)", zsto,zout)
83c
84         CALL histdef(nid_ins, "precip", "Precipitation Totale liq+sol", 
85     .                "kg/(s*m2)",
86     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
87     .                "inst(X)", zsto,zout)
88c
89         CALL histdef(nid_ins, "snow", "Snow fall", "kg/(s*m2)",
90     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
91     .                "inst(X)", zsto,zout)
92c
93c        CALL histdef(nid_ins, "snow_mass", "Snow Mass", "kg/m2",
94c    .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
95c    .                "inst(X)", zsto,zout)
96c
97         CALL histdef(nid_ins, "topl", "OLR", "W/m2",
98     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
99     .                "inst(X)", zsto,zout)
100c
101         CALL histdef(nid_ins, "evap", "Evaporation", "kg/(s*m2)",
102     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
103     .                "inst(X)", zsto,zout)
104c
105         CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2",
106     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
107     .                "inst(X)", zsto,zout)
108c
109         CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2",
110     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
111     .                "inst(X)", zsto,zout)
112c
113         CALL histdef(nid_ins, "solldown", "Down. IR rad. at surface", 
114     .                "W/m2", iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
115     .                "inst(X)", zsto,zout)
116c
117         CALL histdef(nid_ins, "bils", "Surf. total heat flux", "W/m2",
118     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
119     .                "inst(X)", zsto,zout)
120c
121         CALL histdef(nid_ins, "sens", "Sensible heat flux", "W/m2",
122     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
123     .                "inst(X)", zsto,zout)
124c
125         CALL histdef(nid_ins, "fder", "Heat flux derivation", "W/m2",
126     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
127     .                "inst(X)", zsto,zout)
128c
129      CALL histdef(nid_ins, "dtsvdfo", "Boundary-layer dTs(o)", "K/s",
130     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
131     .                "inst(X)", zsto,zout)
132c
133      CALL histdef(nid_ins, "dtsvdft", "Boundary-layer dTs(t)", "K/s",
134     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
135     .                "inst(X)", zsto,zout)
136c
137      CALL histdef(nid_ins, "dtsvdfg", "Boundary-layer dTs(g)", "K/s",
138     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
139     .                "inst(X)", zsto,zout)
140c
141      CALL histdef(nid_ins, "dtsvdfi", "Boundary-layer dTs(g)", "K/s",
142     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
143     .                "inst(X)", zsto,zout)
144
145         DO nsrf = 1, nbsrf
146C
147           call histdef(nid_ins, "pourc_"//clnsurf(nsrf),
148     $         "% "//clnsurf(nsrf), "%", 
149     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
150     $         "inst(X)", zsto,zout)
151
152           call histdef(nid_ins, "fract_"//clnsurf(nsrf),
153     $         "Fraction "//clnsurf(nsrf), "1", 
154     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
155     $         "inst(X)", zsto,zout)
156
157           call histdef(nid_ins, "sens_"//clnsurf(nsrf),
158     $         "Sensible heat flux "//clnsurf(nsrf), "W/m2", 
159     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
160     $         "inst(X)", zsto,zout)
161c
162           call histdef(nid_ins, "tsol_"//clnsurf(nsrf),
163     $         "Surface Temperature"//clnsurf(nsrf), "W/m2", 
164     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
165     $         "inst(X)", zsto,zout)
166c
167           call histdef(nid_ins, "lat_"//clnsurf(nsrf),
168     $         "Latent heat flux "//clnsurf(nsrf), "W/m2", 
169     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
170     $         "inst(X)", zsto,zout)
171C
172           call histdef(nid_ins, "taux_"//clnsurf(nsrf),
173     $         "Zonal wind stress"//clnsurf(nsrf),"Pa",
174     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
175     $         "inst(X)", zsto,zout)
176
177           call histdef(nid_ins, "tauy_"//clnsurf(nsrf),
178     $         "Meridional xind stress "//clnsurf(nsrf), "Pa", 
179     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
180     $         "inst(X)", zsto,zout)
181c
182           call histdef(nid_ins, "albe_"//clnsurf(nsrf),
183     $         "Albedo "//clnsurf(nsrf), "-", 
184     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
185     $         "inst(X)", zsto,zout)
186c
187           call histdef(nid_ins, "rugs_"//clnsurf(nsrf),
188     $         "rugosite "//clnsurf(nsrf), "-", 
189     $         iim,jjphy_nb,nhori, 1,1,1, -99, 32,
190     $         "inst(X)", zsto,zout)
191CXXX
192         END DO
193         CALL histdef(nid_ins, "rugs", "rugosity", "-",
194     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
195     .                "inst(X)", zsto,zout)
196
197c
198         CALL histdef(nid_ins, "albs", "Surface albedo", "-",
199     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
200     .                "inst(X)", zsto,zout)
201         CALL histdef(nid_ins, "albslw", "Surface albedo LW", "-",
202     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
203     .                "inst(X)", zsto,zout)
204c
205c
206cIM cf. AM 081204 BEG
207c HBTM2
208         CALL histdef(nid_ins, "s_pblh", "Boundary Layer Height", "m",
209     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
210     .                "inst(X)", zsto,zout)
211c
212         CALL histdef(nid_ins, "s_pblt", "T at Boundary Layer Height", 
213     .                "K",
214     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
215     .                "inst(X)", zsto,zout)
216c
217         CALL histdef(nid_ins, "s_lcl", "Condensation level", "m",
218     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
219     .                "inst(X)", zsto,zout)
220c
221         CALL histdef(nid_ins, "s_capCL", "Conv avlbl pot ener for
222     .                ABL", "J/m2",
223     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
224     .                "inst(X)", zsto,zout)
225c
226         CALL histdef(nid_ins, "s_oliqCL", "Liq Water in BL", "kg/m2",
227     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
228     .                "inst(X)", zsto,zout)
229c
230         CALL histdef(nid_ins, "s_cteiCL", "Instability criteria
231     .                (ABL)", "K",
232     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
233     .                "inst(X)", zsto,zout)
234c
235         CALL histdef(nid_ins, "s_therm", "Exces du thermique", "K",
236     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
237     .                "inst(X)", zsto,zout)
238c
239         CALL histdef(nid_ins, "s_trmb1", "deep_cape(HBTM2)", "J/m2",
240     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
241     .                "inst(X)", zsto,zout)
242c
243         CALL histdef(nid_ins, "s_trmb2", "inhibition (HBTM2)", "J/m2",
244     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
245     .                "inst(X)", zsto,zout)
246c
247         CALL histdef(nid_ins, "s_trmb3", "Point Omega (HBTM2)", "m",
248     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
249     .                "inst(X)", zsto,zout)
250c
251cIM cf. AM 081204 END
252c
253c Champs 3D:
254c
255         CALL histdef(nid_ins, "temp", "Temperature", "K",
256     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
257     .                "inst(X)", zsto,zout)
258c
259         CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s",
260     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
261     .                "inst(X)", zsto,zout)
262c
263         CALL histdef(nid_ins, "vitv", "Merid wind", "m/s",
264     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
265     .                "inst(X)", zsto,zout)
266c
267         CALL histdef(nid_ins, "geop", "Geopotential height", "m",
268     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
269     .                "inst(X)", zsto,zout)
270c
271         CALL histdef(nid_ins, "pres", "Air pressure", "Pa",
272     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
273     .                "inst(X)", zsto,zout)
274c
275         CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s",
276     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
277     .                "inst(X)", zsto,zout)
278c
279         CALL histdef(nid_ins, "dqvdf", "Boundary-layer dQ", "Kg/Kg/s",
280     .                iim,jjphy_nb,nhori, klev,1,klev,nvert, 32,
281     .                "inst(X)", zsto,zout)
282c
283
284         CALL histend(nid_ins)
285c
286         ndex2d = 0
287         ndex3d = 0
288c
289      ENDIF
Note: See TracBrowser for help on using the repository browser.