[1351] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | c$OMP MASTER |
---|
[1374] | 5 | IF (ok_histNMC(2)) THEN |
---|
| 6 | c |
---|
[1351] | 7 | zstophy = dtime |
---|
| 8 | zstohf = ecrit_hf |
---|
| 9 | zstomth = ecrit_mth |
---|
| 10 | zout = freq_outNMC(2) |
---|
| 11 | c |
---|
| 12 | idayref = day_ref |
---|
| 13 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
| 14 | c |
---|
| 15 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
| 16 | cym DO i = 1, iim |
---|
| 17 | cym zx_lon(i,1) = rlon(i+1) |
---|
| 18 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
| 19 | cym ENDDO |
---|
| 20 | DO ll=1,klev |
---|
| 21 | znivsig(ll)=float(ll) |
---|
| 22 | ENDDO |
---|
| 23 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
| 24 | cym CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
| 25 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
| 26 | cym . nhori, nid_daynmc) |
---|
| 27 | |
---|
| 28 | CALL histbeg_phy("histdayNMC",itau_phy, zjulian, dtime, |
---|
| 29 | . nhori, nid_daynmc) |
---|
| 30 | c |
---|
| 31 | IF(lev_histdayNMC.EQ.nlevSTD) THEN |
---|
| 32 | CALL histvert(nid_daynmc, "plev", "pressure", "Pa", |
---|
| 33 | . nlevSTD, rlevSTD, nvert) |
---|
| 34 | ELSE IF(lev_histdayNMC.EQ.nlevSTD8) THEN |
---|
| 35 | CALL histvert(nid_daynmc, "plev", "pressure", "Pa", |
---|
| 36 | . nlevSTD8, rlevSTD8, nvert) |
---|
| 37 | ENDIF |
---|
| 38 | ccc |
---|
| 39 | ccc Champs 3D interpolles sur des niveaux de pression du NMC |
---|
| 40 | ccc |
---|
| 41 | c |
---|
| 42 | c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh |
---|
| 43 | c sur les niveaux du NMC et on somme & moyenne |
---|
| 44 | c toutes les freq_moyNMC secondes par des routines undefSTD et |
---|
| 45 | c moy_undefSTD pour eliminer les valeurs "undef" |
---|
| 46 | c de la moyenne mensuelle |
---|
| 47 | c ======> le "inst(X)" ci-dessous est par consequence factice ! |
---|
| 48 | c |
---|
| 49 | IF(lev_histdayNMC.EQ.nlevSTD) THEN |
---|
| 50 | CALL histdef(nid_daynmc, "tnondef", |
---|
| 51 | . "Valeurs non-definies","-", |
---|
| 52 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 53 | . "inst(X)", zout,zout) |
---|
| 54 | c |
---|
| 55 | CALL histdef(nid_daynmc, "ta", |
---|
| 56 | . "Air temperature","K", |
---|
| 57 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 58 | . "inst(X)", zout,zout) |
---|
| 59 | c |
---|
| 60 | CALL histdef(nid_daynmc, "zg", |
---|
| 61 | . "Geopotential height", "m", |
---|
| 62 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 63 | . "inst(X)", zout,zout) |
---|
| 64 | c |
---|
| 65 | CALL histdef(nid_daynmc, "hus", |
---|
| 66 | . "Specific humidity","1", |
---|
| 67 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 68 | . "inst(X)", zout,zout) |
---|
| 69 | c |
---|
| 70 | CALL histdef(nid_daynmc, "hur", |
---|
| 71 | . "Relative humidity", "%", |
---|
| 72 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 73 | . "inst(X)", zout,zout) |
---|
| 74 | c |
---|
| 75 | CALL histdef(nid_daynmc, "ua", |
---|
| 76 | . "Eastward wind","m s-1", |
---|
| 77 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 78 | . "inst(X)", zout,zout) |
---|
| 79 | c |
---|
| 80 | CALL histdef(nid_daynmc, "va", |
---|
| 81 | . "Northward wind","m s-1", |
---|
| 82 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 83 | . "inst(X)", zout,zout) |
---|
| 84 | c |
---|
| 85 | CALL histdef(nid_daynmc, "wap", |
---|
| 86 | . "Lagrangian tendency of air pressure","Pa s-1", |
---|
| 87 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 88 | . "inst(X)", zout,zout) |
---|
| 89 | c |
---|
| 90 | ELSE IF(lev_histdayNMC.EQ.nlevSTD8) THEN |
---|
| 91 | c |
---|
| 92 | CALL histdef(nid_daynmc, "tnondef", |
---|
| 93 | . "Valeurs non-definies","-", |
---|
| 94 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 95 | . "inst(X)", zout,zout) |
---|
| 96 | c |
---|
| 97 | CALL histdef(nid_daynmc, "ta", |
---|
| 98 | . "Air temperature","K", |
---|
| 99 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 100 | . "inst(X)", zout,zout) |
---|
| 101 | c |
---|
| 102 | CALL histdef(nid_daynmc, "zg", |
---|
| 103 | . "Geopotential height", "m", |
---|
| 104 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 105 | . "inst(X)", zout,zout) |
---|
| 106 | c |
---|
| 107 | CALL histdef(nid_daynmc, "hus", |
---|
| 108 | . "Specific humidity","1", |
---|
| 109 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 110 | . "inst(X)", zout,zout) |
---|
| 111 | c |
---|
| 112 | CALL histdef(nid_daynmc, "hur", |
---|
| 113 | . "Relative humidity", "%", |
---|
| 114 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 115 | . "inst(X)", zout,zout) |
---|
| 116 | c |
---|
| 117 | CALL histdef(nid_daynmc, "ua", |
---|
| 118 | . "Eastward wind","m s-1", |
---|
| 119 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 120 | . "inst(X)", zout,zout) |
---|
| 121 | c |
---|
| 122 | CALL histdef(nid_daynmc, "va", |
---|
| 123 | . "Northward wind","m s-1", |
---|
| 124 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 125 | . "inst(X)", zout,zout) |
---|
| 126 | c |
---|
| 127 | CALL histdef(nid_daynmc, "wap", |
---|
| 128 | . "Lagrangian tendency of air pressure","Pa s-1", |
---|
| 129 | . iim,jj_nb,nhori, nlevSTD8,1,nlevSTD8, nvert, 32, |
---|
| 130 | . "inst(X)", zout,zout) |
---|
| 131 | c |
---|
| 132 | ENDIF |
---|
| 133 | c |
---|
| 134 | CALL histend(nid_daynmc) |
---|
| 135 | c |
---|
[1374] | 136 | ENDIF !(ok_histNMC(2)) THEN |
---|
[1351] | 137 | c$OMP END MASTER |
---|