1 | IF (ok_mensuel) THEN |
---|
2 | c |
---|
3 | zsto = dtime |
---|
4 | zout = dtime * ecrit_mth |
---|
5 | c |
---|
6 | idayref = day_ref |
---|
7 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
8 | c |
---|
9 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
10 | DO i = 1, iim |
---|
11 | zx_lon(i,1) = rlon(i+1) |
---|
12 | zx_lon(i,jjmp1) = rlon(i+1) |
---|
13 | ENDDO |
---|
14 | DO ll=1,klev |
---|
15 | znivsig(ll)=float(ll) |
---|
16 | ENDDO |
---|
17 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
18 | CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
19 | . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
20 | . nhori, nid_nmc) |
---|
21 | write(*,*)'Mensuel NMC ', itau_phy, zjulian |
---|
22 | CALL histvert(nid_nmc, "presnivs", "Vertical levels", "mb", |
---|
23 | . klev, presnivs, nvert) |
---|
24 | c call histvert(nid_nmc, 'sig_s', 'Niveaux sigma','-', |
---|
25 | c . klev, znivsig, nvert) |
---|
26 | c |
---|
27 | c Champs 2D: |
---|
28 | |
---|
29 | c Champs interpolles sur des niveaux de pression du NMC |
---|
30 | c IMIMIM 110304 BEG |
---|
31 | c |
---|
32 | DO k=1, nlevSTD |
---|
33 | c |
---|
34 | bb=clevSTD(k) |
---|
35 | c |
---|
36 | IF(k.GE.2) THEN |
---|
37 | aa=clevSTD(k) |
---|
38 | bb=aa(1:lnblnk1(aa)) |
---|
39 | ENDIF |
---|
40 | c |
---|
41 | CALL histdef(nid_nmc, "t"//bb, |
---|
42 | . "Temperature"//bb//"mb","K", |
---|
43 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
44 | . "ave(X)", zsto,zout) |
---|
45 | c |
---|
46 | CALL histdef(nid_nmc, "phi"//bb, |
---|
47 | . "Geopotential"//bb//"mb", "m2/s2", |
---|
48 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
49 | . "ave(X)", zsto,zout) |
---|
50 | c |
---|
51 | CALL histdef(nid_nmc, "q"//bb, |
---|
52 | . "Specific humidity"//bb//"mb","kg/kg", |
---|
53 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
54 | . "ave(X)", zsto,zout) |
---|
55 | c |
---|
56 | CALL histdef(nid_nmc, "rh"//bb, |
---|
57 | . "Relative humidity"//bb//"mb", "%", |
---|
58 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
59 | . "ave(X)", zsto,zout) |
---|
60 | c |
---|
61 | CALL histdef(nid_nmc, "u"//bb, |
---|
62 | . "Zonal wind"//bb//"mb","K", |
---|
63 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
64 | . "ave(X)", zsto,zout) |
---|
65 | c |
---|
66 | CALL histdef(nid_nmc, "v"//bb, |
---|
67 | . "Meridional wind"//bb//"mb","K", |
---|
68 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
69 | . "ave(X)", zsto,zout) |
---|
70 | c |
---|
71 | ENDDO !nlevSTD |
---|
72 | c IMIMIM 110304 END |
---|
73 | |
---|
74 | CALL histend(nid_nmc) |
---|
75 | c |
---|
76 | c ndex2d = 0 |
---|
77 | c |
---|
78 | ENDIF ! fin de test sur ok_mensuel |
---|
79 | |
---|