[524] | 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 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
| 23 | DO i = 1, iim |
---|
| 24 | zx_lon(i,1) = rlon(i+1) |
---|
| 25 | zx_lon(i,jjmp1) = rlon(i+1) |
---|
| 26 | ENDDO |
---|
| 27 | |
---|
| 28 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
| 29 | |
---|
| 30 | cccIM CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat, |
---|
| 31 | CALL histbeg("histhf3d", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
| 32 | . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
| 33 | . nhori, nid_hf3d) |
---|
| 34 | |
---|
| 35 | CALL histvert(nid_hf3d, "presnivs", "Vertical levels", "mb", |
---|
| 36 | . klev, presnivs, nvert) |
---|
| 37 | c |
---|
| 38 | |
---|
| 39 | c IF(lev_histhf.GE.4) THEN |
---|
| 40 | c |
---|
| 41 | c Champs 3D: |
---|
| 42 | c |
---|
| 43 | CALL histdef(nid_hf3d, "temp", "Air temperature", "K", |
---|
| 44 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 45 | . "ave(X)", zsto,zout) |
---|
| 46 | c |
---|
| 47 | CALL histdef(nid_hf3d, "ovap", "Specific humidity", "kg/kg", |
---|
| 48 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 49 | . "ave(X)", zsto,zout) |
---|
| 50 | c |
---|
| 51 | CALL histdef(nid_hf3d, "vitu", "Zonal wind", "m/s", |
---|
| 52 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 53 | . "ave(X)", zsto,zout) |
---|
| 54 | c |
---|
| 55 | CALL histdef(nid_hf3d, "vitv", "Meridional wind", "m/s", |
---|
| 56 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 57 | . "ave(X)", zsto,zout) |
---|
| 58 | c |
---|
| 59 | c ENDIF |
---|
| 60 | c |
---|
| 61 | CALL histend(nid_hf3d) |
---|
| 62 | c |
---|
| 63 | c endif ! ok_hf |
---|