source: LMDZ4/trunk/libf/phylmd/ini_histmthNMC.h @ 1374

Last change on this file since 1374 was 1374, checked in by musat, 14 years ago

Add logical flags ok_histNMC(3) to manage output of the
standard pressure files hist*NMC.nc
IM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
1!
2! $Header$
3!
4c$OMP MASTER
5c
6      IF (ok_histNMC(1)) THEN
7c
8       zout = freq_outNMC(1)
9c
10       idayref = day_ref
11       CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
12c
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
18         DO ll=1,klev
19            znivsig(ll)=float(ll)
20         ENDDO
21cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
22cym         CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:),
23cym     .                 1,iim,1,jjmp1, itau_phy, zjulian, dtime, 
24cym     .                 nhori, nid_mthnmc)
25
26         CALL histbeg_phy("histmthNMC",itau_phy, zjulian, dtime, 
27     .                 nhori, nid_mthnmc)
28c
29         CALL histvert(nid_mthnmc, "plev", "pressure", "Pa",
30     .                 nlevSTD, rlevSTD, nvert)
31ccc
32ccc Champs 3D interpolles sur des niveaux de pression du NMC
33ccc
34c
35c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh
36c             sur les niveaux du NMC et on somme & moyenne
37c             toutes les freq_moyNMC secondes par des routines undefSTD et
38c             moy_undefSTD pour eliminer les valeurs "undef"
39c             de la moyenne mensuelle
40c ======> le "inst(X)" ci-dessous est par consequence factice !
41c
42c
43          CALL histdef(nid_mthnmc, "tnondef",
44     .                 "Valeurs non-definies","-",
45     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
46     .                "inst(X)", zout,zout)
47c
48          CALL histdef(nid_mthnmc, "ta",
49     .                 "Air temperature","K",
50     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
51     .                "inst(X)", zout,zout)
52c
53         CALL histdef(nid_mthnmc, "zg",
54     .                "Geopotential height", "m",
55     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
56     .                "inst(X)", zout,zout)
57c
58          CALL histdef(nid_mthnmc, "hus",
59     .                 "Specific humidity","1",
60     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
61     .                "inst(X)", zout,zout)
62c
63         CALL histdef(nid_mthnmc, "hur",
64     .                 "Relative humidity", "%",
65     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
66     .                "inst(X)", zout,zout)
67c
68          CALL histdef(nid_mthnmc, "ua",
69     .                 "Eastward wind","m s-1",
70     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
71     .                "inst(X)", zout,zout)
72c
73          CALL histdef(nid_mthnmc, "va",
74     .                 "Northward wind","m s-1",
75     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
76     .                "inst(X)", zout,zout)
77c
78          CALL histdef(nid_mthnmc, "wap",
79     .                 "Lagrangian tendency of air pressure","Pa s-1",
80     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
81     .                "inst(X)", zout,zout)
82c
83          CALL histdef(nid_mthnmc, "psbg",
84     .         "Pressure sfce below ground","%",
85     .         iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
86     .         "inst(X)", zout,zout)
87c
88          CALL histdef(nid_mthnmc, "uv",
89     .         "uv ",
90     .         "m2/s2",iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
91     .         "inst(X)", zout,zout)
92c
93          CALL histdef(nid_mthnmc, "vq",
94     .         "vq ",
95     .         "m/s * (kg/kg)",iim,jj_nb,nhori, 
96     .          nlevSTD,1,nlevSTD, nvert, 32,
97     .         "inst(X)", zout,zout)
98c
99          CALL histdef(nid_mthnmc, "vT",
100     .         "vT ", 
101     .         "mK/s",iim,jj_nb,nhori, 
102     .          nlevSTD,1,nlevSTD, nvert, 32,
103     .         "inst(X)", zout,zout)
104c
105          CALL histdef(nid_mthnmc, "wq",
106     .         "wq ", 
107     .         "(Pa/s)*(kg/kg)",iim,jj_nb,nhori,
108     .          nlevSTD,1,nlevSTD, nvert, 32,
109     .         "inst(X)", zout,zout)
110c
111          CALL histdef(nid_mthnmc, "vphi",
112     .         "vphi ", 
113     .         "m2/s",iim,jj_nb,nhori, 
114     .          nlevSTD,1,nlevSTD, nvert, 32,
115     .         "inst(X)", zout,zout)
116c
117          CALL histdef(nid_mthnmc, "wT",
118     .         "wT ", 
119     .         "K*Pa/s",iim,jj_nb,nhori,
120     .          nlevSTD,1,nlevSTD, nvert, 32,
121     .         "inst(X)", zout,zout)
122c
123          CALL histdef(nid_mthnmc, "uxu",
124     .         "u2 ", 
125     .         "m2/s2",iim,jj_nb,nhori,
126     .          nlevSTD,1,nlevSTD, nvert, 32,
127     .         "inst(X)", zout,zout)
128c
129          CALL histdef(nid_mthnmc, "vxv",
130     .         "v2 ", 
131     .         "m2/s2",iim,jj_nb,nhori,
132     .          nlevSTD,1,nlevSTD, nvert, 32,
133     .         "inst(X)", zout,zout)
134c
135          CALL histdef(nid_mthnmc, "TxT",
136     .         "T2 ", 
137     .         "K2",iim,jj_nb,nhori,
138     .          nlevSTD,1,nlevSTD, nvert, 32,
139     .         "inst(X)", zout,zout)
140c
141
142         CALL histend(nid_mthnmc)
143c
144      ENDIF !(ok_histNMC(1)) THEN
145c
146c$OMP END MASTER
Note: See TracBrowser for help on using the repository browser.