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