source: LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histins.h @ 759

Last change on this file since 759 was 740, checked in by lmdzadmin, 18 years ago

Correction bogues: les ecrit_ sont des REALs lus dans conf_phys.F90 en
nombre de jours sauf pour ecrit_ins et ecrit_tra en secondes!
Les ecrit_ sont initialises dans conf_phys.F90 et peuvent etre modifies dans
physiq.def.
IM

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