[507] | 1 | |
---|
| 2 | c IF (ok_hf) THEN |
---|
| 3 | c |
---|
| 4 | IF(region.EQ.'3d') THEN |
---|
| 5 | c |
---|
| 6 | zout = dtime * REAL(NINT(86400./dtime*ecrit_hf)) |
---|
| 7 | zsto = zout |
---|
| 8 | zsto1 = dtime |
---|
| 9 | PRINT*, 'La frequence de sortie instant. est de ', ecrit_hf |
---|
| 10 | c |
---|
| 11 | ELSEIF(region.EQ.'1d') THEN |
---|
| 12 | c |
---|
| 13 | c pour les champs instantannes, il faut mettre la meme valeur pour |
---|
| 14 | c zout et tsto. |
---|
| 15 | c dtime est passe par ailleurs a histbeg |
---|
| 16 | zsto = dtime |
---|
| 17 | c zout = dtime |
---|
| 18 | zout = dtime *4. |
---|
| 19 | ENDIF |
---|
| 20 | print*,'zout,zsto=',zout,zsto |
---|
| 21 | cIM cf LF |
---|
| 22 | idayref = day_ref |
---|
| 23 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
| 24 | |
---|
| 25 | cccIM CALL ymds2ju(anne_ini, 1, 1, 0.0, zjulian) |
---|
| 26 | c CALL ymds2ju(annee_ref, 1, 1, 0.0, zjulian) |
---|
| 27 | c zjulian = zjulian + day_ini |
---|
| 28 | cIM cf LF |
---|
| 29 | |
---|
| 30 | c |
---|
| 31 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
| 32 | DO i = 1, iim |
---|
| 33 | zx_lon(i,1) = rlon(i+1) |
---|
| 34 | zx_lon(i,jjmp1) = rlon(i+1) |
---|
| 35 | ENDDO |
---|
| 36 | |
---|
| 37 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
| 38 | |
---|
| 39 | cccIM CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat, |
---|
| 40 | CALL histbeg("histhf3d", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
| 41 | cIM cf LF . 1,iim,1,jjmp1, 0, zjulian, dtime, |
---|
| 42 | c071103 |
---|
| 43 | c . 1,iim,1,jjmp1, |
---|
| 44 | . imin_debut,nbpti, |
---|
| 45 | . jmin_debut,nbptj, |
---|
| 46 | c071103 |
---|
| 47 | . itau_phy, zjulian, dtime, |
---|
| 48 | . nhori, nid_hf3d) |
---|
| 49 | |
---|
| 50 | CALL histvert(nid_hf3d, "presnivs", "Vertical levels", "mb", |
---|
| 51 | . klev, presnivs, nvert) |
---|
| 52 | c |
---|
| 53 | |
---|
| 54 | c IF(lev_histhf.GE.4) THEN |
---|
| 55 | c |
---|
| 56 | c Champs 3D: |
---|
| 57 | c |
---|
| 58 | CALL histdef(nid_hf3d, "temp", "Air temperature", "K", |
---|
| 59 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 60 | . "ave(X)", zsto,zout) |
---|
| 61 | c |
---|
| 62 | CALL histdef(nid_hf3d, "ovap", "Specific humidity", "kg/kg", |
---|
| 63 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 64 | . "ave(X)", zsto,zout) |
---|
| 65 | c |
---|
| 66 | CALL histdef(nid_hf3d, "vitu", "Zonal wind", "m/s", |
---|
| 67 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 68 | . "ave(X)", zsto,zout) |
---|
| 69 | c |
---|
| 70 | CALL histdef(nid_hf3d, "vitv", "Meridional wind", "m/s", |
---|
| 71 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 72 | . "ave(X)", zsto,zout) |
---|
| 73 | c |
---|
| 74 | c ENDIF |
---|
| 75 | c |
---|
| 76 | CALL histend(nid_hf3d) |
---|
| 77 | c |
---|
| 78 | c endif ! ok_hf |
---|