1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | |
---|
5 | c IF (ok_hf) THEN |
---|
6 | c |
---|
7 | zout = dtime * REAL(NINT(86400./dtime*ecrit_hf)) |
---|
8 | zsto = zout |
---|
9 | zsto1 = dtime |
---|
10 | PRINT*, 'La frequence de sortie instant. est de ', ecrit_hf |
---|
11 | c |
---|
12 | cIM cf LF |
---|
13 | idayref = day_ref |
---|
14 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
15 | |
---|
16 | cccIM CALL ymds2ju(anne_ini, 1, 1, 0.0, zjulian) |
---|
17 | c CALL ymds2ju(annee_ref, 1, 1, 0.0, zjulian) |
---|
18 | c zjulian = zjulian + day_ini |
---|
19 | cIM cf LF |
---|
20 | |
---|
21 | c |
---|
22 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
23 | cym DO i = 1, iim |
---|
24 | cym zx_lon(i,1) = rlon(i+1) |
---|
25 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
26 | cym ENDDO |
---|
27 | |
---|
28 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
29 | |
---|
30 | cccIM CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat, |
---|
31 | cym CALL histbeg("histhf3d", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
32 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
33 | cym . nhori, nid_hf3d) |
---|
34 | CALL histbeg_phy("histhf3d", itau_phy, zjulian, dtime, |
---|
35 | . nhori, nid_hf3d) |
---|
36 | |
---|
37 | CALL histvert(nid_hf3d, "presnivs", "Vertical levels", "mb", |
---|
38 | . klev, presnivs, nvert) |
---|
39 | c |
---|
40 | |
---|
41 | c IF(lev_histhf.GE.4) THEN |
---|
42 | c |
---|
43 | c Champs 3D: |
---|
44 | c |
---|
45 | CALL histdef(nid_hf3d, "temp", "Air temperature", "K", |
---|
46 | . iim,jjphy_nb,nhori, klev,1,klev,nvert, 32, |
---|
47 | . "ave(X)", zsto,zout) |
---|
48 | c |
---|
49 | CALL histdef(nid_hf3d, "ovap", "Specific humidity", "kg/kg", |
---|
50 | . iim,jjphy_nb,nhori, klev,1,klev,nvert, 32, |
---|
51 | . "ave(X)", zsto,zout) |
---|
52 | c |
---|
53 | CALL histdef(nid_hf3d, "vitu", "Zonal wind", "m/s", |
---|
54 | . iim,jjphy_nb,nhori, klev,1,klev,nvert, 32, |
---|
55 | . "ave(X)", zsto,zout) |
---|
56 | c |
---|
57 | CALL histdef(nid_hf3d, "vitv", "Meridional wind", "m/s", |
---|
58 | . iim,jjphy_nb,nhori, klev,1,klev,nvert, 32, |
---|
59 | . "ave(X)", zsto,zout) |
---|
60 | c |
---|
61 | c ENDIF |
---|
62 | c |
---|
63 | CALL histend(nid_hf3d) |
---|
64 | c |
---|
65 | c endif ! ok_hf |
---|