1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | c$OMP MASTER |
---|
5 | c |
---|
6 | IF (ok_histNMC(1)) THEN |
---|
7 | c |
---|
8 | zout = freq_outNMC(1) |
---|
9 | c |
---|
10 | idayref = day_ref |
---|
11 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
12 | c |
---|
13 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
14 | cym DO i = 1, iim |
---|
15 | cym zx_lon(i,1) = rlon(i+1) |
---|
16 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
17 | cym ENDDO |
---|
18 | DO ll=1,klev |
---|
19 | znivsig(ll)=float(ll) |
---|
20 | ENDDO |
---|
21 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
22 | cym CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
23 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
24 | cym . nhori, nid_mthnmc) |
---|
25 | |
---|
26 | CALL histbeg_phy("histmthNMC",itau_phy, zjulian, dtime, |
---|
27 | . nhori, nid_mthnmc) |
---|
28 | c |
---|
29 | CALL histvert(nid_mthnmc, "plev", "pressure", "Pa", |
---|
30 | . nlevSTD, rlevSTD, nvert) |
---|
31 | ccc |
---|
32 | ccc Champs 3D interpolles sur des niveaux de pression du NMC |
---|
33 | ccc |
---|
34 | c |
---|
35 | c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh |
---|
36 | c sur les niveaux du NMC et on somme & moyenne |
---|
37 | c toutes les freq_moyNMC secondes par des routines undefSTD et |
---|
38 | c moy_undefSTD pour eliminer les valeurs "undef" |
---|
39 | c de la moyenne mensuelle |
---|
40 | c ======> le "inst(X)" ci-dessous est par consequence factice ! |
---|
41 | c |
---|
42 | c |
---|
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) |
---|
47 | c |
---|
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) |
---|
52 | c |
---|
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) |
---|
57 | c |
---|
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) |
---|
62 | c |
---|
63 | CALL histdef(nid_mthnmc, "hur", |
---|
64 | . "Relative humidity", "%", |
---|
65 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
66 | . "inst(X)", zout,zout) |
---|
67 | c |
---|
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) |
---|
72 | c |
---|
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) |
---|
77 | c |
---|
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) |
---|
82 | c |
---|
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) |
---|
87 | c |
---|
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) |
---|
92 | c |
---|
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) |
---|
98 | c |
---|
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) |
---|
104 | c |
---|
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) |
---|
110 | c |
---|
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) |
---|
116 | c |
---|
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) |
---|
122 | c |
---|
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) |
---|
128 | c |
---|
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) |
---|
134 | c |
---|
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) |
---|
140 | c |
---|
141 | |
---|
142 | CALL histend(nid_mthnmc) |
---|
143 | c |
---|
144 | ENDIF !(ok_histNMC(1)) THEN |
---|
145 | c |
---|
146 | c$OMP END MASTER |
---|