source: LMDZ4/trunk/libf/phylmd/ini_histins.h @ 1072

Last change on this file since 1072 was 776, checked in by Laurent Fairhead, 17 years ago

Suite du merge entre la version et la HEAD: quelques modifications
de Yann sur le

LF

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