[524] | 1 | ! |
---|
[1403] | 2 | ! $Id: write_histmthNMC.h 1403 2010-07-01 09:02:53Z jyg $ |
---|
[524] | 3 | ! |
---|
[1374] | 4 | IF (ok_histNMC(1)) THEN |
---|
[524] | 5 | c |
---|
[644] | 6 | ndex3d = 0 |
---|
| 7 | itau_w = itau_phy + itap |
---|
| 8 | ccc |
---|
| 9 | c Champs interpolles sur des niveaux de pression du NMC |
---|
[524] | 10 | c |
---|
[1352] | 11 | c PARAMETER(nout=3) |
---|
| 12 | c nout=1 : in=pdtphys, out=mth |
---|
| 13 | c nout=2 : in=pdtphys, out=day |
---|
| 14 | c nout=3 : in=pdtphys, out=hf |
---|
[644] | 15 | ccc |
---|
[1352] | 16 | CALL histwrite_phy(nid_mthnmc,"tnondef",itau_w,tnondef(:,:,1)) |
---|
[524] | 17 | c |
---|
[1359] | 18 | CALL histwrite_phy(nid_mthnmc,"ta",itau_w,twriteSTD(:,:,1)) |
---|
[524] | 19 | c |
---|
[1352] | 20 | CALL histwrite_phy(nid_mthnmc,"zg",itau_w,phiwriteSTD(:,:,1)) |
---|
[524] | 21 | c |
---|
[1352] | 22 | CALL histwrite_phy(nid_mthnmc,"hus",itau_w,qwriteSTD(:,:,1)) |
---|
[524] | 23 | c |
---|
[1352] | 24 | CALL histwrite_phy(nid_mthnmc,"hur",itau_w,rhwriteSTD(:,:,1)) |
---|
[644] | 25 | c |
---|
[1352] | 26 | CALL histwrite_phy(nid_mthnmc,"ua",itau_w,uwriteSTD(:,:,1)) |
---|
[644] | 27 | c |
---|
[1352] | 28 | CALL histwrite_phy(nid_mthnmc,"va",itau_w,vwriteSTD(:,:,1)) |
---|
[644] | 29 | c |
---|
[1352] | 30 | CALL histwrite_phy(nid_mthnmc,"wap",itau_w,wwriteSTD(:,:,1)) |
---|
[644] | 31 | c |
---|
| 32 | DO k=1, nlevSTD |
---|
| 33 | DO i=1, klon |
---|
[1352] | 34 | IF(tnondef(i,k,1).NE.missing_val) THEN |
---|
[1398] | 35 | zx_tmp_fiNC(i,k) = (100.*tnondef(i,k,1))/freq_moyNMC(1) |
---|
[644] | 36 | ELSE |
---|
[1352] | 37 | zx_tmp_fiNC(i,k) = missing_val |
---|
[524] | 38 | ENDIF |
---|
[644] | 39 | ENDDO |
---|
| 40 | ENDDO !k=1, nlevSTD |
---|
[524] | 41 | c |
---|
[1352] | 42 | CALL histwrite_phy(nid_mthnmc,"psbg",itau_w,zx_tmp_fiNC) |
---|
[524] | 43 | c |
---|
[1352] | 44 | CALL histwrite_phy(nid_mthnmc,"uv",itau_w,uvsumSTD(:,:,1)) |
---|
[524] | 45 | c |
---|
[1352] | 46 | CALL histwrite_phy(nid_mthnmc,"vq",itau_w,vqsumSTD(:,:,1)) |
---|
[524] | 47 | c |
---|
[1352] | 48 | CALL histwrite_phy(nid_mthnmc,"vT",itau_w,vTsumSTD(:,:,1)) |
---|
[524] | 49 | c |
---|
[1352] | 50 | CALL histwrite_phy(nid_mthnmc,"wq",itau_w,wqsumSTD(:,:,1)) |
---|
[524] | 51 | c |
---|
[1352] | 52 | CALL histwrite_phy(nid_mthnmc,"vphi",itau_w,vphisumSTD(:,:,1)) |
---|
[524] | 53 | c |
---|
[1352] | 54 | CALL histwrite_phy(nid_mthnmc,"wT",itau_w,wTsumSTD(:,:,1)) |
---|
[524] | 55 | c |
---|
[1352] | 56 | CALL histwrite_phy(nid_mthnmc,"uxu",itau_w,u2sumSTD(:,:,1)) |
---|
[644] | 57 | c |
---|
[1352] | 58 | CALL histwrite_phy(nid_mthnmc,"vxv",itau_w,v2sumSTD(:,:,1)) |
---|
[644] | 59 | c |
---|
[1352] | 60 | CALL histwrite_phy(nid_mthnmc,"TxT",itau_w,T2sumSTD(:,:,1)) |
---|
[644] | 61 | c |
---|
[1398] | 62 | DO k=1, nlevSTD |
---|
| 63 | DO i=1, klon |
---|
| 64 | IF(O3sumSTD(i,k,1).NE.missing_val) THEN |
---|
| 65 | zx_tmp_fiNC(i,k) = O3sumSTD(i,k,1) * 1.e+9 |
---|
| 66 | ELSE |
---|
| 67 | zx_tmp_fiNC(i,k) = missing_val |
---|
| 68 | ENDIF |
---|
| 69 | ENDDO |
---|
| 70 | ENDDO !k=1, nlevSTD |
---|
| 71 | CALL histwrite_phy(nid_mthnmc,"tro3",itau_w, |
---|
| 72 | $ zx_tmp_fiNC) |
---|
| 73 | c |
---|
| 74 | if (read_climoz == 2) THEN |
---|
| 75 | DO k=1, nlevSTD |
---|
| 76 | DO i=1, klon |
---|
| 77 | IF(O3daysumSTD(i,k,1).NE.missing_val) THEN |
---|
| 78 | zx_tmp_fiNC(i,k) = O3daysumSTD(i,k,1) * 1.e+9 |
---|
| 79 | ELSE |
---|
| 80 | zx_tmp_fiNC(i,k) = missing_val |
---|
| 81 | ENDIF |
---|
| 82 | ENDDO |
---|
| 83 | ENDDO !k=1, nlevSTD |
---|
| 84 | c |
---|
| 85 | CALL histwrite_phy(nid_mthnmc,"tro3_daylight",itau_w, |
---|
| 86 | $ zx_tmp_fiNC) |
---|
| 87 | endif |
---|
| 88 | c |
---|
[524] | 89 | if (ok_sync) then |
---|
[766] | 90 | c$OMP MASTER |
---|
[1352] | 91 | call histsync(nid_mthnmc) |
---|
[766] | 92 | c$OMP END MASTER |
---|
[524] | 93 | endif |
---|
[1374] | 94 | c |
---|
| 95 | ENDIF !(ok_histNMC(1)) THEN |
---|