[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/ini_histmth.h,v 1.4 2005/03/09 12:30:16 fairhead Exp $ |
---|
| 3 | ! |
---|
| 4 | IF (ok_mensuel) THEN |
---|
[892] | 5 | |
---|
[3] | 6 | zsto = dtime |
---|
| 7 | zout = dtime * ecrit_mth |
---|
[892] | 8 | |
---|
[3] | 9 | idayref = day_ref |
---|
[97] | 10 | CALL ymds2ju(annee_ref, 1, idayref, zero, zjulian) |
---|
[892] | 11 | |
---|
| 12 | call histbeg_phy("histmth.nc",itau_phy, |
---|
[902] | 13 | . zjulian,dtime,nhori,nid_mth) |
---|
[892] | 14 | |
---|
| 15 | !$OMP MASTER |
---|
| 16 | CALL histvert(nid_mth, "presnivs", "Vertical levels", "Pa", |
---|
[97] | 17 | . klev, presnivs, nvert) |
---|
[3] | 18 | |
---|
| 19 | c------------------------------------------------------- |
---|
| 20 | IF(lev_histmth.GE.1) THEN |
---|
| 21 | c |
---|
| 22 | ccccccccccccc 2D fields, basics |
---|
| 23 | c |
---|
| 24 | CALL histdef(nid_mth, "phis", "Surface geop. height", "-", |
---|
[1530] | 25 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 26 | . "once", zsto,zout) |
---|
| 27 | c |
---|
| 28 | CALL histdef(nid_mth, "aire", "Grid area", "-", |
---|
[1530] | 29 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 30 | . "once", zsto,zout) |
---|
| 31 | c |
---|
| 32 | CALL histdef(nid_mth, "tsol", "Surface Temperature", "K", |
---|
[1530] | 33 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 34 | . "ave(X)", zsto,zout) |
---|
| 35 | c |
---|
| 36 | CALL histdef(nid_mth, "psol", "Surface Pressure", "Pa", |
---|
[1530] | 37 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 38 | . "ave(X)", zsto,zout) |
---|
| 39 | c |
---|
| 40 | c CALL histdef(nid_mth, "ue", "Zonal energy transport", "-", |
---|
[1530] | 41 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 42 | c . "ave(X)", zsto,zout) |
---|
| 43 | c |
---|
| 44 | c CALL histdef(nid_mth, "ve", "Merid energy transport", "-", |
---|
[1530] | 45 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 46 | c . "ave(X)", zsto,zout) |
---|
| 47 | c |
---|
[902] | 48 | c CALL histdef(nid_mth, "cdragh", "Drag coef on T", "-", |
---|
[1530] | 49 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 50 | c . "ave(X)", zsto,zout) |
---|
[3] | 51 | c |
---|
[902] | 52 | c CALL histdef(nid_mth, "cdragm", "Drag coef on U", "-", |
---|
[1530] | 53 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 54 | c . "ave(X)", zsto,zout) |
---|
[3] | 55 | c |
---|
| 56 | ENDIF !lev_histmth.GE.1 |
---|
| 57 | c |
---|
| 58 | c------------------------------------------------------- |
---|
| 59 | IF(lev_histmth.GE.2) THEN |
---|
| 60 | c |
---|
| 61 | ccccccccccccc 3D fields, basics |
---|
| 62 | c |
---|
| 63 | CALL histdef(nid_mth, "temp", "Air temperature", "K", |
---|
[1530] | 64 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 65 | . "ave(X)", zsto,zout) |
---|
| 66 | c |
---|
| 67 | CALL histdef(nid_mth, "pres", "Air pressure", "Pa", |
---|
[1530] | 68 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 69 | . "ave(X)", zsto,zout) |
---|
| 70 | c |
---|
| 71 | CALL histdef(nid_mth, "geop", "Geopotential height", "m", |
---|
[1530] | 72 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 73 | . "ave(X)", zsto,zout) |
---|
| 74 | c |
---|
| 75 | CALL histdef(nid_mth, "vitu", "Zonal wind", "m/s", |
---|
[1530] | 76 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 77 | . "ave(X)", zsto,zout) |
---|
| 78 | c |
---|
| 79 | CALL histdef(nid_mth, "vitv", "Meridional wind", "m/s", |
---|
[1530] | 80 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 81 | . "ave(X)", zsto,zout) |
---|
| 82 | c |
---|
| 83 | CALL histdef(nid_mth, "vitw", "Vertical wind", "Pa/s", |
---|
[1530] | 84 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 85 | . "ave(X)", zsto,zout) |
---|
| 86 | c |
---|
| 87 | CALL histdef(nid_mth, "dudyn", "Dynamics dU", "m/s2", |
---|
[1530] | 88 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 89 | . "ave(X)", zsto,zout) |
---|
| 90 | c |
---|
| 91 | CALL histdef(nid_mth, "duvdf", "Boundary-layer dU", "m/s2", |
---|
[1530] | 92 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 93 | . "ave(X)", zsto,zout) |
---|
| 94 | c |
---|
| 95 | c CALL histdef(nid_mth, "mang", "Angular momentum", "kg m2/s", |
---|
[1530] | 96 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 97 | c . "ave(X)", zsto,zout) |
---|
| 98 | c |
---|
[902] | 99 | c CALL histdef(nid_mth, "Kz", "vertical diffusion coef", "m2/s", |
---|
[1530] | 100 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[902] | 101 | c . "ave(X)", zsto,zout) |
---|
[3] | 102 | c |
---|
[1452] | 103 | CALL histdef(nid_mth, "mmean", "Mean molecular mass", "g/mol", |
---|
[1530] | 104 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 105 | . "ave(X)", zsto,zout) |
---|
| 106 | |
---|
[1518] | 107 | c CALL histdef(nid_mth, "rho", "Air density [mass/Vol]", "kg/m3", |
---|
[1530] | 108 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1518] | 109 | c . "ave(X)", zsto,zout) |
---|
[1452] | 110 | |
---|
| 111 | |
---|
| 112 | c plusieurs traceurs !!!outputs in [vmr] |
---|
| 113 | IF (iflag_trac.eq.1) THEN |
---|
[3] | 114 | DO iq=1,nqmax |
---|
| 115 | IF (iq.LE.99) THEN |
---|
| 116 | WRITE(str2,'(i2.2)') iq |
---|
[1452] | 117 | CALL histdef(nid_mth, tname(iq), ttext(iq), "mol/mol", |
---|
[1530] | 118 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 119 | . "ave(X)", zsto,zout) |
---|
| 120 | ELSE |
---|
| 121 | PRINT*, "Trop de traceurs" |
---|
| 122 | CALL abort |
---|
| 123 | ENDIF |
---|
| 124 | ENDDO |
---|
[1452] | 125 | ENDIF |
---|
| 126 | |
---|
| 127 | IF (callthermos .and. ok_chem) THEN |
---|
| 128 | CALL histdef(nid_mth, "d_qmoldifCO2", "Dif molec" , "kg/kg", |
---|
[1530] | 129 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 130 | . "ave(X)", zsto,zout) |
---|
| 131 | CALL histdef(nid_mth, "d_qmoldifO3p", "Dif molec" , "kg/kg", |
---|
[1530] | 132 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 133 | . "ave(X)", zsto,zout) |
---|
| 134 | CALL histdef(nid_mth, "d_qmoldifN2", "Dif molec" , "kg/kg", |
---|
[1530] | 135 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 136 | . "ave(X)", zsto,zout) |
---|
| 137 | ENDIF |
---|
[3] | 138 | c |
---|
| 139 | CALL histdef(nid_mth, "tops", "Solar rad. at TOA", "W/m2", |
---|
[1530] | 140 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 141 | . "ave(X)", zsto,zout) |
---|
[3] | 142 | c |
---|
| 143 | ENDIF !lev_histmth.GE.2 |
---|
| 144 | c |
---|
| 145 | c------------------------------------------------------- |
---|
| 146 | IF(lev_histmth.GE.3) THEN |
---|
| 147 | c |
---|
| 148 | cccccccccccccccccc Radiative transfer |
---|
| 149 | c |
---|
| 150 | c 2D |
---|
| 151 | c |
---|
| 152 | CALL histdef(nid_mth, "topl", "IR rad. at TOA", "W/m2", |
---|
[1530] | 153 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 154 | . "ave(X)", zsto,zout) |
---|
[3] | 155 | c |
---|
| 156 | CALL histdef(nid_mth, "sols", "Solar rad. at surf.", "W/m2", |
---|
[1530] | 157 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 158 | . "ave(X)", zsto,zout) |
---|
[3] | 159 | c |
---|
| 160 | CALL histdef(nid_mth, "soll", "IR rad. at surface", "W/m2", |
---|
[1530] | 161 | . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[902] | 162 | . "ave(X)", zsto,zout) |
---|
[3] | 163 | c |
---|
| 164 | c 3D |
---|
| 165 | c |
---|
| 166 | CALL histdef(nid_mth, "SWnet", "Net SW flux","W/m2", |
---|
[1530] | 167 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[902] | 168 | . 32, "ave(X)", zsto,zout) |
---|
[3] | 169 | c |
---|
| 170 | CALL histdef(nid_mth, "LWnet", "Net LW flux","W/m2", |
---|
[1530] | 171 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[902] | 172 | . 32, "ave(X)", zsto,zout) |
---|
[3] | 173 | c |
---|
[1301] | 174 | c CALL histdef(nid_mth, "fluxvdf", "PBL net flux","W/m2", |
---|
[1530] | 175 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[1301] | 176 | c . 32, "ave(X)", zsto,zout) |
---|
[3] | 177 | c |
---|
[1301] | 178 | c CALL histdef(nid_mth, "fluxdyn", "Dyn. net flux","W/m2", |
---|
[1530] | 179 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[1301] | 180 | c . 32, "ave(X)", zsto,zout) |
---|
[3] | 181 | c |
---|
[1301] | 182 | c CALL histdef(nid_mth, "fluxajs", "Dry adj. net flux","W/m2", |
---|
[1530] | 183 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[1301] | 184 | c . 32, "ave(X)", zsto,zout) |
---|
[3] | 185 | c |
---|
| 186 | c CALL histdef(nid_mth, "fluxec", "Cin. net flux","W/m2", |
---|
[1530] | 187 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, |
---|
[3] | 188 | c . 32, "ave(X)", zsto,zout) |
---|
| 189 | c |
---|
| 190 | ENDIF !lev_histmth.GE.3 |
---|
| 191 | c |
---|
| 192 | c------------------------------------------------------- |
---|
| 193 | IF(lev_histmth.GE.4) THEN |
---|
| 194 | c |
---|
| 195 | CALL histdef(nid_mth, "dtdyn", "Dynamics dT", "K/s", |
---|
[1530] | 196 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 197 | . "ave(X)", zsto,zout) |
---|
| 198 | c |
---|
| 199 | c CALL histdef(nid_mth, "dtphy", "Physics dT", "K/s", |
---|
[1530] | 200 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 201 | c . "ave(X)", zsto,zout) |
---|
| 202 | c |
---|
| 203 | CALL histdef(nid_mth, "dtvdf", "Boundary-layer dT", "K/s", |
---|
[1530] | 204 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 205 | . "ave(X)", zsto,zout) |
---|
| 206 | c |
---|
| 207 | CALL histdef(nid_mth, "dtajs", "Dry adjust. dT", "K/s", |
---|
[1530] | 208 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 209 | . "ave(X)", zsto,zout) |
---|
| 210 | c |
---|
| 211 | CALL histdef(nid_mth, "dtswr", "SW radiation dT", "K/s", |
---|
[1530] | 212 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 213 | . "ave(X)", zsto,zout) |
---|
| 214 | c |
---|
[1452] | 215 | CALL histdef(nid_mth,"dtswrNLTE", "SWNLTE radiation dT", |
---|
[1530] | 216 | . "K/s",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
[1452] | 217 | . "ave(X)", zsto,zout) |
---|
| 218 | c |
---|
| 219 | CALL histdef(nid_mth,"dtswrDCrisp","SWDCrisp radiation dT", |
---|
[1530] | 220 | . "K/s",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
[1452] | 221 | . "ave(X)", zsto,zout) |
---|
| 222 | c |
---|
| 223 | CALL histdef(nid_mth, "dtlwr", "LW radiation dT", "K/s", |
---|
[1530] | 224 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 225 | . "ave(X)", zsto,zout) |
---|
| 226 | c |
---|
[1667] | 227 | c CALL histdef(nid_mth,"dtlwrNLTE", "LWNLTE radiation dT", |
---|
| 228 | c . "K/s",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
| 229 | c . "ave(X)", zsto,zout) |
---|
[1452] | 230 | c |
---|
[1667] | 231 | c CALL histdef(nid_mth,"dtlwrLTE","LW_LTE radiation dT", |
---|
| 232 | c . "K/s",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
| 233 | c . "ave(X)", zsto,zout) |
---|
[1452] | 234 | c |
---|
[1667] | 235 | c CALL histdef(nid_mth, "dteuv", "UV radiation dT", "K/s", |
---|
| 236 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
| 237 | c . "ave(X)", zsto,zout) |
---|
| 238 | c CALL histdef(nid_mth, "dtcond", "Therm conduction", "K/s", |
---|
| 239 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
| 240 | c . "ave(X)", zsto,zout) |
---|
| 241 | c CALL histdef(nid_mth, "dumolvis", "molec viscosity (u)" |
---|
| 242 | c . ,"m/s2",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
| 243 | c . "ave(X)", zsto,zout) |
---|
| 244 | c CALL histdef(nid_mth, "dvmolvis", "molec viscosity (v)", |
---|
| 245 | c . "m/s2",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
| 246 | c . "ave(X)", zsto,zout) |
---|
[1452] | 247 | |
---|
| 248 | c |
---|
[3] | 249 | c CALL histdef(nid_mth, "dtec", "Cinetic dissip dT", "K/s", |
---|
[1530] | 250 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 251 | c . "ave(X)", zsto,zout) |
---|
| 252 | c |
---|
| 253 | CALL histdef(nid_mth, "duajs", "Dry convection dU", "m/s2", |
---|
[1530] | 254 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 255 | . "ave(X)", zsto,zout) |
---|
| 256 | c |
---|
| 257 | CALL histdef(nid_mth, "dugwo", "GW oro dU", "m/s2", |
---|
[1530] | 258 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 259 | . "ave(X)", zsto,zout) |
---|
| 260 | c |
---|
| 261 | CALL histdef(nid_mth, "dugwno", "GW non-oro dU", "m/s2", |
---|
[1530] | 262 | . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 263 | . "ave(X)", zsto,zout) |
---|
[1452] | 264 | |
---|
| 265 | c CALL histdef(nid_mth, "co2_vmr", "volume mixture ratio co2", |
---|
[1530] | 266 | c . "cm-3",nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 267 | c . "ave(X)", zsto,zout) |
---|
| 268 | |
---|
| 269 | c CALL histdef(nid_mth, "o_vmr", "volume mixture ratio o", |
---|
[1530] | 270 | c . "cm-3",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
[1452] | 271 | c . "ave(X)", zsto,zout) |
---|
| 272 | c CALL histdef(nid_mth, "co_vmr", "volume mixture ratio co", |
---|
[1530] | 273 | c . "cm-3",nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[1452] | 274 | c . "ave(X)", zsto,zout) |
---|
| 275 | |
---|
| 276 | c CALL histdef(nid_mth, "n2_vmr", "volume mixture ratio n2", |
---|
[1530] | 277 | c . "cm-3",nbp_lon,jj_nb,nhori,klev,1,klev,nvert,32, |
---|
[1452] | 278 | c . "ave(X)", zsto,zout) |
---|
[3] | 279 | c |
---|
| 280 | c CALL histdef(nid_mth, "dvvdf", "Boundary-layer dV", "m/s2", |
---|
[1530] | 281 | c . nbp_lon,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
[3] | 282 | c . "ave(X)", zsto,zout) |
---|
| 283 | c |
---|
| 284 | ENDIF !lev_histmth.GE.4 |
---|
| 285 | c |
---|
| 286 | c------------------------------------------------------- |
---|
| 287 | IF(lev_histmth.GE.5) THEN |
---|
| 288 | c |
---|
| 289 | c call histdef(nid_mth, "taux", |
---|
| 290 | c $ "Zonal wind stress", "Pa", |
---|
[1530] | 291 | c $ nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 292 | c $ "ave(X)", zsto,zout) |
---|
| 293 | c |
---|
| 294 | c call histdef(nid_mth, "tauy", |
---|
| 295 | c $ "Meridional xind stress", "Pa", |
---|
[1530] | 296 | c $ nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 297 | c $ "ave(X)", zsto,zout) |
---|
| 298 | c |
---|
| 299 | c CALL histdef(nid_mth, "cdrm", "Momentum drag coef.", "-", |
---|
[1530] | 300 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 301 | c . "ave(X)", zsto,zout) |
---|
| 302 | c |
---|
| 303 | c CALL histdef(nid_mth, "cdrh", "Heat drag coef.", "-", |
---|
[1530] | 304 | c . nbp_lon,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
[3] | 305 | c . "ave(X)", zsto,zout) |
---|
| 306 | c |
---|
| 307 | ENDIF !lev_histmth.GE.5 |
---|
| 308 | c------------------------------------------------------- |
---|
[892] | 309 | |
---|
[3] | 310 | CALL histend(nid_mth) |
---|
[892] | 311 | !$OMP END MASTER |
---|
| 312 | |
---|
[3] | 313 | ENDIF ! fin de test sur ok_mensuel |
---|
[1452] | 314 | |
---|