source: LMDZ.3.3/branches/rel-LF/libf/phylmd/ini_histins.h @ 506

Last change on this file since 506 was 506, checked in by lmdzadmin, 20 years ago

IM: ajout lev_hist(hf,day,mth) niveaux output definis dans physiq.def et

variables ENSEMBLES + rearrangement

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.1 KB
Line 
1      IF (ok_instan) THEN
2c
3        IF(region.EQ.'3d') THEN
4          zsto = dtime * ecrit_ins
5          zout = dtime * ecrit_ins
6        ELSEIF(REGION.eq.'1d') THEN
7         zsto = dtime
8c        zout = dtime
9         zout = dtime *4.
10        ENDIF
11c
12         idayref = day_ref
13         CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
14c
15         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
16         DO i = 1, iim
17            zx_lon(i,1) = rlon(i+1)
18            zx_lon(i,jjmp1) = rlon(i+1)
19         ENDDO
20         DO ll=1,klev
21            znivsig(ll)=float(ll)
22         ENDDO
23         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
24         CALL histbeg("histins", iim,zx_lon(:,1), jjmp1,zx_lat(1,:),
25c071103
26c    .                 1,iim,1,jjmp1, 
27     .                 imin_debut,nbpti,
28     .                 jmin_debut,nbptj,
29c071103
30     .                 itau_phy, zjulian, dtime,
31     .                 nhori, nid_ins)
32         write(*,*)'Inst ', itau_phy, zjulian
33         CALL histvert(nid_ins, "presnivs", "Vertical levels", "mb",
34     .                 klev, presnivs, nvert)
35c        call histvert(nid_ins, 'sig_s', 'Niveaux sigma','-',
36c    .              klev, znivsig, nvert)
37c
38c
39         CALL histdef(nid_ins, "phis", "Surface geop. height", "-",
40     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
41     .                "once", zsto,zout)
42c
43         CALL histdef(nid_ins, "aire", "Grid area", "-",
44     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
45     .                "once", zsto,zout)
46c
47c Champs 2D:
48c
49        CALL histdef(nid_ins, "tsol", "Surface Temperature", "K",
50     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
51     .                "inst(X)", zsto,zout)
52c
53         CALL histdef(nid_ins, "t2m", "Temperature 2m", "K",
54     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
55     .                "inst(X)", zsto,zout)
56c
57         CALL histdef(nid_ins, "q2m", "Specific humidity 2m", "Kg/Kg",
58     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
59     .                "inst(X)", zsto,zout)
60c
61         CALL histdef(nid_ins, "u10m", "Vent zonal 10m", "m/s",
62     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
63     .                "inst(X)", zsto,zout)
64c
65         CALL histdef(nid_ins, "v10m", "Vent meridien 10m", "m/s",
66     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
67     .                "inst(X)", zsto,zout)
68c
69        CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa",
70     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
71     .                "inst(X)", zsto,zout)
72c
73         CALL histdef(nid_ins, "plul", "Large-scale Precip.", "mm/day",
74     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
75     .                "inst(X)", zsto,zout)
76c
77         CALL histdef(nid_ins, "pluc", "Convective Precip.", "mm/day",
78     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
79     .                "inst(X)", zsto,zout)
80c
81         CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-",
82     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
83     .                "inst(X)", zsto,zout)
84c
85         CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-",
86     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
87     .                "inst(X)", zsto,zout)
88c
89         CALL histdef(nid_ins, "precip", "Precipitation Totale liq+sol", 
90     .                "kg/(s*m2)",
91     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
92     .                "inst(X)", zsto,zout)
93c
94         CALL histdef(nid_ins, "snow", "Snow fall", "kg/(s*m2)",
95     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
96     .                "inst(X)", zsto,zout)
97c
98         CALL histdef(nid_ins, "snow_mass", "Snow Mass", "kg/m2",
99     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
100     .                "inst(X)", zsto,zout)
101c
102         CALL histdef(nid_ins, "topl", "OLR", "W/m2",
103     .                iim,jjmp1,nhori, 1,1,1, -99, 32,
104     .                "inst(X)", zsto,zout)
105c
106         CALL histdef(nid_ins, "evap", "Evaporation", "kg/(s*m2)",
107     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
108     .                "inst(X)", zsto,zout)
109c
110         CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2",
111     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
112     .                "inst(X)", zsto,zout)
113c
114         CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2",
115     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
116     .                "inst(X)", zsto,zout)
117c
118         CALL histdef(nid_ins, "solldown", "Down. IR rad. at surface", 
119     .                "W/m2", iim,jjmp1,nhori, 1,1,1, -99, 32, 
120     .                "inst(X)", zsto,zout)
121c
122         CALL histdef(nid_ins, "bils", "Surf. total heat flux", "W/m2",
123     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
124     .                "inst(X)", zsto,zout)
125c
126         CALL histdef(nid_ins, "sens", "Sensible heat flux", "W/m2",
127     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
128     .                "inst(X)", zsto,zout)
129c
130         CALL histdef(nid_ins, "fder", "Heat flux derivation", "W/m2",
131     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
132     .                "inst(X)", zsto,zout)
133c
134      CALL histdef(nid_ins, "dtsvdfo", "Boundary-layer dTs(o)", "K/s",
135     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
136     .                "inst(X)", zsto,zout)
137c
138      CALL histdef(nid_ins, "dtsvdft", "Boundary-layer dTs(t)", "K/s",
139     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
140     .                "inst(X)", zsto,zout)
141c
142      CALL histdef(nid_ins, "dtsvdfg", "Boundary-layer dTs(g)", "K/s",
143     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
144     .                "inst(X)", zsto,zout)
145c
146      CALL histdef(nid_ins, "dtsvdfi", "Boundary-layer dTs(g)", "K/s",
147     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
148     .                "inst(X)", zsto,zout)
149
150         DO nsrf = 1, nbsrf
151C
152           call histdef(nid_ins, "pourc_"//clnsurf(nsrf),
153     $         "Fraction"//clnsurf(nsrf), "W/m2", 
154     $         iim,jjmp1,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,jjmp1,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,jjmp1,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,jjmp1,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,jjmp1,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,jjmp1,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,jjmp1,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,jjmp1,nhori, 1,1,1, -99, 32,
190     $         "inst(X)", zsto,zout)
191CXXX
192         END DO
193         CALL histdef(nid_ins, "rugs", "rugosity", "-",
194     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
195     .                "inst(X)", zsto,zout)
196
197c
198         CALL histdef(nid_ins, "albs", "Surface albedo", "-",
199     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
200     .                "inst(X)", zsto,zout)
201         CALL histdef(nid_ins, "albslw", "Surface albedo LW", "-",
202     .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
203     .                "inst(X)", zsto,zout)
204c
205c
206c Champs 3D:
207c
208         CALL histdef(nid_ins, "temp", "Temperature", "K",
209     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
210     .                "inst(X)", zsto,zout)
211c
212         CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s",
213     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
214     .                "inst(X)", zsto,zout)
215c
216         CALL histdef(nid_ins, "vitv", "Merid wind", "m/s",
217     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
218     .                "inst(X)", zsto,zout)
219c
220         CALL histdef(nid_ins, "geop", "Geopotential height", "m",
221     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
222     .                "inst(X)", zsto,zout)
223c
224         CALL histdef(nid_ins, "pres", "Air pressure", "Pa",
225     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
226     .                "inst(X)", zsto,zout)
227c
228         CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s",
229     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
230     .                "inst(X)", zsto,zout)
231c
232         CALL histdef(nid_ins, "dqvdf", "Boundary-layer dQ", "Kg/Kg/s",
233     .                iim,jjmp1,nhori, klev,1,klev,nvert, 32,
234     .                "inst(X)", zsto,zout)
235c
236
237         CALL histend(nid_ins)
238c
239         ndex2d = 0
240         ndex3d = 0
241c
242      ENDIF
Note: See TracBrowser for help on using the repository browser.