[524] | 1 | ! |
---|
[1403] | 2 | ! $Id: ini_histmthNMC.h 1403 2010-07-01 09:02:53Z evignon $ |
---|
[524] | 3 | ! |
---|
[766] | 4 | c$OMP MASTER |
---|
[1374] | 5 | c |
---|
| 6 | IF (ok_histNMC(1)) THEN |
---|
| 7 | c |
---|
[1352] | 8 | zout = freq_outNMC(1) |
---|
[524] | 9 | c |
---|
[1352] | 10 | idayref = day_ref |
---|
| 11 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
[524] | 12 | c |
---|
[766] | 13 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon) |
---|
| 14 | cym DO i = 1, iim |
---|
| 15 | cym zx_lon(i,1) = rlon(i+1) |
---|
| 16 | cym zx_lon(i,jjmp1) = rlon(i+1) |
---|
| 17 | cym ENDDO |
---|
[524] | 18 | DO ll=1,klev |
---|
[1403] | 19 | znivsig(ll)=REAL(ll) |
---|
[524] | 20 | ENDDO |
---|
[766] | 21 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat) |
---|
| 22 | cym CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
| 23 | cym . 1,iim,1,jjmp1, itau_phy, zjulian, dtime, |
---|
[1352] | 24 | cym . nhori, nid_mthnmc) |
---|
[766] | 25 | |
---|
[1352] | 26 | CALL histbeg_phy("histmthNMC",itau_phy, zjulian, dtime, |
---|
| 27 | . nhori, nid_mthnmc) |
---|
[644] | 28 | c |
---|
[1400] | 29 | CALL histvert(nid_mthnmc, "plev", "pressure", "Pa", |
---|
| 30 | . nlevSTD, rlevSTD, nvert,"down") |
---|
[1398] | 31 | c |
---|
| 32 | cIM Astuce MAF: remplacer inst par ave pour les variables NMC pour avoir |
---|
| 33 | cIM le time_counter et les bounds |
---|
| 34 | cIM |
---|
[644] | 35 | ccc Champs 3D interpolles sur des niveaux de pression du NMC |
---|
| 36 | ccc |
---|
[524] | 37 | c |
---|
[644] | 38 | c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh |
---|
| 39 | c sur les niveaux du NMC et on somme & moyenne |
---|
[1352] | 40 | c toutes les freq_moyNMC secondes par des routines undefSTD et |
---|
[644] | 41 | c moy_undefSTD pour eliminer les valeurs "undef" |
---|
| 42 | c de la moyenne mensuelle |
---|
| 43 | c ======> le "inst(X)" ci-dessous est par consequence factice ! |
---|
[524] | 44 | c |
---|
[1352] | 45 | c |
---|
| 46 | CALL histdef(nid_mthnmc, "tnondef", |
---|
| 47 | . "Valeurs non-definies","-", |
---|
[776] | 48 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 49 | . "ave(X)", zout,zout) |
---|
[524] | 50 | c |
---|
[1352] | 51 | CALL histdef(nid_mthnmc, "ta", |
---|
| 52 | . "Air temperature","K", |
---|
[776] | 53 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 54 | . "ave(X)", zout,zout) |
---|
[524] | 55 | c |
---|
[1352] | 56 | CALL histdef(nid_mthnmc, "zg", |
---|
| 57 | . "Geopotential height", "m", |
---|
[776] | 58 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 59 | . "ave(X)", zout,zout) |
---|
[644] | 60 | c |
---|
[1352] | 61 | CALL histdef(nid_mthnmc, "hus", |
---|
| 62 | . "Specific humidity","1", |
---|
| 63 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 64 | . "ave(X)", zout,zout) |
---|
[1352] | 65 | c |
---|
| 66 | CALL histdef(nid_mthnmc, "hur", |
---|
[644] | 67 | . "Relative humidity", "%", |
---|
[776] | 68 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 69 | . "ave(X)", zout,zout) |
---|
[644] | 70 | c |
---|
[1352] | 71 | CALL histdef(nid_mthnmc, "ua", |
---|
| 72 | . "Eastward wind","m s-1", |
---|
[776] | 73 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 74 | . "ave(X)", zout,zout) |
---|
[644] | 75 | c |
---|
[1352] | 76 | CALL histdef(nid_mthnmc, "va", |
---|
| 77 | . "Northward wind","m s-1", |
---|
[776] | 78 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 79 | . "ave(X)", zout,zout) |
---|
[644] | 80 | c |
---|
[1352] | 81 | CALL histdef(nid_mthnmc, "wap", |
---|
| 82 | . "Lagrangian tendency of air pressure","Pa s-1", |
---|
[776] | 83 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 84 | . "ave(X)", zout,zout) |
---|
[644] | 85 | c |
---|
[1352] | 86 | CALL histdef(nid_mthnmc, "psbg", |
---|
[644] | 87 | . "Pressure sfce below ground","%", |
---|
[776] | 88 | . iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 89 | . "ave(X)", zout,zout) |
---|
[644] | 90 | c |
---|
[1352] | 91 | CALL histdef(nid_mthnmc, "uv", |
---|
[644] | 92 | . "uv ", |
---|
[776] | 93 | . "m2/s2",iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 94 | . "ave(X)", zout,zout) |
---|
[644] | 95 | c |
---|
[1352] | 96 | CALL histdef(nid_mthnmc, "vq", |
---|
[644] | 97 | . "vq ", |
---|
[776] | 98 | . "m/s * (kg/kg)",iim,jj_nb,nhori, |
---|
[644] | 99 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 100 | . "ave(X)", zout,zout) |
---|
[644] | 101 | c |
---|
[1352] | 102 | CALL histdef(nid_mthnmc, "vT", |
---|
[644] | 103 | . "vT ", |
---|
[776] | 104 | . "mK/s",iim,jj_nb,nhori, |
---|
[644] | 105 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 106 | . "ave(X)", zout,zout) |
---|
[644] | 107 | c |
---|
[1352] | 108 | CALL histdef(nid_mthnmc, "wq", |
---|
[644] | 109 | . "wq ", |
---|
[776] | 110 | . "(Pa/s)*(kg/kg)",iim,jj_nb,nhori, |
---|
[644] | 111 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 112 | . "ave(X)", zout,zout) |
---|
[644] | 113 | c |
---|
[1352] | 114 | CALL histdef(nid_mthnmc, "vphi", |
---|
[644] | 115 | . "vphi ", |
---|
[776] | 116 | . "m2/s",iim,jj_nb,nhori, |
---|
[644] | 117 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 118 | . "ave(X)", zout,zout) |
---|
[644] | 119 | c |
---|
[1352] | 120 | CALL histdef(nid_mthnmc, "wT", |
---|
[644] | 121 | . "wT ", |
---|
[776] | 122 | . "K*Pa/s",iim,jj_nb,nhori, |
---|
[644] | 123 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 124 | . "ave(X)", zout,zout) |
---|
[644] | 125 | c |
---|
[1352] | 126 | CALL histdef(nid_mthnmc, "uxu", |
---|
[644] | 127 | . "u2 ", |
---|
[776] | 128 | . "m2/s2",iim,jj_nb,nhori, |
---|
[644] | 129 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 130 | . "ave(X)", zout,zout) |
---|
[644] | 131 | c |
---|
[1352] | 132 | CALL histdef(nid_mthnmc, "vxv", |
---|
[644] | 133 | . "v2 ", |
---|
[776] | 134 | . "m2/s2",iim,jj_nb,nhori, |
---|
[644] | 135 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 136 | . "ave(X)", zout,zout) |
---|
[644] | 137 | c |
---|
[1352] | 138 | CALL histdef(nid_mthnmc, "TxT", |
---|
[644] | 139 | . "T2 ", |
---|
[776] | 140 | . "K2",iim,jj_nb,nhori, |
---|
[644] | 141 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
[1398] | 142 | . "ave(X)", zout,zout) |
---|
[644] | 143 | c |
---|
[1398] | 144 | CALL histdef(nid_mthnmc, "tro3", |
---|
| 145 | . "Ozone mole fraction", |
---|
| 146 | . "1e-9",iim,jj_nb,nhori, |
---|
| 147 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 148 | . "ave(X)", zout,zout) |
---|
| 149 | c |
---|
| 150 | if (read_climoz == 2) THEN |
---|
| 151 | CALL histdef(nid_mthnmc, "tro3_daylight", |
---|
| 152 | . "Daylight ozone mole fraction", |
---|
| 153 | . "1e-9",iim,jj_nb,nhori, |
---|
| 154 | . nlevSTD,1,nlevSTD, nvert, 32, |
---|
| 155 | . "ave(X)", zout,zout) |
---|
| 156 | endif |
---|
| 157 | c |
---|
[1352] | 158 | CALL histend(nid_mthnmc) |
---|
[524] | 159 | c |
---|
[1374] | 160 | ENDIF !(ok_histNMC(1)) THEN |
---|
| 161 | c |
---|
[766] | 162 | c$OMP END MASTER |
---|