IF (ok_hf) THEN c PRINT*, 'La frequence de sortie instant. est de ', ecrit_hf cccIM CALL ymds2ju(anne_ini, 1, 1, 0.0, zjulian) idayref = day_ref CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) c CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) DO i = 1, iim zx_lon(i,1) = rlon(i+1) zx_lon(i,jjmp1) = rlon(i+1) ENDDO CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) cccIM CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat, CALL histbeg("histhf", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, . nhori, nid_hf) CALL histvert(nid_hf, "presnivs", "Vertical levels", "mb", . klev, presnivs, nvert) zsto = dtime c pour les champs instantannes, il faut mettre la meme valeur pour c zout et tsto. c dtime est passe par ailleurs a histbeg zout = dtime * REAL(NINT(86400./dtime*ecrit_hf)) zsto = zout print*,'zout,zsto=',zout,zsto c c CALL histdef(nid_hf, "phis", "Surface geop. height", "-", c . iim,jjmp1,nhori, 1,1,1, -99, 32, c . "once", zsto,zout) c c CALL histdef(nid_hf, "aire", "Grid area", "-", c . iim,jjmp1,nhori, 1,1,1, -99, 32, c . "once", zsto,zout) c c Champs 2D: c CALL histdef(nid_hf, "tsol", "Surface Temperature", "K", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) c CALL histdef(nid_hf, "psol", "Surface Pressure", "Pa", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) c print*,'ATTENTION METTRE AVE(X) POUR LES PRECIPS' CALL histdef(nid_hf, "rain", "Precipitation", "mm/d", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) c CALL histdef(nid_hf, "u850", "Zonal wind 850mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) CALL histdef(nid_hf, "v850", "Meridional wind 850mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) c CALL histdef(nid_hf, "u500", "Zonal wind 500mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) CALL histdef(nid_hf, "v500", "Meridional wind 500mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) CALL histdef(nid_hf, "u200", "Zonal wind 200mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) CALL histdef(nid_hf, "v200", "Meridional wind 200mb", "m/s", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) CALL histdef(nid_hf, "phi500", "Geopotentiel à 500mb", "m2/s2", . iim,jjmp1,nhori, 1,1,1, -99, 32, . "inst(X)", zsto,zout) c CALL histend(nid_hf) endif ! ok_hf