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