1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | c$OMP MASTER |
---|
5 | |
---|
6 | zstophy = dtime |
---|
7 | zstohf = ecrit_hf |
---|
8 | zstomth = ecrit_mth |
---|
9 | zout = freq_outNMC(2) |
---|
10 | c |
---|
11 | idayref = day_ref |
---|
12 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
13 | c |
---|
14 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
15 | cym DO i = 1, iim |
---|
16 | cym zx_lon(i,1) = rlon(i+1) |
---|
17 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
18 | cym ENDDO |
---|
19 | DO ll=1,klev |
---|
20 | znivsig(ll)=float(ll) |
---|
21 | ENDDO |
---|
22 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
23 | cym CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
24 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
25 | cym . nhori, nid_daynmc) |
---|
26 | |
---|
27 | CALL histbeg_phy("histdayNMC",itau_phy, zjulian, dtime, |
---|
28 | . nhori, nid_daynmc) |
---|
29 | c |
---|
30 | IF(lev_histdayNMC.EQ.nlevSTD) THEN |
---|
31 | CALL histvert(nid_daynmc, "plev", "pressure", "Pa", |
---|
32 | . nlevSTD, rlevSTD, nvert) |
---|
33 | ELSE IF(lev_histdayNMC.EQ.nlevSTD8) THEN |
---|
34 | CALL histvert(nid_daynmc, "plev", "pressure", "Pa", |
---|
35 | . nlevSTD8, rlevSTD8, nvert) |
---|
36 | ENDIF |
---|
37 | ccc |
---|
38 | ccc Champs 3D interpolles sur des niveaux de pression du NMC |
---|
39 | ccc |
---|
40 | c |
---|
41 | c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh |
---|
42 | c sur les niveaux du NMC et on somme & moyenne |
---|
43 | c toutes les freq_moyNMC secondes par des routines undefSTD et |
---|
44 | c moy_undefSTD pour eliminer les valeurs "undef" |
---|
45 | c de la moyenne mensuelle |
---|
46 | c ======> le "inst(X)" ci-dessous est par consequence factice ! |
---|
47 | c |
---|
48 | IF(lev_histdayNMC.EQ.nlevSTD) THEN |
---|
49 | CALL histdef(nid_daynmc, "tnondef", |
---|
50 | . "Valeurs non-definies","-", |
---|
51 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
52 | . "inst(X)", zout,zout) |
---|
53 | c |
---|
54 | CALL histdef(nid_daynmc, "ta", |
---|
55 | . "Air temperature","K", |
---|
56 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
57 | . "inst(X)", zout,zout) |
---|
58 | c |
---|
59 | CALL histdef(nid_daynmc, "zg", |
---|
60 | . "Geopotential height", "m", |
---|
61 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
62 | . "inst(X)", zout,zout) |
---|
63 | c |
---|
64 | CALL histdef(nid_daynmc, "hus", |
---|
65 | . "Specific humidity","1", |
---|
66 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
67 | . "inst(X)", zout,zout) |
---|
68 | c |
---|
69 | CALL histdef(nid_daynmc, "hur", |
---|
70 | . "Relative humidity", "%", |
---|
71 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
72 | . "inst(X)", zout,zout) |
---|
73 | c |
---|
74 | CALL histdef(nid_daynmc, "ua", |
---|
75 | . "Eastward wind","m s-1", |
---|
76 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
77 | . "inst(X)", zout,zout) |
---|
78 | c |
---|
79 | CALL histdef(nid_daynmc, "va", |
---|
80 | . "Northward wind","m s-1", |
---|
81 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
82 | . "inst(X)", zout,zout) |
---|
83 | c |
---|
84 | CALL histdef(nid_daynmc, "wap", |
---|
85 | . "Lagrangian tendency of air pressure","Pa s-1", |
---|
86 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
87 | . "inst(X)", zout,zout) |
---|
88 | c |
---|
89 | ELSE IF(lev_histdayNMC.EQ.nlevSTD8) THEN |
---|
90 | c |
---|
91 | CALL histdef(nid_daynmc, "tnondef", |
---|
92 | . "Valeurs non-definies","-", |
---|
93 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
94 | . "inst(X)", zout,zout) |
---|
95 | c |
---|
96 | CALL histdef(nid_daynmc, "ta", |
---|
97 | . "Air temperature","K", |
---|
98 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
99 | . "inst(X)", zout,zout) |
---|
100 | c |
---|
101 | CALL histdef(nid_daynmc, "zg", |
---|
102 | . "Geopotential height", "m", |
---|
103 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
104 | . "inst(X)", zout,zout) |
---|
105 | c |
---|
106 | CALL histdef(nid_daynmc, "hus", |
---|
107 | . "Specific humidity","1", |
---|
108 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
109 | . "inst(X)", zout,zout) |
---|
110 | c |
---|
111 | CALL histdef(nid_daynmc, "hur", |
---|
112 | . "Relative humidity", "%", |
---|
113 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
114 | . "inst(X)", zout,zout) |
---|
115 | c |
---|
116 | CALL histdef(nid_daynmc, "ua", |
---|
117 | . "Eastward wind","m s-1", |
---|
118 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
119 | . "inst(X)", zout,zout) |
---|
120 | c |
---|
121 | CALL histdef(nid_daynmc, "va", |
---|
122 | . "Northward wind","m s-1", |
---|
123 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
124 | . "inst(X)", zout,zout) |
---|
125 | c |
---|
126 | CALL histdef(nid_daynmc, "wap", |
---|
127 | . "Lagrangian tendency of air pressure","Pa s-1", |
---|
128 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
129 | . "inst(X)", zout,zout) |
---|
130 | c |
---|
131 | ENDIF |
---|
132 | c |
---|
133 | CALL histend(nid_daynmc) |
---|
134 | c |
---|
135 | c$OMP END MASTER |
---|